Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001632/0.001632, allocations: 105.1 kB / 21.22 MB, free: 0.5117 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.002152/0.002152, allocations: 209.9 kB / 24.54 MB, free: 3.875 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.48/1.48, allocations: 230.3 MB / 258 MB, free: 8.215 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.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 63.89 kB / 378.7 MB, free: 2.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2513, allocations: 53.36 MB / 432.1 MB, free: 7.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.004273/0.2556, allocations: 1.729 MB / 433.8 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009712/0.2566, allocations: 287.2 kB / 434.1 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001275/0.2567, allocations: 11.94 kB / 434.1 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001786/0.2569, allocations: 27.73 kB / 434.1 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.79e-05/0.257, allocations: 19.73 kB / 434.2 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005619/0.2575, allocations: 123.8 kB / 434.3 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003734/0.2579, allocations: 279.4 kB / 434.6 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003441/0.2583, allocations: 149.9 kB / 434.7 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.2584, allocations: 95.7 kB / 434.8 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002215/0.2586, allocations: 103.5 kB / 434.9 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.669e-05/0.2587, allocations: 24 kB / 434.9 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.884e-05/0.2588, allocations: 28 kB / 434.9 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.2589, allocations: 63.81 kB / 435 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001749/0.2591, allocations: 91.53 kB / 435.1 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004492/0.2595, allocations: 264.6 kB / 435.4 MB, free: 3.801 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.2595, allocations: 0 / 435.4 MB, free: 3.801 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.2595, allocations: 0 / 435.4 MB, free: 3.801 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.605e-06/0.2595, allocations: 0 / 435.4 MB, free: 3.801 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.0009705/0.2605, allocations: 425.2 kB / 435.8 MB, free: 3.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.2605, allocations: 8.031 kB / 435.8 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003271/0.2609, allocations: 32.78 kB / 435.8 MB, free: 3.316 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004288/0.2613, allocations: 174.2 kB / 436 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.615e-05/0.2614, allocations: 20.88 kB / 436 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.787e-05/0.2614, allocations: 28.38 kB / 436 MB, free: 3.074 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006986/0.2621, allocations: 273.7 kB / 436.3 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.2621, allocations: 192 / 436.3 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.293e-05/0.2622, allocations: 15.94 kB / 436.3 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.813e-05/0.2622, allocations: 15.92 kB / 436.3 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004794/0.2627, allocations: 165.6 kB / 436.5 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001698/0.2644, allocations: 0.9171 MB / 437.4 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004315/0.2648, allocations: 153.4 kB / 437.6 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.265, allocations: 77.64 kB / 437.6 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/0.265, allocations: 0 / 437.6 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003202/0.2653, allocations: 136 kB / 437.8 MB, free: 1.215 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.834e-06/0.2653, allocations: 0 / 437.8 MB, free: 1.215 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006955/0.266, allocations: 225.3 kB / 438 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.584e-05/0.2661, allocations: 85.23 kB / 438.1 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002045/0.2663, allocations: 161.2 kB / 438.2 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.303e-05/0.2664, allocations: 41.64 kB / 438.3 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001698/0.2665, allocations: 144.7 kB / 438.4 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.539e-05/0.2666, allocations: 63.53 kB / 438.5 MB, free: 476 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001687/0.2668, allocations: 77.47 kB / 438.5 MB, free: 392 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000209/0.267, allocations: 326.8 kB / 438.9 MB, free: 56 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000215/0.2672, allocations: 68.02 kB / 438.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002762/0.2675, allocations: 132.5 kB / 439.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004461/0.2679, allocations: 208.8 kB / 439.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.268, allocations: 0 / 439.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006357/0.2686, allocations: 249.3 kB / 439.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.2686, allocations: 8 kB / 439.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.2686, allocations: 0 / 439.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.412e-05/0.2686, allocations: 4 kB / 439.5 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002245/0.2689, allocations: 35.92 kB / 439.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.707e-05/0.2689, allocations: 7.938 kB / 439.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.2691, allocations: 27.84 kB / 439.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.798e-05/0.2691, allocations: 16.28 kB / 439.6 MB, free: 15.25 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.0002198/0.2693, allocations: 165.7 kB / 439.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.779e-05/0.2693, allocations: 11.91 kB / 439.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.248e-05/0.2694, allocations: 20.92 kB / 439.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.2694, allocations: 4 kB / 439.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.2694, allocations: 0 / 439.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.2694, allocations: 0 / 439.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001088/0.2705, allocations: 0.5554 MB / 440.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.2705, allocations: 0 / 440.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.2706, allocations: 19.94 kB / 440.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.2706, allocations: 3.938 kB / 440.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/0.2706, allocations: 7.984 kB / 440.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.2706, allocations: 3.938 kB / 440.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2707, allocations: 0 / 440.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004501/0.2711, allocations: 272.1 kB / 440.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.755e-05/0.2711, allocations: 15.89 kB / 440.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.747e-05/0.2712, allocations: 7.984 kB / 440.7 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.2713, allocations: 11.94 kB / 440.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.963e-05/0.2714, allocations: 19.97 kB / 440.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.059e-05/0.2714, allocations: 7.984 kB / 440.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.333e-05/0.2715, allocations: 99.2 kB / 440.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2715, allocations: 3.938 kB / 440.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005138/0.272, allocations: 55.84 kB / 440.9 MB, free: 13.89 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,transition1.enableFire,step.active,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.0001798/0.2722, allocations: 99.25 kB / 441 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004897/0.2727, allocations: 171.7 kB / 441.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.2727, allocations: 0 / 441.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001863/0.2729, allocations: 75.77 kB / 441.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004731/0.2733, allocations: 23.11 kB / 441.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009512/0.2743, allocations: 332.4 kB / 441.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004733/0.2748, allocations: 0.7326 MB / 442.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001172/0.2749, allocations: 25.94 kB / 442.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.547e-05/0.275, allocations: 19.44 kB / 442.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.275, allocations: 0 / 442.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of Templates: time 0.00749/0.2825, allocations: 1.825 MB / 444.2 MB, free: 10.55 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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.606341475620866]