Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.00139/0.00139, allocations: 107.5 kB / 20.44 MB, free: 1.355 MB / 14.72 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.001405/0.001405, allocations: 197.2 kB / 23.71 MB, free: 4.559 MB / 14.72 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 1.456/1.456, allocations: 225.7 MB / 252.5 MB, free: 12.83 MB / 206.1 MB " [Timeout remaining time 178] 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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001793/0.001793, allocations: 47.92 kB / 370.9 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2519, allocations: 52.18 MB / 423.1 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004538/0.2564, allocations: 2.908 MB / 426 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.2577, allocations: 0.7166 MB / 426.7 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.2579, allocations: 4 kB / 426.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001745/0.258, allocations: 63.36 kB / 426.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001971/0.2582, allocations: 111 kB / 426.9 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003425/0.2586, allocations: 111.8 kB / 427 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004732/0.2591, allocations: 410.2 kB / 427.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/0.2593, allocations: 98.8 kB / 427.5 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002046/0.2595, allocations: 163.4 kB / 427.6 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002221/0.2597, allocations: 151.2 kB / 427.8 MB, free: 9.773 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.569e-05/0.2598, allocations: 40 kB / 427.8 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.619e-05/0.2598, allocations: 39.94 kB / 427.9 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.279e-05/0.2599, allocations: 75.75 kB / 427.9 MB, free: 9.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001639/0.2601, allocations: 155.3 kB / 428.1 MB, free: 9.469 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004605/0.2605, allocations: 426 kB / 428.5 MB, free: 9.055 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2605, allocations: 0 / 428.5 MB, free: 9.055 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2605, allocations: 0 / 428.5 MB, free: 9.055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.2605, allocations: 0 / 428.5 MB, free: 9.055 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.001115/0.2617, allocations: 0.59 MB / 429.1 MB, free: 8.434 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.2617, allocations: 8.031 kB / 429.1 MB, free: 8.426 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.515e-05/0.2618, allocations: 40.7 kB / 429.1 MB, free: 8.387 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003888/0.2622, allocations: 223.5 kB / 429.4 MB, free: 8.141 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001244/0.2623, allocations: 128 kB / 429.5 MB, free: 7.992 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.876e-05/0.2623, allocations: 36.36 kB / 429.5 MB, free: 7.957 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006037/0.2629, allocations: 394.2 kB / 429.9 MB, free: 7.547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.263, allocations: 3.984 kB / 429.9 MB, free: 7.543 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.297e-05/0.263, allocations: 16 kB / 429.9 MB, free: 7.527 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.263, allocations: 8 kB / 429.9 MB, free: 7.52 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004222/0.2634, allocations: 222.4 kB / 430.1 MB, free: 7.301 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001818/0.2652, allocations: 1.186 MB / 431.3 MB, free: 6.035 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000329/0.2656, allocations: 150.6 kB / 431.5 MB, free: 5.879 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001667/0.2657, allocations: 84.83 kB / 431.6 MB, free: 5.793 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.2658, allocations: 7.938 kB / 431.6 MB, free: 5.785 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003085/0.2661, allocations: 211.5 kB / 431.8 MB, free: 5.547 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.322e-06/0.2661, allocations: 0 / 431.8 MB, free: 5.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.00107/0.2671, allocations: 326.1 kB / 432.1 MB, free: 5.219 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.76e-05/0.2672, allocations: 110.8 kB / 432.2 MB, free: 5.086 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002474/0.2675, allocations: 245 kB / 432.4 MB, free: 4.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.642e-05/0.2675, allocations: 25.7 kB / 432.5 MB, free: 4.809 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.2677, allocations: 216.2 kB / 432.7 MB, free: 4.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.74e-05/0.2677, allocations: 67.42 kB / 432.7 MB, free: 4.523 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.809e-05/0.2678, allocations: 69.97 kB / 432.8 MB, free: 4.449 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.268, allocations: 334.8 kB / 433.1 MB, free: 4.113 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001718/0.2681, allocations: 76.62 kB / 433.2 MB, free: 4.039 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002863/0.2684, allocations: 232.9 kB / 433.4 MB, free: 3.754 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003719/0.2688, allocations: 244.7 kB / 433.7 MB, free: 3.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.2688, allocations: 0 / 433.7 MB, free: 3.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006781/0.2695, allocations: 332.7 kB / 434 MB, free: 3.148 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.2695, allocations: 15.97 kB / 434 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.2695, allocations: 4 kB / 434 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002453/0.2698, allocations: 48.81 kB / 434.1 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002541/0.27, allocations: 71.91 kB / 434.1 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001424/0.2714, allocations: 1.442 MB / 435.6 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002355/0.2717, allocations: 47.77 kB / 435.6 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.407e-05/0.2717, allocations: 11.98 kB / 435.6 MB, free: 1.41 MB / 334.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.0001628/0.2719, allocations: 151.6 kB / 435.8 MB, free: 1.254 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.76e-05/0.2719, allocations: 27.86 kB / 435.8 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.109e-05/0.2719, allocations: 30.28 kB / 435.9 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.2719, allocations: 3.984 kB / 435.9 MB, free: 1.191 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-06/0.2719, allocations: 3.938 kB / 435.9 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.272, allocations: 4 kB / 435.9 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000272/0.2722, allocations: 233.1 kB / 436.1 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.2722, allocations: 0 / 436.1 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001899/0.2724, allocations: 47.84 kB / 436.1 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001758/0.2726, allocations: 52.81 kB / 436.2 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.2726, allocations: 4 kB / 436.2 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001223/0.2738, allocations: 1.292 MB / 437.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2738, allocations: 8.094 kB / 437.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007028/0.2745, allocations: 341.7 kB / 437.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.549e-05/0.2746, allocations: 43.83 kB / 437.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.169e-05/0.2747, allocations: 0 / 437.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001647/0.2748, allocations: 19.98 kB / 437.9 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.601e-05/0.2749, allocations: 27.95 kB / 437.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.829e-05/0.2749, allocations: 16.05 kB / 437.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001626/0.2751, allocations: 164.5 kB / 438.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2751, allocations: 0 / 438.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000363/0.2754, allocations: 91.78 kB / 438.2 MB, free: 14.7 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.000142/0.2756, allocations: 110.4 kB / 438.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006025/0.2762, allocations: 307 kB / 438.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.2762, allocations: 3.938 kB / 438.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003089/0.2765, allocations: 194.6 kB / 438.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002327/0.2767, allocations: 28.42 kB / 438.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.2782, allocations: 0.6844 MB / 439.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001589/0.2783, allocations: 164.8 kB / 439.7 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.693e-05/0.2784, allocations: 26.28 kB / 439.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.973e-05/0.2785, allocations: 19.44 kB / 439.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2785, allocations: 0 / 439.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of Templates: time 0.007229/0.2857, allocations: 3.263 MB / 443 MB, free: 9.891 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 4.9724204652011395]