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.001523/0.001523, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001185/0.001185, allocations: 142.1 kB / 24.97 MB, free: 8.316 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.9595/0.9595, allocations: 173.3 MB / 201.5 MB, free: 9.316 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 3.586e-06/3.586e-06, allocations: 4 kB / 268.1 MB, free: 6.707 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.867e-05/2.226e-05, allocations: 6.25 kB / 268.1 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004108/0.004131, allocations: 2.874 MB / 271 MB, free: 3.809 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001431/0.005561, allocations: 0.7126 MB / 271.7 MB, free: 3.09 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001516/0.005713, allocations: 8 kB / 271.7 MB, free: 3.082 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001931/0.005906, allocations: 51.5 kB / 271.7 MB, free: 3.031 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002051/0.006111, allocations: 95.06 kB / 271.8 MB, free: 2.938 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003747/0.006486, allocations: 111.6 kB / 271.9 MB, free: 2.828 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000417/0.006903, allocations: 382.2 kB / 272.3 MB, free: 2.453 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002073/0.00711, allocations: 87.66 kB / 272.4 MB, free: 2.363 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002527/0.007363, allocations: 211.5 kB / 272.6 MB, free: 2.156 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001984/0.007561, allocations: 115.7 kB / 272.7 MB, free: 2.043 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.678e-05/0.007618, allocations: 28 kB / 272.7 MB, free: 2.016 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.868e-05/0.007667, allocations: 32 kB / 272.8 MB, free: 1.984 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.503e-05/0.007732, allocations: 71.73 kB / 272.8 MB, free: 1.914 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001406/0.007872, allocations: 119.7 kB / 273 MB, free: 1.797 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003999/0.008272, allocations: 251 kB / 273.2 MB, free: 1.551 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.574e-06/0.008275, allocations: 0 / 273.2 MB, free: 1.551 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.008276, allocations: 0 / 273.2 MB, free: 1.551 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.008282, allocations: 0 / 273.2 MB, free: 1.551 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.000929/0.009211, allocations: 0.6339 MB / 273.8 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.009251, allocations: 8.922 kB / 273.8 MB, free: 0.875 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.009372, allocations: 64.7 kB / 273.9 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003247/0.009697, allocations: 212.7 kB / 274.1 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.009799, allocations: 124 kB / 274.2 MB, free: 440 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.344e-05/0.009852, allocations: 32.33 kB / 274.3 MB, free: 408 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004558/0.01031, allocations: 315.1 kB / 274.6 MB, free: 60 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.01032, allocations: 192 / 274.6 MB, free: 60 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.331e-05/0.01035, allocations: 16.12 kB / 274.6 MB, free: 44 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.01037, allocations: 12 kB / 274.6 MB, free: 32 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002999/0.01067, allocations: 119.8 kB / 274.7 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001496/0.01216, allocations: 1.103 MB / 275.8 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002912/0.01245, allocations: 123.1 kB / 275.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.01257, allocations: 55.66 kB / 276 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.901e-05/0.01259, allocations: 4 kB / 276 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002692/0.01286, allocations: 202.2 kB / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.804e-06/0.01286, allocations: 0 / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.003215/0.01608, allocations: 257.3 kB / 276.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.739e-05/0.01613, allocations: 106.8 kB / 276.6 MB, free: 13.92 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001531/0.01629, allocations: 250.7 kB / 276.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.01631, allocations: 33.7 kB / 276.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.396e-05/0.0164, allocations: 231.1 kB / 277.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.242e-05/0.01644, allocations: 75.42 kB / 277.1 MB, free: 13.31 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.48e-05/0.01651, allocations: 63.31 kB / 277.2 MB, free: 13.24 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.01664, allocations: 0.504 MB / 277.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.852e-05/0.0167, allocations: 35.98 kB / 277.7 MB, free: 12.69 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001271/0.01683, allocations: 200.2 kB / 277.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001634/0.01699, allocations: 170.8 kB / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.017, allocations: 0 / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002655/0.01726, allocations: 247.3 kB / 278.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.01728, allocations: 8 kB / 278.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.01728, allocations: 0 / 278.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001822/0.01746, allocations: 43.86 kB / 278.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.0176, allocations: 59.92 kB / 278.4 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009336/0.01854, allocations: 1.981 MB / 280.4 MB, free: 9.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.01864, allocations: 35.83 kB / 280.5 MB, free: 9.734 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.292e-05/0.01865, allocations: 12.12 kB / 280.5 MB, free: 9.723 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 9.607e-05/0.01875, allocations: 180.5 kB / 280.7 MB, free: 9.535 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.01877, allocations: 19.91 kB / 280.7 MB, free: 9.516 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.385e-05/0.0188, allocations: 21.97 kB / 280.7 MB, free: 9.496 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.0188, allocations: 7.938 kB / 280.7 MB, free: 9.488 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-06/0.0188, allocations: 0 / 280.7 MB, free: 9.488 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.01881, allocations: 7.922 kB / 280.7 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001619/0.01897, allocations: 220.4 kB / 280.9 MB, free: 9.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.01897, allocations: 0 / 280.9 MB, free: 9.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.319e-05/0.01906, allocations: 43.91 kB / 281 MB, free: 9.188 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.372e-05/0.01916, allocations: 39.66 kB / 281 MB, free: 9.145 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.01917, allocations: 4 kB / 281 MB, free: 9.141 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007341/0.0199, allocations: 1.755 MB / 282.8 MB, free: 7.266 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.01991, allocations: 4 kB / 282.8 MB, free: 7.262 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003092/0.02022, allocations: 271 kB / 283 MB, free: 6.973 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.937e-05/0.02026, allocations: 39.75 kB / 283.1 MB, free: 6.934 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.02028, allocations: 4 kB / 283.1 MB, free: 6.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.693e-05/0.02035, allocations: 15.98 kB / 283.1 MB, free: 6.914 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.87e-05/0.02042, allocations: 32.05 kB / 283.1 MB, free: 6.883 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.02043, allocations: 15.98 kB / 283.1 MB, free: 6.867 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.809e-05/0.02052, allocations: 173.4 kB / 283.3 MB, free: 6.699 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02052, allocations: 0 / 283.3 MB, free: 6.699 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002208/0.02074, allocations: 83.84 kB / 283.4 MB, free: 6.617 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 8.52e-05/0.02083, allocations: 103.2 kB / 283.5 MB, free: 6.504 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003476/0.02117, allocations: 309.4 kB / 283.8 MB, free: 6.18 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.02118, allocations: 4.062 kB / 283.8 MB, free: 6.176 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001718/0.02135, allocations: 237.7 kB / 284 MB, free: 5.922 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000194/0.02154, allocations: 47.78 kB / 284.1 MB, free: 5.875 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001028/0.02257, allocations: 0.5767 MB / 284.7 MB, free: 5.266 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.639e-05/0.02262, allocations: 84.31 kB / 284.7 MB, free: 5.164 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.312e-05/0.02268, allocations: 33.86 kB / 284.8 MB, free: 5.129 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.98e-05/0.02272, allocations: 24.5 kB / 284.8 MB, free: 5.105 MB / 266.7 MB Notification: Performance of SimCode: time 7.91e-07/0.02272, allocations: 0 / 284.8 MB, free: 5.105 MB / 266.7 MB Notification: Performance of Templates: time 0.004577/0.0273, allocations: 2.931 MB / 287.7 MB, free: 2.215 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.042870381148532]