Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001505/0.001505, allocations: 107.1 kB / 20.44 MB, free: 1.328 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.001591/0.001591, allocations: 202 kB / 23.72 MB, free: 4.5 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.493/1.493, allocations: 230.5 MB / 257.4 MB, free: 7.727 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002066/0.002066, allocations: 67.89 kB / 378.2 MB, free: 2.328 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2765, allocations: 53.4 MB / 431.6 MB, free: 6.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.00328/0.2797, allocations: 1.656 MB / 433.3 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000817/0.2805, allocations: 295.1 kB / 433.5 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.2807, allocations: 7.938 kB / 433.6 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.2808, allocations: 23.73 kB / 433.6 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.089e-05/0.2809, allocations: 23.75 kB / 433.6 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004356/0.2813, allocations: 123.8 kB / 433.7 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003632/0.2817, allocations: 275.4 kB / 434 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003272/0.282, allocations: 158 kB / 434.1 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.2821, allocations: 99.69 kB / 434.2 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001404/0.2823, allocations: 79.59 kB / 434.3 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.341e-05/0.2823, allocations: 28 kB / 434.4 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.047e-05/0.2824, allocations: 35.88 kB / 434.4 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.738e-05/0.2825, allocations: 59.83 kB / 434.4 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.2826, allocations: 87.58 kB / 434.5 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003522/0.2829, allocations: 254.6 kB / 434.8 MB, free: 3.359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2829, allocations: 0 / 434.8 MB, free: 3.359 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2829, allocations: 0 / 434.8 MB, free: 3.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.2829, allocations: 0 / 434.8 MB, free: 3.359 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.0007684/0.2837, allocations: 425.1 kB / 435.2 MB, free: 2.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.2838, allocations: 15.98 kB / 435.2 MB, free: 2.895 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002275/0.284, allocations: 32.8 kB / 435.2 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003665/0.2844, allocations: 178.2 kB / 435.4 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.633e-05/0.2844, allocations: 20.88 kB / 435.4 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.102e-05/0.2844, allocations: 28.38 kB / 435.5 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004957/0.2849, allocations: 269.8 kB / 435.7 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.285, allocations: 4.125 kB / 435.7 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.014e-05/0.285, allocations: 15.94 kB / 435.7 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.285, allocations: 8 kB / 435.8 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003061/0.2853, allocations: 161.6 kB / 435.9 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.2865, allocations: 0.8357 MB / 436.7 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003171/0.2868, allocations: 157 kB / 436.9 MB, free: 1.098 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.287, allocations: 73.62 kB / 437 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.141e-05/0.287, allocations: 4 kB / 437 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002319/0.2872, allocations: 132.1 kB / 437.1 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.053e-06/0.2872, allocations: 0 / 437.1 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004948/0.2877, allocations: 221.3 kB / 437.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.09e-05/0.2878, allocations: 89.05 kB / 437.4 MB, free: 0.543 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001691/0.288, allocations: 160.8 kB / 437.6 MB, free: 388 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.504e-05/0.288, allocations: 41.83 kB / 437.6 MB, free: 340 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.2881, allocations: 148.7 kB / 437.8 MB, free: 184 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.548e-05/0.2882, allocations: 63.53 kB / 437.8 MB, free: 120 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.2883, allocations: 73.69 kB / 437.9 MB, free: 40 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.2885, allocations: 330.8 kB / 438.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/0.2886, allocations: 63.75 kB / 438.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001792/0.2888, allocations: 140.5 kB / 438.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003011/0.2891, allocations: 204.2 kB / 438.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2891, allocations: 0 / 438.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004018/0.2895, allocations: 253.3 kB / 438.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.2895, allocations: 8.281 kB / 438.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.2895, allocations: 4 kB / 438.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.2895, allocations: 4 kB / 438.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/0.2897, allocations: 31.92 kB / 438.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.2897, allocations: 4 kB / 438.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.2898, allocations: 35.77 kB / 438.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.055e-05/0.2898, allocations: 12 kB / 439 MB, free: 14.89 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.0001829/0.29, allocations: 161.6 kB / 439.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.585e-05/0.29, allocations: 11.91 kB / 439.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.546e-05/0.2901, allocations: 28.92 kB / 439.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.2901, allocations: 4 kB / 439.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2901, allocations: 0 / 439.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.2901, allocations: 0 / 439.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007084/0.2908, allocations: 0.4935 MB / 439.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2908, allocations: 0 / 439.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.614e-05/0.2909, allocations: 16 kB / 439.7 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.2909, allocations: 4 kB / 439.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.2909, allocations: 0 / 439.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.2909, allocations: 0 / 439.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.2909, allocations: 7.984 kB / 439.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003413/0.2912, allocations: 280.1 kB / 439.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.231e-05/0.2913, allocations: 19.84 kB / 440 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.464e-05/0.2913, allocations: 3.984 kB / 440 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.366e-05/0.2914, allocations: 8 kB / 440 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.031e-05/0.2914, allocations: 23.91 kB / 440 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.2915, allocations: 8 kB / 440 MB, free: 13.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.393e-05/0.2915, allocations: 103.2 kB / 440.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2915, allocations: 3.938 kB / 440.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002964/0.2918, allocations: 51.84 kB / 440.2 MB, free: 13.61 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.0001338/0.292, allocations: 107.2 kB / 440.3 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003358/0.2923, allocations: 163.8 kB / 440.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2923, allocations: 0 / 440.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001389/0.2924, allocations: 79.7 kB / 440.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002941/0.2927, allocations: 19.94 kB / 440.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006345/0.2934, allocations: 345 kB / 440.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001316/0.2935, allocations: 121.6 kB / 441 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.073e-05/0.2936, allocations: 29.92 kB / 441 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.852e-05/0.2936, allocations: 19.44 kB / 441 MB, free: 12.68 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2936, allocations: 0 / 441 MB, free: 12.68 MB / 350.1 MB Notification: Performance of Templates: time 0.005641/0.2993, allocations: 1.852 MB / 442.9 MB, free: 10.86 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.558576911687851]