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.001375/0.001375, allocations: 100 kB / 21.18 MB, free: 0.6484 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.001453/0.001453, allocations: 184.9 kB / 24.45 MB, free: 3.961 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.473/1.473, allocations: 225.7 MB / 253.3 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.001658/0.001658, allocations: 47.92 kB / 371.7 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2526, allocations: 52.17 MB / 423.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004558/0.2572, allocations: 2.915 MB / 426.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001574/0.2587, allocations: 0.7202 MB / 427.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.2589, allocations: 8 kB / 427.5 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001989/0.2591, allocations: 63.42 kB / 427.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002094/0.2593, allocations: 95.06 kB / 427.6 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003738/0.2597, allocations: 119.7 kB / 427.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004765/0.2601, allocations: 414.2 kB / 428.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002181/0.2604, allocations: 100.3 kB / 428.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002379/0.2606, allocations: 163.5 kB / 428.4 MB, free: 9.906 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002386/0.2608, allocations: 143.2 kB / 428.5 MB, free: 9.766 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.884e-05/0.2609, allocations: 36 kB / 428.6 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.732e-05/0.261, allocations: 36 kB / 428.6 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.221e-05/0.2611, allocations: 91.61 kB / 428.7 MB, free: 9.605 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001777/0.2612, allocations: 151.3 kB / 428.9 MB, free: 9.457 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005223/0.2618, allocations: 425.3 kB / 429.3 MB, free: 9.043 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2618, allocations: 0 / 429.3 MB, free: 9.043 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2618, allocations: 4 kB / 429.3 MB, free: 9.039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.2618, allocations: 4 kB / 429.3 MB, free: 9.035 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.001153/0.2629, allocations: 0.5792 MB / 429.9 MB, free: 8.422 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.263, allocations: 8.031 kB / 429.9 MB, free: 8.414 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.144e-05/0.2631, allocations: 40.7 kB / 429.9 MB, free: 8.375 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004412/0.2635, allocations: 227.5 kB / 430.1 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001269/0.2636, allocations: 128 kB / 430.2 MB, free: 7.977 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.475e-05/0.2637, allocations: 32.38 kB / 430.3 MB, free: 7.945 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006398/0.2643, allocations: 394.2 kB / 430.7 MB, free: 7.535 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.2643, allocations: 0 / 430.7 MB, free: 7.535 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.605e-05/0.2644, allocations: 16 kB / 430.7 MB, free: 7.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.2644, allocations: 8 kB / 430.7 MB, free: 7.512 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004515/0.2648, allocations: 218.5 kB / 430.9 MB, free: 7.297 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001957/0.2668, allocations: 1.174 MB / 432.1 MB, free: 6.043 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003593/0.2672, allocations: 158.5 kB / 432.2 MB, free: 5.879 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.2673, allocations: 96.72 kB / 432.3 MB, free: 5.781 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/0.2674, allocations: 4 kB / 432.3 MB, free: 5.777 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003557/0.2677, allocations: 219.4 kB / 432.5 MB, free: 5.531 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.773e-06/0.2677, allocations: 0 / 432.5 MB, free: 5.531 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001127/0.2688, allocations: 324.1 kB / 432.9 MB, free: 5.207 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.878e-05/0.2689, allocations: 114.8 kB / 433 MB, free: 5.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002689/0.2692, allocations: 237 kB / 433.2 MB, free: 4.832 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.281e-05/0.2692, allocations: 33.7 kB / 433.2 MB, free: 4.793 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001753/0.2694, allocations: 212.2 kB / 433.4 MB, free: 4.578 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.847e-05/0.2695, allocations: 71.44 kB / 433.5 MB, free: 4.508 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.2696, allocations: 65.97 kB / 433.6 MB, free: 4.438 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.2698, allocations: 338.8 kB / 433.9 MB, free: 4.098 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001812/0.2699, allocations: 80.56 kB / 434 MB, free: 4.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002928/0.2702, allocations: 228.9 kB / 434.2 MB, free: 3.738 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004131/0.2706, allocations: 244.7 kB / 434.4 MB, free: 3.465 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.706e-06/0.2706, allocations: 0 / 434.4 MB, free: 3.465 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007311/0.2714, allocations: 336.6 kB / 434.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.887e-05/0.2714, allocations: 7.938 kB / 434.8 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.2714, allocations: 4 kB / 434.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000291/0.2717, allocations: 56.97 kB / 434.8 MB, free: 3.059 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002664/0.272, allocations: 67.91 kB / 434.9 MB, free: 2.992 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001526/0.2735, allocations: 1.438 MB / 436.3 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000262/0.2738, allocations: 43.77 kB / 436.4 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/0.2738, allocations: 16.16 kB / 436.4 MB, free: 1.398 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.0001777/0.274, allocations: 153.7 kB / 436.6 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.117e-05/0.274, allocations: 27.86 kB / 436.6 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.944e-05/0.2741, allocations: 26.28 kB / 436.6 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.2741, allocations: 0 / 436.6 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.2741, allocations: 7.938 kB / 436.6 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.2741, allocations: 3.984 kB / 436.6 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003116/0.2744, allocations: 237.1 kB / 436.9 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.2744, allocations: 4 kB / 436.9 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001959/0.2746, allocations: 39.97 kB / 436.9 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001911/0.2748, allocations: 52.81 kB / 436.9 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.2748, allocations: 3.938 kB / 437 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001319/0.2761, allocations: 1.299 MB / 438.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2761, allocations: 0 / 438.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000757/0.2769, allocations: 345.6 kB / 438.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.449e-05/0.277, allocations: 35.86 kB / 438.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.766e-05/0.277, allocations: 4 kB / 438.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001774/0.2772, allocations: 28.14 kB / 438.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.443e-05/0.2773, allocations: 27.95 kB / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.723e-05/0.2773, allocations: 7.984 kB / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001762/0.2774, allocations: 168.5 kB / 438.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2774, allocations: 0 / 438.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003996/0.2778, allocations: 91.78 kB / 438.9 MB, free: 14.69 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.0001416/0.278, allocations: 110.1 kB / 439.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006441/0.2786, allocations: 306.4 kB / 439.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.2786, allocations: 4 kB / 439.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000325/0.279, allocations: 194.6 kB / 439.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002572/0.2792, allocations: 29.11 kB / 439.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001608/0.2808, allocations: 0.7095 MB / 440.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001821/0.281, allocations: 164.8 kB / 440.4 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.419e-05/0.2811, allocations: 27.44 kB / 440.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2811, allocations: 0 / 440.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of Templates: time 0.007709/0.2888, allocations: 4.673 MB / 445.1 MB, free: 8.402 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/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: 7.697536526247859]