Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001715/0.001715, allocations: 106.3 kB / 17.16 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001927/0.001927, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.898/1.898, allocations: 222.9 MB / 241.7 MB, free: 15.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 40.72 kB / 300.6 MB, free: 6.301 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1388, allocations: 49.45 MB / 350.1 MB, free: 4.844 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.006912/0.1457, allocations: 3.176 MB / 353.2 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001735/0.1475, allocations: 0.744 MB / 354 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003733/0.1479, allocations: 11.94 kB / 354 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002917/0.1483, allocations: 43.67 kB / 354 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004222/0.1488, allocations: 87.25 kB / 354.1 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005694/0.1493, allocations: 91.91 kB / 354.2 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007142/0.1501, allocations: 394.2 kB / 354.6 MB, free: 284 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002943/0.1504, allocations: 132 kB / 354.7 MB, free: 144 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004283/0.1508, allocations: 151.5 kB / 354.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004763/0.1513, allocations: 167.1 kB / 355 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001147/0.1515, allocations: 24 kB / 355.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001342/0.1516, allocations: 24 kB / 355.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.858e-05/0.1517, allocations: 63.75 kB / 355.1 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002416/0.152, allocations: 179.1 kB / 355.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003165/0.1523, allocations: 303.5 kB / 355.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.156e-06/0.1523, allocations: 0 / 355.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1523, allocations: 7.938 kB / 355.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.1523, allocations: 0 / 355.6 MB, free: 15.24 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001306/0.1537, allocations: 0.651 MB / 356.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.1537, allocations: 16.02 kB / 356.3 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.1538, allocations: 44.47 kB / 356.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003935/0.1542, allocations: 281.2 kB / 356.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.313e-05/0.1543, allocations: 84.59 kB / 356.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.943e-05/0.1544, allocations: 36.31 kB / 356.7 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006429/0.1551, allocations: 338.9 kB / 357.1 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.1551, allocations: 0 / 357.1 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.884e-05/0.1551, allocations: 16 kB / 357.1 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.1551, allocations: 12 kB / 357.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004683/0.1556, allocations: 218.5 kB / 357.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002169/0.1578, allocations: 1.36 MB / 358.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003799/0.1582, allocations: 166.5 kB / 358.8 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001804/0.1584, allocations: 96.7 kB / 358.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/0.1584, allocations: 0 / 358.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003503/0.1588, allocations: 153.9 kB / 359.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.463e-06/0.1588, allocations: 0 / 359.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001233/0.16, allocations: 411 kB / 359.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.918e-05/0.1601, allocations: 106.8 kB / 359.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003108/0.1605, allocations: 258.7 kB / 359.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.318e-05/0.1605, allocations: 33.7 kB / 359.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.1607, allocations: 199.9 kB / 360 MB, free: 10.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.613e-05/0.1607, allocations: 78.98 kB / 360.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.1609, allocations: 57.94 kB / 360.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.161, allocations: 338.8 kB / 360.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001821/0.1612, allocations: 84.61 kB / 360.6 MB, free: 9.926 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002509/0.1615, allocations: 169.5 kB / 360.8 MB, free: 9.715 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004045/0.1619, allocations: 243.5 kB / 361 MB, free: 9.441 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.1619, allocations: 3.938 kB / 361 MB, free: 9.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007897/0.1627, allocations: 340.4 kB / 361.3 MB, free: 9.098 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.1627, allocations: 4 kB / 361.3 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.1628, allocations: 4 kB / 361.3 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003037/0.1631, allocations: 56.97 kB / 361.4 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002822/0.1634, allocations: 71.84 kB / 361.5 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001495/0.1649, allocations: 1.401 MB / 362.9 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002887/0.1652, allocations: 43.67 kB / 362.9 MB, free: 7.387 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.583e-05/0.1652, allocations: 15.98 kB / 362.9 MB, free: 7.371 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002058/0.1654, allocations: 159.7 kB / 363.1 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.704e-05/0.1655, allocations: 23.72 kB / 363.1 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.216e-05/0.1655, allocations: 30.17 kB / 363.1 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.1656, allocations: 4 kB / 363.1 MB, free: 7.148 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.1656, allocations: 3.938 kB / 363.1 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.1656, allocations: 0 / 363.1 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003881/0.166, allocations: 337.4 kB / 363.5 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.166, allocations: 0 / 363.5 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002139/0.1662, allocations: 39.92 kB / 363.5 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002132/0.1664, allocations: 56.81 kB / 363.6 MB, free: 6.668 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.97e-05/0.1665, allocations: 0 / 363.6 MB, free: 6.668 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001241/0.1677, allocations: 1.331 MB / 364.9 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1677, allocations: 0 / 364.9 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00078/0.1685, allocations: 345.6 kB / 365.2 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001332/0.1686, allocations: 120.7 kB / 365.4 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.628e-05/0.1687, allocations: 8 kB / 365.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002212/0.1689, allocations: 15.98 kB / 365.4 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.169, allocations: 35.88 kB / 365.4 MB, free: 4.656 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.1691, allocations: 4.062 kB / 365.4 MB, free: 4.652 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001859/0.1693, allocations: 190 kB / 365.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1693, allocations: 0 / 365.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004368/0.1697, allocations: 83.84 kB / 365.7 MB, free: 4.387 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001521/0.1699, allocations: 107.2 kB / 365.8 MB, free: 4.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006955/0.1706, allocations: 320 kB / 366.1 MB, free: 3.945 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.1706, allocations: 0 / 366.1 MB, free: 3.945 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003426/0.1709, allocations: 202.5 kB / 366.3 MB, free: 3.734 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000329/0.1713, allocations: 39.16 kB / 366.3 MB, free: 3.695 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001814/0.1731, allocations: 0.8233 MB / 367.2 MB, free: 2.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003794/0.1735, allocations: 0.7794 MB / 367.9 MB, free: 2.035 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.401e-05/0.1736, allocations: 19.44 kB / 368 MB, free: 2.016 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1736, allocations: 0 / 368 MB, free: 2.016 MB / 302.1 MB Notification: Performance of Templates: time 0.2302/0.4038, allocations: 4.606 MB / 372.6 MB, free: 24.21 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches