Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.00133/0.00133, allocations: 111.9 kB / 18.4 MB, free: 4.695 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.001348/0.001348, allocations: 182.4 kB / 19.33 MB, free: 3.777 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.343/1.343, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001213/0.001213, allocations: 55.94 kB / 329.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1032, allocations: 46.6 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004663/0.1079, allocations: 2.828 MB / 378.6 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001895/0.1098, allocations: 0.7834 MB / 379.4 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003952/0.1102, allocations: 8 kB / 379.4 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002954/0.1106, allocations: 51.44 kB / 379.5 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004026/0.111, allocations: 91.19 kB / 379.6 MB, free: 0.793 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004593/0.1115, allocations: 95.83 kB / 379.7 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005583/0.112, allocations: 378.2 kB / 380 MB, free: 336 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002545/0.1123, allocations: 115.3 kB / 380.2 MB, free: 216 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002349/0.1126, allocations: 135.6 kB / 380.3 MB, free: 80 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2263/0.3389, allocations: 151.5 kB / 380.4 MB, free: 9.988 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001291/0.3391, allocations: 30.25 kB / 380.5 MB, free: 9.988 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001262/0.3392, allocations: 30.88 kB / 380.5 MB, free: 9.988 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.23e-05/0.3393, allocations: 74.17 kB / 380.6 MB, free: 9.988 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002099/0.3395, allocations: 162 kB / 380.7 MB, free: 9.988 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005248/0.34, allocations: 363.7 kB / 381.1 MB, free: 9.953 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.351e-06/0.3401, allocations: 0.5312 kB / 381.1 MB, free: 9.953 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3401, allocations: 2.594 kB / 381.1 MB, free: 9.953 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.3401, allocations: 0 / 381.1 MB, free: 9.953 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.001049/0.3411, allocations: 0.6099 MB / 381.7 MB, free: 9.508 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.3412, allocations: 10.22 kB / 381.7 MB, free: 9.508 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.3e-05/0.3413, allocations: 35.14 kB / 381.7 MB, free: 9.492 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000407/0.3417, allocations: 259.4 kB / 382 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.62e-05/0.3418, allocations: 82.02 kB / 382.1 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.972e-05/0.3418, allocations: 30.34 kB / 382.1 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005326/0.3424, allocations: 299.9 kB / 382.4 MB, free: 9.141 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.3424, allocations: 0.5625 kB / 382.4 MB, free: 9.141 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.107e-05/0.3424, allocations: 10.62 kB / 382.4 MB, free: 9.141 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.3425, allocations: 9.125 kB / 382.4 MB, free: 9.141 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003488/0.3428, allocations: 193.3 kB / 382.6 MB, free: 9.137 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00166/0.3445, allocations: 1.123 MB / 383.7 MB, free: 8.523 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003446/0.3448, allocations: 154.2 kB / 383.9 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001603/0.345, allocations: 80.33 kB / 383.9 MB, free: 8.492 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/0.345, allocations: 5.719 kB / 384 MB, free: 8.492 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002529/0.3453, allocations: 162.4 kB / 384.1 MB, free: 8.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.764e-06/0.3453, allocations: 0 / 384.1 MB, free: 8.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001123/0.3464, allocations: 379.5 kB / 384.5 MB, free: 8.266 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.379e-05/0.3465, allocations: 113.6 kB / 384.6 MB, free: 8.133 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000226/0.3467, allocations: 229.1 kB / 384.8 MB, free: 8.027 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.3468, allocations: 27.69 kB / 384.8 MB, free: 7.996 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.3469, allocations: 185.2 kB / 385 MB, free: 7.867 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.476e-05/0.3469, allocations: 65.03 kB / 385.1 MB, free: 7.832 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.255e-05/0.347, allocations: 58.98 kB / 385.1 MB, free: 7.812 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.655e-05/0.3471, allocations: 339.2 kB / 385.5 MB, free: 7.496 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.3472, allocations: 63.48 kB / 385.5 MB, free: 7.496 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001651/0.3474, allocations: 151 kB / 385.7 MB, free: 7.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002519/0.3477, allocations: 190.7 kB / 385.9 MB, free: 7.34 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3477, allocations: 0 / 385.9 MB, free: 7.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000422/0.3481, allocations: 272.9 kB / 386.1 MB, free: 7.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.3481, allocations: 9.562 kB / 386.2 MB, free: 7.266 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.3481, allocations: 2.344 kB / 386.2 MB, free: 7.266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000272/0.3484, allocations: 49.98 kB / 386.2 MB, free: 7.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002172/0.3486, allocations: 57.06 kB / 386.3 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001072/0.3497, allocations: 1.571 MB / 387.8 MB, free: 5.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000232/0.35, allocations: 41.38 kB / 387.9 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.964e-05/0.35, allocations: 9.672 kB / 387.9 MB, free: 5.656 MB / 318.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.0001407/0.3501, allocations: 153.3 kB / 388 MB, free: 5.516 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.706e-05/0.3502, allocations: 27.67 kB / 388.1 MB, free: 5.504 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.841e-05/0.3502, allocations: 29.94 kB / 388.1 MB, free: 5.48 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3502, allocations: 1.375 kB / 388.1 MB, free: 5.48 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.3502, allocations: 1.312 kB / 388.1 MB, free: 5.48 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.82e-06/0.3503, allocations: 1.266 kB / 388.1 MB, free: 5.48 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003179/0.3506, allocations: 323.3 kB / 388.4 MB, free: 5.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.3506, allocations: 1.906 kB / 388.4 MB, free: 5.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001625/0.3508, allocations: 37.64 kB / 388.4 MB, free: 5.227 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001746/0.3509, allocations: 51.55 kB / 388.5 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.887e-05/0.351, allocations: 6.5 kB / 388.5 MB, free: 5.203 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008644/0.3518, allocations: 1.423 MB / 389.9 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3519, allocations: 3.75 kB / 389.9 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006/0.3525, allocations: 325.9 kB / 390.2 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.502e-05/0.3526, allocations: 113.3 kB / 390.4 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.428e-05/0.3526, allocations: 13.12 kB / 390.4 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.3528, allocations: 13.77 kB / 390.4 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.341e-05/0.3529, allocations: 33.44 kB / 390.4 MB, free: 3.484 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.3529, allocations: 6 kB / 390.4 MB, free: 3.484 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001412/0.353, allocations: 160.5 kB / 390.6 MB, free: 3.379 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3531, allocations: 5.219 kB / 390.6 MB, free: 3.375 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003591/0.3534, allocations: 86.66 kB / 390.7 MB, free: 3.352 MB / 318.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.00012/0.3535, allocations: 106.5 kB / 390.8 MB, free: 3.262 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005221/0.3541, allocations: 290.3 kB / 391.1 MB, free: 3.098 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3541, allocations: 0 / 391.1 MB, free: 3.098 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002578/0.3543, allocations: 195 kB / 391.2 MB, free: 2.961 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003031/0.3547, allocations: 36.28 kB / 391.3 MB, free: 2.949 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001591/0.3563, allocations: 0.6746 MB / 392 MB, free: 2.551 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000225/0.3565, allocations: 0.7586 MB / 392.7 MB, free: 1.852 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.224e-05/0.3566, allocations: 23.36 kB / 392.7 MB, free: 1.844 MB / 318.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3566, allocations: 0 / 392.7 MB, free: 1.844 MB / 318.1 MB Notification: Performance of Templates: time 0.007877/0.3645, allocations: 4.19 MB / 396.9 MB, free: 1.508 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches