Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001363/0.001363, allocations: 109.1 kB / 21.19 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001453/0.001453, allocations: 217 kB / 24.5 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 230.5 MB / 258.1 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002135/0.002135, allocations: 67.88 kB / 379 MB, free: 2.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2554, allocations: 53.41 MB / 432.5 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004662/0.26, allocations: 3.197 MB / 435.7 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00166/0.2617, allocations: 0.8178 MB / 436.5 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001924/0.2619, allocations: 11.94 kB / 436.5 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002068/0.2621, allocations: 63.42 kB / 436.5 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002139/0.2623, allocations: 107 kB / 436.6 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004386/0.2627, allocations: 123.7 kB / 436.8 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004951/0.2632, allocations: 418.2 kB / 437.2 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002234/0.2635, allocations: 104.3 kB / 437.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002736/0.2637, allocations: 167.4 kB / 437.4 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002541/0.264, allocations: 175.2 kB / 437.6 MB, free: 1.566 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.269e-05/0.264, allocations: 32 kB / 437.6 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001049/0.2641, allocations: 51.92 kB / 437.7 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.177e-05/0.2642, allocations: 75.7 kB / 437.8 MB, free: 1.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002093/0.2644, allocations: 187.1 kB / 438 MB, free: 1.227 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005116/0.2649, allocations: 431.5 kB / 438.4 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2649, allocations: 0 / 438.4 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2649, allocations: 0 / 438.4 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.265, allocations: 4 kB / 438.4 MB, free: 0.8047 MB / 334.1 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.001107/0.2661, allocations: 0.5831 MB / 439 MB, free: 192 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.2661, allocations: 11.97 kB / 439 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002078/0.2663, allocations: 56.64 kB / 439 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000475/0.2668, allocations: 227.5 kB / 439.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001299/0.2669, allocations: 132 kB / 439.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.434e-05/0.267, allocations: 28.38 kB / 439.4 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000595/0.2676, allocations: 338.8 kB / 439.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.2676, allocations: 8 kB / 439.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.427e-05/0.2676, allocations: 12 kB / 439.8 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.531e-05/0.2676, allocations: 15.97 kB / 439.8 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004441/0.2681, allocations: 214.5 kB / 440 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002033/0.2701, allocations: 1.318 MB / 441.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003638/0.2705, allocations: 166.5 kB / 441.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001736/0.2706, allocations: 88.7 kB / 441.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.281e-05/0.2707, allocations: 0 / 441.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002995/0.271, allocations: 161.5 kB / 441.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.493e-06/0.271, allocations: 0 / 441.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001115/0.2721, allocations: 326.5 kB / 442 MB, free: 12.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.297e-05/0.2722, allocations: 110.8 kB / 442.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002979/0.2725, allocations: 269.8 kB / 442.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.2725, allocations: 29.7 kB / 442.4 MB, free: 12.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.2726, allocations: 212.3 kB / 442.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.999e-05/0.2727, allocations: 71.38 kB / 442.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.2728, allocations: 66.02 kB / 442.8 MB, free: 12.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.273, allocations: 334.8 kB / 443.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001735/0.2732, allocations: 76.62 kB / 443.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002501/0.2734, allocations: 177.5 kB / 443.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003741/0.2738, allocations: 235.5 kB / 443.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2738, allocations: 0 / 443.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000718/0.2745, allocations: 348.4 kB / 443.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.2745, allocations: 4 kB / 443.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.2745, allocations: 7.938 kB / 443.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002826/0.2748, allocations: 60.94 kB / 444 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002671/0.2751, allocations: 67.84 kB / 444.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001482/0.2766, allocations: 1.464 MB / 445.5 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002591/0.2768, allocations: 43.72 kB / 445.6 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.2768, allocations: 20.09 kB / 445.6 MB, free: 9.113 MB / 350.1 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.0001848/0.277, allocations: 153.8 kB / 445.7 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.603e-05/0.2771, allocations: 27.86 kB / 445.8 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.463e-05/0.2771, allocations: 30.22 kB / 445.8 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.798e-06/0.2771, allocations: 4 kB / 445.8 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2771, allocations: 3.984 kB / 445.8 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.2771, allocations: 0 / 445.8 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003467/0.2775, allocations: 308.4 kB / 446.1 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2775, allocations: 4 kB / 446.1 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002001/0.2777, allocations: 39.91 kB / 446.1 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001931/0.2779, allocations: 56.75 kB / 446.2 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.2779, allocations: 0 / 446.2 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001244/0.2791, allocations: 1.315 MB / 447.5 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2791, allocations: 4.062 kB / 447.5 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007197/0.2799, allocations: 355.6 kB / 447.9 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.28, allocations: 35.88 kB / 447.9 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.111e-05/0.28, allocations: 7.984 kB / 447.9 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001808/0.2802, allocations: 20.05 kB / 447.9 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.354e-05/0.2803, allocations: 31.89 kB / 448 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.779e-05/0.2803, allocations: 11.98 kB / 448 MB, free: 6.539 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001817/0.2805, allocations: 181.2 kB / 448.1 MB, free: 6.359 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2805, allocations: 0 / 448.1 MB, free: 6.359 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003971/0.2809, allocations: 99.72 kB / 448.2 MB, free: 6.262 MB / 350.1 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 0.0001341/0.281, allocations: 107.2 kB / 448.3 MB, free: 6.145 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006174/0.2816, allocations: 294.4 kB / 448.6 MB, free: 5.844 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.2816, allocations: 0 / 448.6 MB, free: 5.844 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003188/0.2819, allocations: 202.5 kB / 448.8 MB, free: 5.633 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002752/0.2822, allocations: 47.8 kB / 448.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001583/0.2838, allocations: 0.7134 MB / 449.6 MB, free: 4.848 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004067/0.2842, allocations: 0.7675 MB / 450.4 MB, free: 4.055 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.396e-05/0.2843, allocations: 23.44 kB / 450.4 MB, free: 4.031 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2843, allocations: 0 / 450.4 MB, free: 4.031 MB / 350.1 MB Notification: Performance of Templates: time 0.007595/0.2919, allocations: 4.704 MB / 455.1 MB, free: 15.33 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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: 7.628078720066696]