Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001621/0.001621, allocations: 112.2 kB / 21.19 MB, free: 0.7734 MB / 14.72 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.00142/0.00142, allocations: 210.1 kB / 24.5 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.39/1.39, allocations: 230.6 MB / 258.3 MB, free: 7.969 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001704/0.001704, allocations: 51.92 kB / 379 MB, free: 2.641 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.252, allocations: 53.37 MB / 432.4 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003211/0.2552, allocations: 1.685 MB / 434.1 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000805/0.256, allocations: 307.1 kB / 434.4 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.2561, allocations: 4 kB / 434.4 MB, free: 4.926 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001434/0.2563, allocations: 31.67 kB / 434.4 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.616e-05/0.2563, allocations: 11.81 kB / 434.4 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003945/0.2567, allocations: 127.8 kB / 434.5 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003567/0.2571, allocations: 279.4 kB / 434.8 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002808/0.2573, allocations: 163.1 kB / 435 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001192/0.2575, allocations: 99.69 kB / 435.1 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001553/0.2576, allocations: 99.53 kB / 435.2 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.629e-05/0.2576, allocations: 24 kB / 435.2 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.938e-05/0.2577, allocations: 35.98 kB / 435.2 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.556e-05/0.2578, allocations: 59.83 kB / 435.3 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.2579, allocations: 99.52 kB / 435.4 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003634/0.2583, allocations: 269.4 kB / 435.6 MB, free: 3.652 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2583, allocations: 0 / 435.6 MB, free: 3.652 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2583, allocations: 0 / 435.6 MB, free: 3.652 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.2583, allocations: 0 / 435.6 MB, free: 3.652 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007708/0.2591, allocations: 421.2 kB / 436 MB, free: 3.207 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.2591, allocations: 12.02 kB / 436.1 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002728/0.2594, allocations: 36.78 kB / 436.1 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003257/0.2597, allocations: 170.2 kB / 436.3 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.962e-05/0.2597, allocations: 24.88 kB / 436.3 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.068e-05/0.2598, allocations: 28.38 kB / 436.3 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00048/0.2603, allocations: 269.7 kB / 436.6 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.2603, allocations: 192 / 436.6 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.824e-05/0.2603, allocations: 15.94 kB / 436.6 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.2603, allocations: 4 kB / 436.6 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003122/0.2606, allocations: 165.6 kB / 436.8 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001326/0.262, allocations: 0.9249 MB / 437.7 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003053/0.2623, allocations: 161.4 kB / 437.8 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/0.2624, allocations: 77.56 kB / 437.9 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.761e-05/0.2624, allocations: 0 / 437.9 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002304/0.2626, allocations: 134.7 kB / 438 MB, free: 1.062 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.292e-06/0.2626, allocations: 0 / 438 MB, free: 1.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004898/0.2631, allocations: 232.9 kB / 438.3 MB, free: 0.832 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.349e-05/0.2632, allocations: 85.11 kB / 438.4 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001477/0.2633, allocations: 157.6 kB / 438.5 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.578e-05/0.2634, allocations: 37.7 kB / 438.5 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.2635, allocations: 140.8 kB / 438.7 MB, free: 388 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.876e-05/0.2636, allocations: 63.52 kB / 438.7 MB, free: 324 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.2637, allocations: 77.64 kB / 438.8 MB, free: 240 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.2638, allocations: 334.8 kB / 439.2 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.264, allocations: 67.88 kB / 439.2 MB, free: 15.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001865/0.2642, allocations: 140.5 kB / 439.4 MB, free: 15.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002781/0.2644, allocations: 196.8 kB / 439.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.982e-06/0.2644, allocations: 8 kB / 439.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004682/0.2649, allocations: 249.3 kB / 439.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.2649, allocations: 4 kB / 439.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.2649, allocations: 4 kB / 439.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.2649, allocations: 4 kB / 439.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.2651, allocations: 35.86 kB / 439.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.2651, allocations: 4 kB / 439.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.2652, allocations: 36.05 kB / 439.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.2652, allocations: 16 kB / 439.9 MB, free: 15.08 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001595/0.2654, allocations: 149.7 kB / 440 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.855e-05/0.2654, allocations: 19.89 kB / 440.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.711e-05/0.2655, allocations: 16.94 kB / 440.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.2655, allocations: 4 kB / 440.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.2655, allocations: 0 / 440.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.2655, allocations: 4 kB / 440.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007557/0.2662, allocations: 0.5469 MB / 440.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.2662, allocations: 4 kB / 440.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.502e-05/0.2663, allocations: 19.92 kB / 440.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.2663, allocations: 4 kB / 440.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.2663, allocations: 0 / 440.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.2663, allocations: 7.938 kB / 440.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2663, allocations: 0 / 440.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003369/0.2667, allocations: 279 kB / 440.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.046e-05/0.2667, allocations: 15.84 kB / 441 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.808e-05/0.2667, allocations: 8 kB / 441 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.126e-05/0.2668, allocations: 15.92 kB / 441 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.281e-05/0.2669, allocations: 19.97 kB / 441 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.2669, allocations: 4 kB / 441 MB, free: 13.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.281e-05/0.267, allocations: 98.22 kB / 441.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.267, allocations: 0 / 441.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002905/0.2672, allocations: 59.83 kB / 441.2 MB, free: 13.74 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001145/0.2674, allocations: 107.2 kB / 441.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004509/0.2678, allocations: 175.8 kB / 441.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2678, allocations: 0 / 441.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001474/0.268, allocations: 67.78 kB / 441.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003016/0.2683, allocations: 24.59 kB / 441.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006244/0.2689, allocations: 366 kB / 441.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004988/0.2694, allocations: 0.7287 MB / 442.6 MB, free: 12.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.786e-05/0.2695, allocations: 31.42 kB / 442.6 MB, free: 12.19 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2695, allocations: 0 / 442.6 MB, free: 12.19 MB / 350.1 MB Notification: Performance of Templates: time 0.004661/0.2741, allocations: 2.27 MB / 444.9 MB, free: 9.914 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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: 6.651376413181424]