Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.0008455/0.0008452, allocations: 94.53 kB / 17.3 MB, free: 6.391 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.001245/0.001245, allocations: 171.9 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.829/1.829, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005621/0.0005624, allocations: 16.94 kB / 281.4 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1429, allocations: 47.59 MB / 329 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004169/0.1471, allocations: 2.756 MB / 331.7 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001486/0.1487, allocations: 0.7682 MB / 332.5 MB, free: 216 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000182/0.1489, allocations: 11.94 kB / 332.5 MB, free: 204 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001987/0.1491, allocations: 43.67 kB / 332.5 MB, free: 160 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000187/0.1493, allocations: 79.31 kB / 332.6 MB, free: 80 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004314/0.1497, allocations: 99.84 kB / 332.7 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004375/0.1502, allocations: 402.1 kB / 333.1 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002636/0.1504, allocations: 116.2 kB / 333.2 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001945/0.1506, allocations: 139.4 kB / 333.4 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002122/0.1509, allocations: 155.2 kB / 333.5 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.289e-05/0.1509, allocations: 24 kB / 333.5 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.514e-05/0.151, allocations: 16 kB / 333.5 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.618e-05/0.1511, allocations: 63.75 kB / 333.6 MB, free: 15.08 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000212/0.1513, allocations: 192.8 kB / 333.8 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004084/0.1517, allocations: 398.7 kB / 334.2 MB, free: 14.49 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.1517, allocations: 0 / 334.2 MB, free: 14.49 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.1517, allocations: 0 / 334.2 MB, free: 14.49 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.1517, allocations: 3.938 kB / 334.2 MB, free: 14.49 MB / 286.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.001189/0.1529, allocations: 0.5887 MB / 334.8 MB, free: 13.85 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.383e-05/0.153, allocations: 12.03 kB / 334.8 MB, free: 13.84 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001271/0.1531, allocations: 44.47 kB / 334.8 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004092/0.1536, allocations: 281.2 kB / 335.1 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000125/0.1537, allocations: 80.62 kB / 335.2 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.329e-05/0.1538, allocations: 32.38 kB / 335.2 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006799/0.1545, allocations: 342.8 kB / 335.6 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.1545, allocations: 0 / 335.6 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.76e-05/0.1545, allocations: 16 kB / 335.6 MB, free: 12.99 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.594e-05/0.1546, allocations: 8 kB / 335.6 MB, free: 12.98 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004666/0.155, allocations: 226.5 kB / 335.8 MB, free: 12.76 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002159/0.1572, allocations: 1.391 MB / 337.2 MB, free: 11.27 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003666/0.1576, allocations: 170.6 kB / 337.4 MB, free: 11.09 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000174/0.1578, allocations: 88.77 kB / 337.4 MB, free: 11 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.1578, allocations: 4 kB / 337.4 MB, free: 11 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003711/0.1582, allocations: 165.8 kB / 337.6 MB, free: 10.81 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.964e-06/0.1582, allocations: 0 / 337.6 MB, free: 10.81 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001256/0.1595, allocations: 419.1 kB / 338 MB, free: 10.38 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.445e-05/0.1596, allocations: 110.8 kB / 338.1 MB, free: 10.24 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000309/0.1599, allocations: 258.7 kB / 338.4 MB, free: 9.984 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.046e-05/0.1599, allocations: 29.7 kB / 338.4 MB, free: 9.949 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001744/0.1601, allocations: 203.8 kB / 338.6 MB, free: 9.746 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.011e-05/0.1602, allocations: 75.08 kB / 338.7 MB, free: 9.672 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.42e-05/0.1602, allocations: 33.7 kB / 338.7 MB, free: 9.633 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.1604, allocations: 334.8 kB / 339 MB, free: 9.297 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/0.1606, allocations: 80.61 kB / 339.1 MB, free: 9.219 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002748/0.1609, allocations: 185.5 kB / 339.3 MB, free: 8.996 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004095/0.1613, allocations: 239.5 kB / 339.5 MB, free: 8.727 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.1613, allocations: 4 kB / 339.5 MB, free: 8.723 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007299/0.1621, allocations: 351.6 kB / 339.9 MB, free: 8.371 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.928e-05/0.1621, allocations: 8 kB / 339.9 MB, free: 8.363 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.1621, allocations: 0 / 339.9 MB, free: 8.363 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003524/0.1625, allocations: 68.97 kB / 340 MB, free: 8.293 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002592/0.1628, allocations: 59.91 kB / 340 MB, free: 8.234 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001757/0.1645, allocations: 1.416 MB / 341.4 MB, free: 6.684 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000261/0.1648, allocations: 47.7 kB / 341.5 MB, free: 6.637 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.888e-05/0.1648, allocations: 19.98 kB / 341.5 MB, free: 6.617 MB / 286.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.000207/0.1651, allocations: 153.8 kB / 341.6 MB, free: 6.457 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.416e-05/0.1651, allocations: 31.64 kB / 341.7 MB, free: 6.426 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.508e-05/0.1652, allocations: 30.17 kB / 341.7 MB, free: 6.398 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.1652, allocations: 0 / 341.7 MB, free: 6.398 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.1652, allocations: 7.875 kB / 341.7 MB, free: 6.391 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.1652, allocations: 0 / 341.7 MB, free: 6.391 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003875/0.1656, allocations: 341.4 kB / 342.1 MB, free: 6.008 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1656, allocations: 0 / 342.1 MB, free: 6.008 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001869/0.1658, allocations: 39.98 kB / 342.1 MB, free: 5.969 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001843/0.166, allocations: 52.75 kB / 342.1 MB, free: 5.914 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.037e-05/0.166, allocations: 4 kB / 342.1 MB, free: 5.91 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001251/0.1673, allocations: 1.323 MB / 343.5 MB, free: 4.453 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1673, allocations: 160 / 343.5 MB, free: 4.453 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007411/0.1681, allocations: 366.1 kB / 343.8 MB, free: 4.074 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.1682, allocations: 120.8 kB / 343.9 MB, free: 3.938 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.666e-05/0.1682, allocations: 8 kB / 344 MB, free: 3.93 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.1684, allocations: 19.98 kB / 344 MB, free: 3.91 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.1685, allocations: 27.95 kB / 344 MB, free: 3.883 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.1686, allocations: 12 kB / 344 MB, free: 3.871 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001814/0.1688, allocations: 182 kB / 344.2 MB, free: 3.691 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1688, allocations: 4 kB / 344.2 MB, free: 3.688 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004135/0.1692, allocations: 87.75 kB / 344.3 MB, free: 3.602 MB / 286.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.0001727/0.1694, allocations: 107.2 kB / 344.4 MB, free: 3.488 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006873/0.1701, allocations: 319 kB / 344.7 MB, free: 3.164 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1701, allocations: 0 / 344.7 MB, free: 3.164 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003095/0.1704, allocations: 198.6 kB / 344.9 MB, free: 2.957 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003461/0.1707, allocations: 28.55 kB / 344.9 MB, free: 2.93 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001749/0.1725, allocations: 0.8791 MB / 345.8 MB, free: 2.023 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006696/0.1732, allocations: 0.7677 MB / 346.6 MB, free: 1.23 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001359/0.1733, allocations: 26.28 kB / 346.6 MB, free: 1.207 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.708e-05/0.1734, allocations: 27.38 kB / 346.6 MB, free: 1.18 MB / 286.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1734, allocations: 4 kB / 346.6 MB, free: 1.176 MB / 286.1 MB Notification: Performance of Templates: time 0.007925/0.1813, allocations: 2.764 MB / 349.4 MB, free: 14.41 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches