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.000905/0.000905, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0008509/0.0008509, allocations: 143.9 kB / 24.89 MB, free: 9.203 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.9783/0.9783, allocations: 173.3 MB / 201.5 MB, free: 9.207 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.342e-06/1.342e-06, allocations: 0 / 268.5 MB, free: 6.148 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.948e-05/2.082e-05, allocations: 2.312 kB / 268.5 MB, free: 6.145 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00336/0.003381, allocations: 2.904 MB / 271.4 MB, free: 3.223 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001258/0.004639, allocations: 0.7436 MB / 272.2 MB, free: 2.473 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000148/0.004787, allocations: 7.938 kB / 272.2 MB, free: 2.465 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001562/0.004943, allocations: 47.5 kB / 272.2 MB, free: 2.418 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001908/0.005134, allocations: 95.12 kB / 272.3 MB, free: 2.324 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000304/0.005438, allocations: 103.6 kB / 272.4 MB, free: 2.223 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003076/0.005745, allocations: 394.1 kB / 272.8 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001505/0.005896, allocations: 86.28 kB / 272.9 MB, free: 1.746 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002023/0.006098, allocations: 211.6 kB / 273.1 MB, free: 1.539 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001523/0.00625, allocations: 115.7 kB / 273.2 MB, free: 1.426 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.568e-05/0.006286, allocations: 32 kB / 273.2 MB, free: 1.395 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.037e-05/0.006316, allocations: 28 kB / 273.3 MB, free: 1.367 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.264e-05/0.006359, allocations: 71.73 kB / 273.3 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.907e-05/0.006448, allocations: 123.7 kB / 273.5 MB, free: 1.176 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002516/0.0067, allocations: 243.1 kB / 273.7 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.006703, allocations: 0 / 273.7 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.006705, allocations: 4 kB / 273.7 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.006711, allocations: 3.938 kB / 273.7 MB, free: 0.9297 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.0005804/0.007291, allocations: 0.5052 MB / 274.2 MB, free: 408 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.007323, allocations: 8.922 kB / 274.2 MB, free: 400 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.445e-05/0.007388, allocations: 52.89 kB / 274.3 MB, free: 348 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002058/0.007594, allocations: 181.2 kB / 274.4 MB, free: 140 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-05/0.007684, allocations: 132.1 kB / 274.6 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.257e-05/0.007716, allocations: 28.38 kB / 274.6 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002443/0.007961, allocations: 298.4 kB / 274.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.00797, allocations: 192 / 274.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.891e-05/0.007988, allocations: 16.12 kB / 274.9 MB, free: 15.62 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.007996, allocations: 8 kB / 274.9 MB, free: 15.61 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001028/0.008099, allocations: 72.55 kB / 275 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008323/0.008931, allocations: 0.8256 MB / 275.8 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001552/0.009086, allocations: 113.6 kB / 275.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.24e-05/0.009129, allocations: 37.2 kB / 276 MB, free: 14.51 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.454e-05/0.009143, allocations: 3.984 kB / 276 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001497/0.009293, allocations: 192.4 kB / 276.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.303e-06/0.009294, allocations: 0 / 276.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003887/0.009683, allocations: 182.4 kB / 276.3 MB, free: 14.1 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.704e-05/0.00973, allocations: 114.7 kB / 276.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.009836, allocations: 199.4 kB / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.009855, allocations: 33.7 kB / 276.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.767e-05/0.009922, allocations: 172.4 kB / 276.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.662e-05/0.009959, allocations: 71.39 kB / 276.9 MB, free: 13.47 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.648e-05/0.01003, allocations: 61.62 kB / 277 MB, free: 13.41 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.881e-05/0.0101, allocations: 334.8 kB / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.516e-05/0.01014, allocations: 20 kB / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.562e-05/0.01024, allocations: 167.9 kB / 277.5 MB, free: 12.84 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001129/0.01035, allocations: 132.1 kB / 277.6 MB, free: 12.69 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.01035, allocations: 0 / 277.6 MB, free: 12.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0001816/0.01053, allocations: 184.8 kB / 277.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.01055, allocations: 12.03 kB / 277.8 MB, free: 12.49 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.01055, allocations: 0 / 277.8 MB, free: 12.49 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001391/0.01069, allocations: 40.81 kB / 277.8 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001481/0.01084, allocations: 63.84 kB / 277.9 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009797/0.01182, allocations: 1.316 MB / 279.2 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00011/0.01193, allocations: 35.77 kB / 279.3 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.539e-05/0.01194, allocations: 12 kB / 279.3 MB, free: 10.93 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 8.801e-05/0.01203, allocations: 133.8 kB / 279.4 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.173e-05/0.01205, allocations: 23.97 kB / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.478e-05/0.01208, allocations: 21.97 kB / 279.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.01208, allocations: 4 kB / 279.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-06/0.01208, allocations: 0 / 279.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.01209, allocations: 3.984 kB / 279.4 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001368/0.01222, allocations: 145.7 kB / 279.6 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.01222, allocations: 0 / 279.6 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001163/0.01234, allocations: 47.89 kB / 279.6 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.355e-05/0.01242, allocations: 40.81 kB / 279.7 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.01243, allocations: 4 kB / 279.7 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005395/0.01297, allocations: 1.17 MB / 280.8 MB, free: 9.227 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.01297, allocations: 4.125 kB / 280.9 MB, free: 9.223 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002218/0.0132, allocations: 213 kB / 281.1 MB, free: 8.996 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.151e-05/0.01324, allocations: 23.83 kB / 281.1 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.01326, allocations: 4 kB / 281.1 MB, free: 8.969 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.926e-05/0.01331, allocations: 15.98 kB / 281.1 MB, free: 8.953 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.934e-05/0.01337, allocations: 31.94 kB / 281.1 MB, free: 8.922 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-06/0.01338, allocations: 4 kB / 281.1 MB, free: 8.918 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.259e-05/0.01342, allocations: 67 kB / 281.2 MB, free: 8.852 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01342, allocations: 0 / 281.2 MB, free: 8.852 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002037/0.01363, allocations: 83.84 kB / 281.3 MB, free: 8.77 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 9.665e-05/0.01372, allocations: 80.41 kB / 281.4 MB, free: 8.684 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000258/0.01398, allocations: 223 kB / 281.6 MB, free: 8.449 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.01399, allocations: 4 kB / 281.6 MB, free: 8.445 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.01411, allocations: 172.1 kB / 281.8 MB, free: 8.262 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000134/0.01424, allocations: 50.81 kB / 281.8 MB, free: 8.215 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008868/0.01513, allocations: 0.5593 MB / 282.4 MB, free: 7.625 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.095e-05/0.01517, allocations: 84.33 kB / 282.4 MB, free: 7.523 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.515e-05/0.01522, allocations: 21.94 kB / 282.5 MB, free: 7.504 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.01533, allocations: 99.28 kB / 282.6 MB, free: 7.406 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01533, allocations: 0 / 282.6 MB, free: 7.406 MB / 266.7 MB Notification: Performance of Templates: time 0.005114/0.02044, allocations: 3.149 MB / 285.7 MB, free: 4.309 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 -s gbode -gbm=radauIIA3 -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: 2.655977707821876]