Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 85.95 kB / 23 MB, free: 1.5 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002222/0.002222, allocations: 176.7 kB / 26.4 MB, free: 7.754 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9685/0.9685, allocations: 158.6 MB / 188.3 MB, free: 2.801 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 252.3 MB, free: 7.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.729e-05/1.875e-05, allocations: 6.25 kB / 252.3 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003991/0.00401, allocations: 3.05 MB / 255.3 MB, free: 4.16 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001399/0.005409, allocations: 0.7681 MB / 256.1 MB, free: 3.383 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001805/0.005589, allocations: 11.94 kB / 256.1 MB, free: 3.371 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001814/0.005771, allocations: 59.42 kB / 256.2 MB, free: 3.312 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002193/0.00599, allocations: 111 kB / 256.3 MB, free: 3.203 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003532/0.006343, allocations: 115.7 kB / 256.4 MB, free: 3.09 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003623/0.006706, allocations: 429.8 kB / 256.8 MB, free: 2.668 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001594/0.006865, allocations: 96.38 kB / 256.9 MB, free: 2.566 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002138/0.007079, allocations: 243.5 kB / 257.1 MB, free: 2.328 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001447/0.007223, allocations: 131.6 kB / 257.3 MB, free: 2.199 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.588e-05/0.007259, allocations: 36 kB / 257.3 MB, free: 2.164 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.42e-05/0.007293, allocations: 36 kB / 257.3 MB, free: 2.129 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.113e-05/0.007345, allocations: 83.67 kB / 257.4 MB, free: 2.047 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.684e-05/0.007431, allocations: 131.7 kB / 257.5 MB, free: 1.918 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002368/0.007668, allocations: 286.9 kB / 257.8 MB, free: 1.637 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.783e-06/0.00767, allocations: 0 / 257.8 MB, free: 1.637 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.007671, allocations: 0 / 257.8 MB, free: 1.637 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.007674, allocations: 0 / 257.8 MB, free: 1.637 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0006053/0.00828, allocations: 0.6829 MB / 258.5 MB, free: 0.918 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.011e-05/0.00831, allocations: 15.98 kB / 258.5 MB, free: 0.9023 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.174e-05/0.008381, allocations: 72.66 kB / 258.6 MB, free: 0.832 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002079/0.008589, allocations: 217 kB / 258.8 MB, free: 0.5898 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.162e-05/0.008661, allocations: 132 kB / 258.9 MB, free: 448 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.419e-05/0.008695, allocations: 36.36 kB / 259 MB, free: 412 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002693/0.008965, allocations: 322.7 kB / 259.3 MB, free: 52 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.447e-06/0.008974, allocations: 4.188 kB / 259.3 MB, free: 48 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.023e-05/0.008994, allocations: 20.12 kB / 259.3 MB, free: 28 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.116e-06/0.009002, allocations: 8 kB / 259.3 MB, free: 20 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001288/0.009131, allocations: 96.44 kB / 259.4 MB, free: 15.92 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/0.01053, allocations: 1.358 MB / 260.8 MB, free: 14.48 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002181/0.01075, allocations: 123 kB / 260.9 MB, free: 14.34 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.513e-05/0.01083, allocations: 47.66 kB / 260.9 MB, free: 14.29 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.518e-05/0.01084, allocations: 0 / 260.9 MB, free: 14.29 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002/0.01104, allocations: 191.4 kB / 261.1 MB, free: 14.07 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.182e-06/0.01104, allocations: 4 kB / 261.1 MB, free: 14.06 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006411/0.01168, allocations: 237.3 kB / 261.3 MB, free: 13.82 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.01174, allocations: 106.8 kB / 261.5 MB, free: 13.69 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002074/0.01194, allocations: 284.1 kB / 261.7 MB, free: 13.39 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.01197, allocations: 25.7 kB / 261.8 MB, free: 13.36 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.01211, allocations: 274.8 kB / 262 MB, free: 13.09 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.189e-05/0.01217, allocations: 71.41 kB / 262.1 MB, free: 13.02 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.853e-05/0.01227, allocations: 71.61 kB / 262.2 MB, free: 12.94 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.01243, allocations: 0.5078 MB / 262.7 MB, free: 12.42 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.006e-05/0.0125, allocations: 32.62 kB / 262.7 MB, free: 12.39 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001786/0.01268, allocations: 232.4 kB / 262.9 MB, free: 12.09 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000225/0.0129, allocations: 197.5 kB / 263.1 MB, free: 11.85 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.01291, allocations: 0 / 263.1 MB, free: 11.85 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000442/0.01335, allocations: 266.6 kB / 263.4 MB, free: 11.58 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.01336, allocations: 4 kB / 263.4 MB, free: 11.58 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.01337, allocations: 4 kB / 263.4 MB, free: 11.57 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001601/0.01353, allocations: 47.58 kB / 263.4 MB, free: 11.52 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002082/0.01374, allocations: 64.08 kB / 263.5 MB, free: 11.46 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001173/0.01491, allocations: 1.954 MB / 265.5 MB, free: 9.398 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002396/0.01515, allocations: 43.83 kB / 265.5 MB, free: 9.355 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.01517, allocations: 8 kB / 265.5 MB, free: 9.348 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0001315/0.0153, allocations: 188.5 kB / 265.7 MB, free: 9.152 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.97e-05/0.01533, allocations: 31.86 kB / 265.7 MB, free: 9.121 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.927e-05/0.01536, allocations: 34.27 kB / 265.8 MB, free: 9.086 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.01536, allocations: 0 / 265.8 MB, free: 9.086 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.01536, allocations: 0 / 265.8 MB, free: 9.086 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.01537, allocations: 0 / 265.8 MB, free: 9.086 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001528/0.01552, allocations: 201 kB / 265.9 MB, free: 8.863 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.01552, allocations: 0 / 265.9 MB, free: 8.863 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.839e-05/0.01562, allocations: 35.98 kB / 266 MB, free: 8.828 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.829e-05/0.01571, allocations: 43.64 kB / 266 MB, free: 8.781 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.01572, allocations: 4 kB / 266 MB, free: 8.777 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008313/0.01655, allocations: 1.729 MB / 267.8 MB, free: 6.93 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.01655, allocations: 0 / 267.8 MB, free: 6.93 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002737/0.01683, allocations: 251.6 kB / 268 MB, free: 6.656 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.214e-05/0.01688, allocations: 39.77 kB / 268 MB, free: 6.617 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.143e-05/0.0169, allocations: 8 kB / 268.1 MB, free: 6.609 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.161e-05/0.01697, allocations: 19.92 kB / 268.1 MB, free: 6.59 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.491e-05/0.01703, allocations: 27.95 kB / 268.1 MB, free: 6.562 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-06/0.01703, allocations: 12.02 kB / 268.1 MB, free: 6.551 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.616e-05/0.01711, allocations: 189.1 kB / 268.3 MB, free: 6.367 MB / 250.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01711, allocations: 4 kB / 268.3 MB, free: 6.363 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002443/0.01735, allocations: 91.78 kB / 268.4 MB, free: 6.273 MB / 250.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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.291e-05/0.01745, allocations: 107.2 kB / 268.5 MB, free: 6.16 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003116/0.01776, allocations: 305 kB / 268.8 MB, free: 5.844 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.01776, allocations: 4.062 kB / 268.8 MB, free: 5.84 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001509/0.01791, allocations: 230.4 kB / 269 MB, free: 5.594 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001795/0.01809, allocations: 44.41 kB / 269.1 MB, free: 5.551 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001209/0.0193, allocations: 0.6118 MB / 269.7 MB, free: 4.906 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.293e-05/0.01936, allocations: 88.31 kB / 269.8 MB, free: 4.801 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.48e-05/0.01944, allocations: 22.28 kB / 269.8 MB, free: 4.781 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.01955, allocations: 114.2 kB / 269.9 MB, free: 4.668 MB / 250.7 MB Notification: Performance of SimCode: time 1.182e-06/0.01955, allocations: 0 / 269.9 MB, free: 4.668 MB / 250.7 MB Notification: Performance of Templates: time 0.005391/0.02494, allocations: 3.213 MB / 273.1 MB, free: 1.488 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.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.9678437300026417]