Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001224/0.001224, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001498/0.001498, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.529/1.529, allocations: 227.4 MB / 246.3 MB, free: 10.85 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 59.31 kB / 306.3 MB, free: 1.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1494, allocations: 50.53 MB / 356.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.005324/0.1548, allocations: 2.929 MB / 359.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001862/0.1567, allocations: 0.7635 MB / 360.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001689/0.1569, allocations: 7.938 kB / 360.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002248/0.1571, allocations: 31.75 kB / 360.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002166/0.1574, allocations: 83.33 kB / 360.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003838/0.1578, allocations: 79.92 kB / 360.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003896/0.1582, allocations: 354.4 kB / 361 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002528/0.1584, allocations: 111.9 kB / 361.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000151/0.1586, allocations: 127.5 kB / 361.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002187/0.1588, allocations: 155.2 kB / 361.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.116e-05/0.1589, allocations: 20 kB / 361.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.359e-05/0.1589, allocations: 20 kB / 361.5 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.687e-05/0.159, allocations: 55.77 kB / 361.5 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001679/0.1592, allocations: 159.2 kB / 361.7 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003577/0.1595, allocations: 339 kB / 362 MB, free: 9.316 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.1595, allocations: 0 / 362 MB, free: 9.316 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1596, allocations: 4 kB / 362 MB, free: 9.312 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.1596, allocations: 4 kB / 362 MB, free: 9.309 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001181/0.1608, allocations: 0.6017 MB / 362.6 MB, free: 8.656 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.1608, allocations: 8.031 kB / 362.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.741e-05/0.1609, allocations: 40.55 kB / 362.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000349/0.1613, allocations: 268.3 kB / 362.9 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001162/0.1614, allocations: 76.62 kB / 363 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.375e-05/0.1615, allocations: 28.38 kB / 363 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005449/0.162, allocations: 297.9 kB / 363.3 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.162, allocations: 0 / 363.3 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.577e-05/0.1621, allocations: 12 kB / 363.3 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.1621, allocations: 8 kB / 363.3 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003589/0.1625, allocations: 194.1 kB / 363.5 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001795/0.1643, allocations: 1.135 MB / 364.7 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003097/0.1646, allocations: 157.2 kB / 364.8 MB, free: 6.301 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/0.1647, allocations: 80.83 kB / 364.9 MB, free: 6.219 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.609e-05/0.1648, allocations: 4 kB / 364.9 MB, free: 6.215 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003732/0.1651, allocations: 157.8 kB / 365 MB, free: 6.039 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.443e-06/0.1652, allocations: 0 / 365 MB, free: 6.039 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001167/0.1663, allocations: 383.2 kB / 365.4 MB, free: 5.637 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.773e-05/0.1664, allocations: 110.8 kB / 365.5 MB, free: 5.504 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002243/0.1667, allocations: 220.9 kB / 365.7 MB, free: 5.277 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.032e-05/0.1667, allocations: 33.7 kB / 365.8 MB, free: 5.238 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.1668, allocations: 176.2 kB / 365.9 MB, free: 5.062 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.759e-05/0.1669, allocations: 70.98 kB / 366 MB, free: 4.992 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.398e-05/0.167, allocations: 57.7 kB / 366.1 MB, free: 4.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.1672, allocations: 346.7 kB / 366.4 MB, free: 4.582 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001299/0.1673, allocations: 63.97 kB / 366.5 MB, free: 4.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001838/0.1675, allocations: 140.8 kB / 366.6 MB, free: 4.348 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002677/0.1678, allocations: 188.9 kB / 366.8 MB, free: 4.141 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.758e-06/0.1678, allocations: 4 kB / 366.8 MB, free: 4.137 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004328/0.1682, allocations: 272.4 kB / 367.1 MB, free: 3.863 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.1682, allocations: 11.94 kB / 367.1 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.1683, allocations: 7.922 kB / 367.1 MB, free: 3.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000289/0.1686, allocations: 61.03 kB / 367.1 MB, free: 3.781 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002191/0.1688, allocations: 51.91 kB / 367.2 MB, free: 3.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001345/0.1701, allocations: 1.404 MB / 368.6 MB, free: 2.195 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00023/0.1704, allocations: 39.7 kB / 368.6 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.092e-05/0.1704, allocations: 8 kB / 368.6 MB, free: 2.148 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0001725/0.1706, allocations: 151 kB / 368.8 MB, free: 1.992 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.951e-05/0.1706, allocations: 27.66 kB / 368.8 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.089e-05/0.1707, allocations: 26.17 kB / 368.8 MB, free: 1.941 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.1707, allocations: 4 kB / 368.8 MB, free: 1.938 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.1707, allocations: 0 / 368.8 MB, free: 1.938 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.1707, allocations: 0 / 368.8 MB, free: 1.938 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003464/0.1711, allocations: 317.5 kB / 369.2 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1711, allocations: 0 / 369.2 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001695/0.1713, allocations: 35.92 kB / 369.2 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001919/0.1715, allocations: 52.75 kB / 369.2 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.157e-05/0.1715, allocations: 8 kB / 369.3 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/0.1727, allocations: 1.323 MB / 370.6 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.1727, allocations: 4.031 kB / 370.6 MB, free: 16 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2689/0.4416, allocations: 320.8 kB / 370.9 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001569/0.4418, allocations: 117.7 kB / 371 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.759e-05/0.4419, allocations: 10.02 kB / 371 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001936/0.4421, allocations: 20.41 kB / 371 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/0.4422, allocations: 28.31 kB / 371.1 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.022e-05/0.4423, allocations: 8.5 kB / 371.1 MB, free: 20.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001839/0.4424, allocations: 161.3 kB / 371.2 MB, free: 20.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4425, allocations: 0 / 371.2 MB, free: 20.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005031/0.443, allocations: 80.92 kB / 371.3 MB, free: 20.16 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001725/0.4431, allocations: 105.4 kB / 371.4 MB, free: 20.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006231/0.4438, allocations: 287.2 kB / 371.7 MB, free: 19.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.4438, allocations: 0 / 371.7 MB, free: 19.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002943/0.4441, allocations: 196.5 kB / 371.9 MB, free: 19.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003641/0.4445, allocations: 44.98 kB / 371.9 MB, free: 19.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/0.4462, allocations: 0.7502 MB / 372.7 MB, free: 19.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.4466, allocations: 0.7622 MB / 373.4 MB, free: 18.78 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001213/0.4467, allocations: 22.11 kB / 373.5 MB, free: 18.78 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.743e-05/0.4468, allocations: 23.92 kB / 373.5 MB, free: 18.77 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.4468, allocations: 1.125 kB / 373.5 MB, free: 18.77 MB / 302.1 MB Notification: Performance of Templates: time 0.008861/0.4556, allocations: 2.78 MB / 376.3 MB, free: 18.62 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches