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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002388/0.002388, allocations: 99.86 kB / 20.96 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002614/0.002614, allocations: 145.1 kB / 24.26 MB, free: 164 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.52/1.52, allocations: 173.4 MB / 200.8 MB, free: 9.305 MB / 186.7 MB " [Timeout remaining time 178] 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=8000,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=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 267.3 MB, free: 6.711 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.676e-05/2.815e-05, allocations: 2.312 kB / 267.3 MB, free: 6.707 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004586/0.004614, allocations: 2.835 MB / 270.2 MB, free: 3.855 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001935/0.00655, allocations: 0.7165 MB / 270.9 MB, free: 3.133 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001573/0.006707, allocations: 4 kB / 270.9 MB, free: 3.129 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002033/0.00691, allocations: 51.44 kB / 270.9 MB, free: 3.078 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002162/0.007126, allocations: 99.12 kB / 271 MB, free: 2.98 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003909/0.007517, allocations: 111.6 kB / 271.1 MB, free: 2.871 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005219/0.008039, allocations: 382.2 kB / 271.5 MB, free: 2.496 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002283/0.008267, allocations: 83.64 kB / 271.6 MB, free: 2.41 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002904/0.008558, allocations: 211.6 kB / 271.8 MB, free: 2.203 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002417/0.008799, allocations: 115.7 kB / 271.9 MB, free: 2.09 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.059e-05/0.00886, allocations: 32 kB / 271.9 MB, free: 2.059 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.525e-05/0.008925, allocations: 32 kB / 272 MB, free: 2.027 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.605e-05/0.009011, allocations: 75.72 kB / 272.1 MB, free: 1.953 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001547/0.009166, allocations: 111.8 kB / 272.2 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005067/0.009673, allocations: 382.7 kB / 272.5 MB, free: 1.469 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.00968, allocations: 4 kB / 272.5 MB, free: 1.465 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.009681, allocations: 0 / 272.5 MB, free: 1.465 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.009688, allocations: 3.938 kB / 272.5 MB, free: 1.461 MB / 250.7 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.001149/0.01084, allocations: 0.6491 MB / 273.2 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.01088, allocations: 8.922 kB / 273.2 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.011, allocations: 64.7 kB / 273.3 MB, free: 0.707 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003548/0.01136, allocations: 208.8 kB / 273.5 MB, free: 484 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/0.01149, allocations: 136 kB / 273.6 MB, free: 324 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.644e-05/0.01155, allocations: 28.38 kB / 273.6 MB, free: 296 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005908/0.01214, allocations: 366.4 kB / 274 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.01215, allocations: 4.188 kB / 274 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.474e-05/0.01219, allocations: 16.12 kB / 274 MB, free: 15.88 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.0122, allocations: 4 kB / 274 MB, free: 15.88 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003712/0.01257, allocations: 190.5 kB / 274.2 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001892/0.01446, allocations: 1.174 MB / 275.4 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003573/0.01482, allocations: 159 kB / 275.5 MB, free: 14.28 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.01496, allocations: 75.66 kB / 275.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.348e-05/0.015, allocations: 4 kB / 275.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003562/0.01535, allocations: 222.6 kB / 275.8 MB, free: 13.94 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.352e-06/0.01536, allocations: 4 kB / 275.8 MB, free: 13.94 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001044/0.0164, allocations: 309.3 kB / 276.1 MB, free: 13.62 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.09e-05/0.01649, allocations: 106.8 kB / 276.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003104/0.0168, allocations: 286.7 kB / 276.5 MB, free: 13.2 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.025e-05/0.01683, allocations: 33.64 kB / 276.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001795/0.01701, allocations: 235.2 kB / 276.8 MB, free: 12.93 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.193e-05/0.01709, allocations: 79.41 kB / 276.9 MB, free: 12.85 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.01722, allocations: 75.31 kB / 276.9 MB, free: 12.77 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002986/0.01751, allocations: 0.5079 MB / 277.4 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001413/0.01766, allocations: 67.97 kB / 277.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002775/0.01793, allocations: 228.1 kB / 277.7 MB, free: 11.9 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004497/0.01838, allocations: 222.8 kB / 277.9 MB, free: 11.65 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.01839, allocations: 4 kB / 277.9 MB, free: 11.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004961/0.01888, allocations: 283.3 kB / 278.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.0189, allocations: 11.92 kB / 278.2 MB, free: 11.35 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.01891, allocations: 4 kB / 278.2 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002414/0.01915, allocations: 55.88 kB / 278.3 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002237/0.01937, allocations: 55.91 kB / 278.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001859/0.02123, allocations: 2.043 MB / 280.4 MB, free: 9.062 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002272/0.02146, allocations: 36.02 kB / 280.4 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.392e-05/0.02148, allocations: 11.98 kB / 280.4 MB, free: 9.016 MB / 266.7 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.0001902/0.02167, allocations: 192.5 kB / 280.6 MB, free: 8.816 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.186e-05/0.02173, allocations: 27.86 kB / 280.6 MB, free: 8.789 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.161e-05/0.02178, allocations: 25.95 kB / 280.7 MB, free: 8.766 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.02178, allocations: 7.922 kB / 280.7 MB, free: 8.758 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.02178, allocations: 4 kB / 280.7 MB, free: 8.754 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.02179, allocations: 0 / 280.7 MB, free: 8.754 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003332/0.02212, allocations: 272.4 kB / 281 MB, free: 8.453 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.02212, allocations: 0 / 281 MB, free: 8.453 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001675/0.02229, allocations: 31.92 kB / 281 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001881/0.02248, allocations: 51.66 kB / 281 MB, free: 8.367 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/0.0225, allocations: 3.984 kB / 281 MB, free: 8.363 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001614/0.02411, allocations: 1.814 MB / 282.9 MB, free: 6.43 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.02411, allocations: 0 / 282.9 MB, free: 6.43 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007393/0.02485, allocations: 339.1 kB / 283.2 MB, free: 6.074 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001226/0.02498, allocations: 35.88 kB / 283.2 MB, free: 6.039 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.672e-05/0.02502, allocations: 4 kB / 283.2 MB, free: 6.035 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/0.02523, allocations: 20.14 kB / 283.2 MB, free: 6.016 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/0.02534, allocations: 35.88 kB / 283.3 MB, free: 5.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.02536, allocations: 4 kB / 283.3 MB, free: 5.977 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001885/0.02554, allocations: 201.3 kB / 283.5 MB, free: 5.781 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02554, allocations: 0 / 283.5 MB, free: 5.781 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003917/0.02594, allocations: 87.78 kB / 283.6 MB, free: 5.695 MB / 266.7 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.000167/0.0261, allocations: 103.2 kB / 283.7 MB, free: 5.582 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006563/0.02676, allocations: 365.3 kB / 284 MB, free: 5.203 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.02676, allocations: 0 / 284 MB, free: 5.203 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003393/0.0271, allocations: 257.7 kB / 284.3 MB, free: 4.93 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002946/0.0274, allocations: 43.91 kB / 284.3 MB, free: 4.887 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.02904, allocations: 0.6004 MB / 284.9 MB, free: 4.254 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001532/0.0292, allocations: 150.9 kB / 285.1 MB, free: 4.09 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.976e-05/0.0293, allocations: 21.94 kB / 285.1 MB, free: 4.062 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.299e-05/0.02935, allocations: 20.5 kB / 285.1 MB, free: 4.043 MB / 266.7 MB Notification: Performance of SimCode: time 7.71e-07/0.02935, allocations: 0 / 285.1 MB, free: 4.043 MB / 266.7 MB Notification: Performance of Templates: time 0.007763/0.03711, allocations: 2.923 MB / 288 MB, free: 1.164 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.458811235963367]