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.0007848/0.0007848, allocations: 84 kB / 21.43 MB, free: 3.133 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.003518/0.003518, allocations: 143.5 kB / 24.68 MB, free: 8.891 MB / 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 0.8436/0.8436, allocations: 173.4 MB / 201.2 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] 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.773e-06/1.773e-06, allocations: 0 / 319.7 MB, free: 5.699 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.429e-05/2.606e-05, allocations: 6.219 kB / 319.7 MB, free: 5.691 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002791/0.002817, allocations: 2.66 MB / 322.4 MB, free: 3.012 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008583/0.003675, allocations: 0.7166 MB / 323.1 MB, free: 2.289 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001098/0.003785, allocations: 4 kB / 323.1 MB, free: 2.285 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.003912, allocations: 47.5 kB / 323.1 MB, free: 2.238 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001204/0.004032, allocations: 99.02 kB / 323.2 MB, free: 2.141 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002619/0.004294, allocations: 107.7 kB / 323.3 MB, free: 2.035 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002648/0.004559, allocations: 386.2 kB / 323.7 MB, free: 1.656 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001547/0.004713, allocations: 75.69 kB / 323.8 MB, free: 1.578 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001509/0.004864, allocations: 215.5 kB / 324 MB, free: 1.367 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001373/0.005002, allocations: 111.7 kB / 324.1 MB, free: 1.258 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.35e-05/0.005045, allocations: 32 kB / 324.1 MB, free: 1.227 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.898e-05/0.005074, allocations: 32 kB / 324.2 MB, free: 1.195 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.508e-05/0.005119, allocations: 71.73 kB / 324.2 MB, free: 1.125 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.354e-05/0.005203, allocations: 115.7 kB / 324.3 MB, free: 1.012 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002821/0.005485, allocations: 374.8 kB / 324.7 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.005488, allocations: 0 / 324.7 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.005489, allocations: 0 / 324.7 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.005494, allocations: 4 kB / 324.7 MB, free: 0.6406 MB / 282.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.0006916/0.006185, allocations: 0.5371 MB / 325.3 MB, free: 80 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.006221, allocations: 8.922 kB / 325.3 MB, free: 72 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.182e-05/0.006283, allocations: 40.7 kB / 325.3 MB, free: 32 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002795/0.006562, allocations: 205.9 kB / 325.5 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.017e-05/0.006642, allocations: 124 kB / 325.6 MB, free: 15.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.517e-05/0.006678, allocations: 32.38 kB / 325.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003333/0.007011, allocations: 353.8 kB / 326 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.007022, allocations: 192 / 326 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.235e-05/0.007044, allocations: 12.12 kB / 326 MB, free: 15.24 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.007051, allocations: 8 kB / 326 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002255/0.007277, allocations: 190.5 kB / 326.2 MB, free: 15.05 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009826/0.008259, allocations: 0.9696 MB / 327.2 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002186/0.008478, allocations: 142.6 kB / 327.3 MB, free: 13.87 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.422e-05/0.008562, allocations: 84.8 kB / 327.4 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.397e-05/0.008576, allocations: 4 kB / 327.4 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001969/0.008773, allocations: 208.4 kB / 327.6 MB, free: 13.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.172e-06/0.008774, allocations: 0 / 327.6 MB, free: 13.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006013/0.009375, allocations: 310.4 kB / 327.9 MB, free: 13.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.598e-05/0.009431, allocations: 110.8 kB / 328 MB, free: 13.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.00956, allocations: 199.9 kB / 328.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.009578, allocations: 33.64 kB / 328.2 MB, free: 12.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.974e-05/0.009658, allocations: 188.4 kB / 328.4 MB, free: 12.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.997e-05/0.009698, allocations: 71.42 kB / 328.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.969e-05/0.009757, allocations: 57.66 kB / 328.6 MB, free: 12.53 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.843e-05/0.009836, allocations: 334.8 kB / 328.9 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.077e-05/0.009916, allocations: 63.97 kB / 328.9 MB, free: 12.13 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003865/0.0103, allocations: 192.1 kB / 329.1 MB, free: 11.9 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001781/0.01048, allocations: 196.1 kB / 329.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.01048, allocations: 0 / 329.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002742/0.01076, allocations: 284.6 kB / 329.6 MB, free: 11.4 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.01077, allocations: 8 kB / 329.6 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.01078, allocations: 0 / 329.6 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001875/0.01096, allocations: 52.81 kB / 329.7 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.01109, allocations: 51.92 kB / 329.7 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008297/0.01192, allocations: 1.442 MB / 331.2 MB, free: 9.738 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.01203, allocations: 31.88 kB / 331.2 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.277e-05/0.01204, allocations: 8 kB / 331.2 MB, free: 9.699 MB / 298.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.0001006/0.01214, allocations: 145.9 kB / 331.3 MB, free: 9.547 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.948e-05/0.01216, allocations: 27.86 kB / 331.4 MB, free: 9.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.398e-05/0.01219, allocations: 25.95 kB / 331.4 MB, free: 9.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.01219, allocations: 7.938 kB / 331.4 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.01219, allocations: 0 / 331.4 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.0122, allocations: 0 / 331.4 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001599/0.01236, allocations: 221.1 kB / 331.6 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.01236, allocations: 0 / 331.6 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.923e-05/0.01245, allocations: 35.92 kB / 331.6 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001118/0.01256, allocations: 56.81 kB / 331.7 MB, free: 9.152 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.01257, allocations: 0 / 331.7 MB, free: 9.152 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006406/0.01321, allocations: 1.303 MB / 333 MB, free: 7.746 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.01321, allocations: 4.156 kB / 333 MB, free: 7.742 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003595/0.01357, allocations: 324.6 kB / 333.3 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.065e-05/0.01362, allocations: 35.84 kB / 333.4 MB, free: 7.371 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.75e-05/0.01364, allocations: 4 kB / 333.4 MB, free: 7.367 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.855e-05/0.01371, allocations: 19.98 kB / 333.4 MB, free: 7.348 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.792e-05/0.01376, allocations: 31.88 kB / 333.4 MB, free: 7.316 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.904e-06/0.01377, allocations: 7.938 kB / 333.4 MB, free: 7.309 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.303e-05/0.01385, allocations: 149.6 kB / 333.6 MB, free: 7.164 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01385, allocations: 0 / 333.6 MB, free: 7.164 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002365/0.01408, allocations: 83.84 kB / 333.7 MB, free: 7.082 MB / 298.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 9.578e-05/0.01418, allocations: 104.2 kB / 333.8 MB, free: 6.969 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003375/0.01452, allocations: 274.5 kB / 334 MB, free: 6.688 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01452, allocations: 0 / 334 MB, free: 6.688 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000144/0.01466, allocations: 195 kB / 334.2 MB, free: 6.484 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001846/0.01485, allocations: 39.86 kB / 334.3 MB, free: 6.445 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008739/0.01572, allocations: 0.6211 MB / 334.9 MB, free: 5.789 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.908e-05/0.0158, allocations: 150.9 kB / 335 MB, free: 5.625 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.252e-05/0.01584, allocations: 20.5 kB / 335 MB, free: 5.605 MB / 298.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01584, allocations: 0 / 335 MB, free: 5.605 MB / 298.7 MB Notification: Performance of Templates: time 0.004028/0.01987, allocations: 4.21 MB / 339.3 MB, free: 1.402 MB / 298.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] 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.261902907863259]