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.001876/0.001876, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.00169/0.00169, allocations: 213.4 kB / 23.74 MB, free: 4.688 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.539/1.539, allocations: 230.6 MB / 257.5 MB, free: 8.047 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.001792/0.001792, allocations: 51.91 kB / 378.2 MB, free: 2.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2764, allocations: 53.36 MB / 431.6 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003117/0.2796, allocations: 1.694 MB / 433.3 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007777/0.2803, allocations: 299.1 kB / 433.6 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001305/0.2805, allocations: 4 kB / 433.6 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001623/0.2806, allocations: 27.67 kB / 433.6 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.009e-05/0.2807, allocations: 15.8 kB / 433.6 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004438/0.2811, allocations: 131.8 kB / 433.8 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003927/0.2815, allocations: 283.4 kB / 434 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003414/0.2819, allocations: 155.2 kB / 434.2 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001359/0.282, allocations: 95.69 kB / 434.3 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001632/0.2822, allocations: 99.55 kB / 434.4 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.815e-05/0.2822, allocations: 24 kB / 434.4 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.635e-05/0.2823, allocations: 39.97 kB / 434.4 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.053e-05/0.2824, allocations: 55.84 kB / 434.5 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.2825, allocations: 103.5 kB / 434.6 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003848/0.2829, allocations: 265.4 kB / 434.9 MB, free: 3.688 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2829, allocations: 3.938 kB / 434.9 MB, free: 3.684 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2829, allocations: 0 / 434.9 MB, free: 3.684 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.834e-06/0.2829, allocations: 0 / 434.9 MB, free: 3.684 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.0007713/0.2837, allocations: 417.2 kB / 435.3 MB, free: 3.242 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.2837, allocations: 8.031 kB / 435.3 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002754/0.284, allocations: 44.77 kB / 435.3 MB, free: 3.191 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003296/0.2843, allocations: 170.3 kB / 435.5 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.438e-05/0.2844, allocations: 20.88 kB / 435.5 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.126e-05/0.2844, allocations: 28.38 kB / 435.5 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004767/0.2849, allocations: 269.7 kB / 435.8 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.2849, allocations: 192 / 435.8 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.787e-05/0.2849, allocations: 15.94 kB / 435.8 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.2849, allocations: 4 kB / 435.8 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003004/0.2852, allocations: 165.6 kB / 436 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.2864, allocations: 0.921 MB / 436.9 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002889/0.2867, allocations: 169.3 kB / 437.1 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.2868, allocations: 81.52 kB / 437.1 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.2869, allocations: 0 / 437.1 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002186/0.2871, allocations: 138.7 kB / 437.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.333e-06/0.2871, allocations: 0 / 437.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004401/0.2875, allocations: 229 kB / 437.5 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.59e-05/0.2876, allocations: 81.11 kB / 437.6 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/0.2877, allocations: 159.3 kB / 437.7 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.546e-05/0.2878, allocations: 37.7 kB / 437.8 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.2879, allocations: 148.9 kB / 437.9 MB, free: 412 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.441e-05/0.2879, allocations: 59.52 kB / 438 MB, free: 352 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.288, allocations: 81.64 kB / 438.1 MB, free: 264 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.2882, allocations: 330.8 kB / 438.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001318/0.2883, allocations: 63.75 kB / 438.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000188/0.2885, allocations: 144.5 kB / 438.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002721/0.2888, allocations: 196.8 kB / 438.8 MB, free: 15.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.048e-05/0.2888, allocations: 4 kB / 438.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003851/0.2892, allocations: 249.3 kB / 439 MB, free: 15.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.2892, allocations: 4.281 kB / 439 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.2892, allocations: 8 kB / 439 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.2893, allocations: 4 kB / 439 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001382/0.2894, allocations: 31.86 kB / 439.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.2894, allocations: 4 kB / 439.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.746e-05/0.2895, allocations: 31.78 kB / 439.1 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.926e-05/0.2895, allocations: 12 kB / 439.1 MB, free: 15.12 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.0001618/0.2897, allocations: 157.7 kB / 439.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.63e-05/0.2897, allocations: 15.94 kB / 439.3 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.888e-05/0.2898, allocations: 28.92 kB / 439.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.2898, allocations: 4 kB / 439.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.2898, allocations: 0 / 439.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.2898, allocations: 4 kB / 439.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007006/0.2905, allocations: 0.5392 MB / 439.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2905, allocations: 7.938 kB / 439.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.671e-05/0.2905, allocations: 11.94 kB / 439.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.2905, allocations: 4 kB / 439.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.2906, allocations: 11.98 kB / 439.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.631e-06/0.2906, allocations: 7.938 kB / 439.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.2906, allocations: 0 / 439.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000311/0.2909, allocations: 274.9 kB / 440.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.243e-05/0.2909, allocations: 19.83 kB / 440.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.736e-05/0.2909, allocations: 8 kB / 440.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.531e-05/0.291, allocations: 11.88 kB / 440.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.927e-05/0.2911, allocations: 23.97 kB / 440.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.311e-05/0.2911, allocations: 7.984 kB / 440.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.554e-05/0.2912, allocations: 99.27 kB / 440.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2912, allocations: 0 / 440.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002922/0.2915, allocations: 51.89 kB / 440.4 MB, free: 13.76 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.0001152/0.2916, allocations: 99.19 kB / 440.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003514/0.2919, allocations: 180 kB / 440.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2919, allocations: 0 / 440.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001272/0.2921, allocations: 71.77 kB / 440.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002798/0.2923, allocations: 22.64 kB / 440.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006119/0.2929, allocations: 340.3 kB / 441.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003664/0.2933, allocations: 0.7369 MB / 441.8 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.141e-05/0.2934, allocations: 17.95 kB / 441.8 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.696e-05/0.2934, allocations: 27.44 kB / 441.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2934, allocations: 0 / 441.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of Templates: time 0.00527/0.2987, allocations: 1.829 MB / 443.7 MB, free: 10.4 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/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_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: 4.718763324897736]