Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001659/0.001659, allocations: 108.3 kB / 17.06 MB, free: 6.023 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.002061/0.002061, allocations: 192 kB / 17.99 MB, free: 5.109 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.473/1.473, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009652/0.0009653, allocations: 39.94 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4402/0.4411, allocations: 49.44 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004783/0.446, allocations: 2.866 MB / 403.6 MB, free: 6 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.4475, allocations: 0.7206 MB / 404.3 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001662/0.4477, allocations: 7.938 kB / 404.3 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002361/0.4479, allocations: 55.5 kB / 404.4 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002183/0.4482, allocations: 87.19 kB / 404.5 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000445/0.4487, allocations: 103.8 kB / 404.6 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004718/0.4491, allocations: 374.4 kB / 404.9 MB, free: 4.656 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002947/0.4494, allocations: 123.2 kB / 405.1 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001663/0.4496, allocations: 139.5 kB / 405.2 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002432/0.4499, allocations: 147.4 kB / 405.3 MB, free: 4.246 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.496e-05/0.4499, allocations: 32 kB / 405.4 MB, free: 4.215 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.333e-05/0.45, allocations: 32 kB / 405.4 MB, free: 4.184 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.33e-05/0.4501, allocations: 71.75 kB / 405.5 MB, free: 4.113 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001957/0.4503, allocations: 163.2 kB / 405.6 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004802/0.4508, allocations: 367.9 kB / 406 MB, free: 3.598 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.4508, allocations: 0 / 406 MB, free: 3.598 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.241e-06/0.4508, allocations: 0 / 406 MB, free: 3.598 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.4508, allocations: 3.938 kB / 406 MB, free: 3.594 MB / 318.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.001153/0.452, allocations: 0.6056 MB / 406.6 MB, free: 2.941 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.452, allocations: 8.031 kB / 406.6 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.652e-05/0.4521, allocations: 32.56 kB / 406.6 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004093/0.4525, allocations: 273 kB / 406.9 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.547e-05/0.4526, allocations: 72.62 kB / 407 MB, free: 2.516 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.861e-05/0.4527, allocations: 32.28 kB / 407 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005248/0.4532, allocations: 305.8 kB / 407.3 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.4533, allocations: 0 / 407.3 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.286e-05/0.4533, allocations: 12 kB / 407.3 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.4533, allocations: 8 kB / 407.3 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003382/0.4537, allocations: 190.2 kB / 407.5 MB, free: 1.965 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/0.4554, allocations: 1.119 MB / 408.6 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003486/0.4558, allocations: 164.7 kB / 408.8 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000146/0.456, allocations: 84.83 kB / 408.9 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.799e-05/0.456, allocations: 3.938 kB / 408.9 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002912/0.4563, allocations: 163.1 kB / 409 MB, free: 336 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.053e-06/0.4563, allocations: 0 / 409 MB, free: 336 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001121/0.4574, allocations: 385.6 kB / 409.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.878e-05/0.4576, allocations: 106.8 kB / 409.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002462/0.4578, allocations: 236.9 kB / 409.8 MB, free: 15.55 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.4578, allocations: 25.7 kB / 409.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.458, allocations: 180.2 kB / 410 MB, free: 15.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.18e-05/0.4581, allocations: 75.08 kB / 410 MB, free: 15.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.551e-05/0.4582, allocations: 61.61 kB / 410.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.4583, allocations: 334.8 kB / 410.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.4584, allocations: 63.97 kB / 410.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000188/0.4586, allocations: 152.5 kB / 410.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002687/0.4589, allocations: 188.9 kB / 410.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/0.4589, allocations: 4 kB / 410.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000417/0.4593, allocations: 272.4 kB / 411.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.4594, allocations: 7.938 kB / 411.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.4594, allocations: 4 kB / 411.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002972/0.4597, allocations: 53.03 kB / 411.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002263/0.4599, allocations: 55.91 kB / 411.2 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001471/0.4614, allocations: 1.564 MB / 412.8 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002068/0.4616, allocations: 31.92 kB / 412.8 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.103e-05/0.4617, allocations: 16 kB / 412.8 MB, free: 12.26 MB / 334.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.0002729/0.4619, allocations: 153.6 kB / 413 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.45e-05/0.462, allocations: 23.72 kB / 413 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.796e-05/0.462, allocations: 26.17 kB / 413 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.462, allocations: 4 kB / 413 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.913e-06/0.4621, allocations: 0 / 413 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.4621, allocations: 0 / 413 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003403/0.4624, allocations: 321.3 kB / 413.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.4624, allocations: 4 kB / 413.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.4626, allocations: 39.92 kB / 413.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001755/0.4628, allocations: 48.81 kB / 413.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.132e-05/0.4628, allocations: 4 kB / 413.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001291/0.4641, allocations: 1.43 MB / 414.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.4641, allocations: 0 / 414.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006151/0.4648, allocations: 324.6 kB / 415.2 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.706e-05/0.4649, allocations: 112.8 kB / 415.3 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.099e-05/0.4649, allocations: 3.984 kB / 415.3 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001587/0.4651, allocations: 24.11 kB / 415.3 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.578e-05/0.4652, allocations: 31.89 kB / 415.3 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/0.4652, allocations: 8 kB / 415.3 MB, free: 9.484 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001531/0.4654, allocations: 156.5 kB / 415.5 MB, free: 9.332 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4654, allocations: 4 kB / 415.5 MB, free: 9.328 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003648/0.4657, allocations: 83.73 kB / 415.6 MB, free: 9.246 MB / 334.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.0001592/0.4659, allocations: 107.2 kB / 415.7 MB, free: 9.133 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005919/0.4665, allocations: 286.5 kB / 416 MB, free: 8.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.4665, allocations: 0 / 416 MB, free: 8.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002904/0.4668, allocations: 206.5 kB / 416.2 MB, free: 8.625 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003178/0.4671, allocations: 32.8 kB / 416.2 MB, free: 8.594 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001616/0.4688, allocations: 0.6474 MB / 416.8 MB, free: 7.922 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00037/0.4692, allocations: 0.7635 MB / 417.6 MB, free: 7.129 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.652e-05/0.4693, allocations: 22.28 kB / 417.6 MB, free: 7.109 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.284e-05/0.4693, allocations: 23.44 kB / 417.7 MB, free: 7.086 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.4693, allocations: 0 / 417.7 MB, free: 7.086 MB / 334.1 MB Notification: Performance of Templates: time 0.00731/0.4766, allocations: 3.092 MB / 420.7 MB, free: 4.02 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches