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.001331/0.001331, allocations: 112.8 kB / 17.68 MB, free: 5.473 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.001146/0.001147, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.506/1.506, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001081, allocations: 50.2 kB / 302 MB, free: 5.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1401, allocations: 49.45 MB / 351.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.007163/0.1473, allocations: 3.133 MB / 354.6 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002362/0.1498, allocations: 0.7517 MB / 355.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002613/0.1501, allocations: 4 kB / 355.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002839/0.1504, allocations: 63.42 kB / 355.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002953/0.1507, allocations: 95.05 kB / 355.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005515/0.1513, allocations: 119.7 kB / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005546/0.1519, allocations: 414.1 kB / 356.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003366/0.1522, allocations: 143.7 kB / 356.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002477/0.1525, allocations: 163.4 kB / 356.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003383/0.1528, allocations: 175.2 kB / 356.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.437e-05/0.1529, allocations: 35.94 kB / 356.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.078e-05/0.1529, allocations: 36 kB / 356.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.1531, allocations: 79.75 kB / 356.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002059/0.1533, allocations: 195.1 kB / 356.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004662/0.1537, allocations: 418.5 kB / 357.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.952e-06/0.1538, allocations: 0 / 357.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1538, allocations: 0 / 357.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.387e-06/0.1538, allocations: 0 / 357.3 MB, free: 13.86 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.001252/0.155, allocations: 0.6509 MB / 357.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.232e-05/0.1551, allocations: 15.89 kB / 357.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.1552, allocations: 40.47 kB / 358 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004974/0.1557, allocations: 289.2 kB / 358.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.1559, allocations: 76.62 kB / 358.3 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.874e-05/0.156, allocations: 32.38 kB / 358.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006388/0.1566, allocations: 338.8 kB / 358.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.1566, allocations: 0 / 358.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.395e-05/0.1567, allocations: 19.98 kB / 358.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.657e-05/0.1567, allocations: 12 kB / 358.7 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004941/0.1572, allocations: 214.5 kB / 358.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002155/0.1594, allocations: 1.356 MB / 360.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000368/0.1598, allocations: 162.6 kB / 360.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002487/0.16, allocations: 92.8 kB / 360.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.406e-05/0.1601, allocations: 4 kB / 360.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003733/0.1604, allocations: 160.7 kB / 360.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.572e-06/0.1605, allocations: 0 / 360.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001309/0.1618, allocations: 399.1 kB / 361.1 MB, free: 9.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.1619, allocations: 118.7 kB / 361.2 MB, free: 9.609 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003245/0.1623, allocations: 254.7 kB / 361.5 MB, free: 9.352 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.668e-05/0.1623, allocations: 33.7 kB / 361.5 MB, free: 9.312 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001857/0.1625, allocations: 199.9 kB / 361.7 MB, free: 9.113 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.317e-05/0.1626, allocations: 78.98 kB / 361.8 MB, free: 9.035 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.1627, allocations: 57.94 kB / 361.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.1629, allocations: 342.8 kB / 362.2 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001657/0.1631, allocations: 80.62 kB / 362.2 MB, free: 8.551 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002486/0.1633, allocations: 173.5 kB / 362.4 MB, free: 8.336 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003805/0.1637, allocations: 241.4 kB / 362.6 MB, free: 8.066 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.1637, allocations: 0 / 362.6 MB, free: 8.066 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000743/0.1645, allocations: 344.3 kB / 363 MB, free: 7.723 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.1645, allocations: 7.938 kB / 363 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.1646, allocations: 4 kB / 363 MB, free: 7.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003505/0.1649, allocations: 60.97 kB / 363.1 MB, free: 7.648 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002877/0.1652, allocations: 63.91 kB / 363.1 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002068/0.1673, allocations: 1.564 MB / 364.7 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003091/0.1676, allocations: 51.61 kB / 364.7 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.89e-05/0.1677, allocations: 12 kB / 364.7 MB, free: 5.824 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.0002405/0.1679, allocations: 153.8 kB / 364.9 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.888e-05/0.168, allocations: 27.62 kB / 364.9 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.25e-05/0.168, allocations: 38.11 kB / 365 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.168, allocations: 0 / 365 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.168, allocations: 0 / 365 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/0.1681, allocations: 3.984 kB / 365 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004586/0.1685, allocations: 329.5 kB / 365.3 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1685, allocations: 0 / 365.3 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003201/0.1689, allocations: 43.97 kB / 365.3 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002092/0.1691, allocations: 56.69 kB / 365.4 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.535e-05/0.1691, allocations: 8 kB / 365.4 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00173/0.1709, allocations: 1.418 MB / 366.8 MB, free: 3.559 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1709, allocations: 3.984 kB / 366.8 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007308/0.1717, allocations: 355.2 kB / 367.2 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001253/0.1718, allocations: 112.8 kB / 367.3 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.787e-05/0.1718, allocations: 7.984 kB / 367.3 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/0.172, allocations: 20.05 kB / 367.3 MB, free: 3.031 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.1721, allocations: 35.89 kB / 367.3 MB, free: 2.996 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.761e-05/0.1722, allocations: 4 kB / 367.3 MB, free: 2.992 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000188/0.1723, allocations: 186 kB / 367.5 MB, free: 2.812 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1724, allocations: 0 / 367.5 MB, free: 2.812 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004055/0.1728, allocations: 83.84 kB / 367.6 MB, free: 2.73 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.0002063/0.173, allocations: 111.2 kB / 367.7 MB, free: 2.609 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006667/0.1737, allocations: 320.2 kB / 368 MB, free: 2.285 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1737, allocations: 0 / 368 MB, free: 2.285 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003026/0.174, allocations: 198.5 kB / 368.2 MB, free: 2.078 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/0.1743, allocations: 45.03 kB / 368.3 MB, free: 2.031 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.176, allocations: 0.6685 MB / 368.9 MB, free: 1.336 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004473/0.1764, allocations: 0.7675 MB / 369.7 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001243/0.1766, allocations: 34.27 kB / 369.7 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.885e-05/0.1766, allocations: 23.38 kB / 369.7 MB, free: 496 kB / 302.1 MB Notification: Performance of SimCode: time 8.92e-07/0.1767, allocations: 0 / 369.7 MB, free: 496 kB / 302.1 MB Notification: Performance of Templates: time 0.2589/0.4356, allocations: 3.091 MB / 372.8 MB, free: 24.72 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 -s cvode -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