Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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.002502/0.002502, allocations: 95.61 kB / 20.96 MB, free: 3.461 MB / 18.57 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.002968/0.002968, allocations: 165.3 kB / 24.27 MB, free: 152 kB / 18.57 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.619/1.619, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 7.52e-07/7.52e-07, allocations: 0 / 272.3 MB, free: 1.871 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.195e-05/2.27e-05, allocations: 2.312 kB / 272.3 MB, free: 1.867 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00274/0.002762, allocations: 1.505 MB / 273.8 MB, free: 364 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006231/0.003386, allocations: 291.1 kB / 274.1 MB, free: 72 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.033e-05/0.003456, allocations: 11.94 kB / 274.1 MB, free: 60 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.868e-05/0.003535, allocations: 19.73 kB / 274.1 MB, free: 40 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.316e-05/0.003578, allocations: 15.81 kB / 274.1 MB, free: 24 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003073/0.003885, allocations: 123.7 kB / 274.2 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003157/0.004201, allocations: 267.5 kB / 274.5 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002065/0.004407, allocations: 138.8 kB / 274.6 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000169/0.004576, allocations: 131.8 kB / 274.8 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001165/0.004693, allocations: 75.77 kB / 274.8 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.695e-05/0.00473, allocations: 24 kB / 274.9 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.629e-05/0.004786, allocations: 24 kB / 274.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.562e-05/0.004852, allocations: 55.81 kB / 274.9 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.146e-05/0.004933, allocations: 63.81 kB / 275 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003413/0.005274, allocations: 255.1 kB / 275.2 MB, free: 14.89 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.434e-06/0.005277, allocations: 0 / 275.2 MB, free: 14.89 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.005277, allocations: 0 / 275.2 MB, free: 14.89 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.005282, allocations: 0 / 275.2 MB, free: 14.89 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007738/0.006056, allocations: 0.5147 MB / 275.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.006092, allocations: 12.03 kB / 275.8 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002794/0.006372, allocations: 52.81 kB / 275.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002834/0.006655, allocations: 168.3 kB / 276 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.767e-05/0.006693, allocations: 20.88 kB / 276 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.381e-05/0.006736, allocations: 28.38 kB / 276 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004688/0.007205, allocations: 248.9 kB / 276.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.007219, allocations: 4.125 kB / 276.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.632e-05/0.007245, allocations: 8.375 kB / 276.3 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.007254, allocations: 8.375 kB / 276.3 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003278/0.007582, allocations: 153.8 kB / 276.5 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001145/0.008727, allocations: 0.7203 MB / 277.2 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003216/0.009049, allocations: 163.4 kB / 277.3 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001302/0.009179, allocations: 71.66 kB / 277.4 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.526e-05/0.009204, allocations: 4 kB / 277.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000216/0.00942, allocations: 125 kB / 277.5 MB, free: 12.46 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.282e-06/0.009421, allocations: 0 / 277.5 MB, free: 12.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004654/0.009887, allocations: 230.4 kB / 277.8 MB, free: 12.23 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.132e-05/0.009938, allocations: 55.41 kB / 277.8 MB, free: 12.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002023/0.01014, allocations: 229.8 kB / 278 MB, free: 11.92 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.752e-05/0.01018, allocations: 37.7 kB / 278.1 MB, free: 11.88 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003793/0.01056, allocations: 187.5 kB / 278.3 MB, free: 11.68 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.157e-05/0.01064, allocations: 75.47 kB / 278.3 MB, free: 11.61 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/0.01078, allocations: 99.67 kB / 278.4 MB, free: 11.5 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002772/0.01106, allocations: 0.5001 MB / 278.9 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001258/0.01118, allocations: 64.62 kB / 279 MB, free: 10.93 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002104/0.01139, allocations: 150.7 kB / 279.1 MB, free: 10.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003003/0.01169, allocations: 209.2 kB / 279.3 MB, free: 10.51 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.0117, allocations: 0 / 279.3 MB, free: 10.51 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004165/0.01211, allocations: 257.3 kB / 279.6 MB, free: 10.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.01213, allocations: 8 kB / 279.6 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.01213, allocations: 4.156 kB / 279.6 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.102e-05/0.01216, allocations: 11.94 kB / 279.6 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001481/0.0123, allocations: 31.92 kB / 279.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.01232, allocations: 8 kB / 279.7 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.736e-05/0.01241, allocations: 27.83 kB / 279.7 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.056e-05/0.01243, allocations: 12 kB / 279.7 MB, free: 10.15 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001933/0.01263, allocations: 200.5 kB / 279.9 MB, free: 9.941 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.437e-05/0.01266, allocations: 19.91 kB / 279.9 MB, free: 9.922 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.07e-05/0.01272, allocations: 20.94 kB / 279.9 MB, free: 9.898 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.01273, allocations: 3.938 kB / 279.9 MB, free: 9.895 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.01273, allocations: 8 kB / 279.9 MB, free: 9.887 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.01274, allocations: 3.984 kB / 279.9 MB, free: 9.883 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007961/0.01354, allocations: 0.5466 MB / 280.5 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.01354, allocations: 0 / 280.5 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.543e-05/0.01361, allocations: 15.94 kB / 280.5 MB, free: 9.281 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.01362, allocations: 0 / 280.5 MB, free: 9.281 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.079e-05/0.01364, allocations: 11.98 kB / 280.5 MB, free: 9.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.01364, allocations: 0 / 280.5 MB, free: 9.27 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.01364, allocations: 0 / 280.5 MB, free: 9.27 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003927/0.01403, allocations: 328.3 kB / 280.8 MB, free: 8.93 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.57e-05/0.01406, allocations: 27.78 kB / 280.9 MB, free: 8.902 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.267e-05/0.01409, allocations: 3.984 kB / 280.9 MB, free: 8.898 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.635e-05/0.01418, allocations: 8 kB / 280.9 MB, free: 8.891 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.051e-05/0.01426, allocations: 23.95 kB / 280.9 MB, free: 8.867 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.165e-05/0.01427, allocations: 4 kB / 280.9 MB, free: 8.863 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.887e-05/0.01437, allocations: 143.2 kB / 281 MB, free: 8.723 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01437, allocations: 0 / 281 MB, free: 8.723 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002858/0.01465, allocations: 47.89 kB / 281.1 MB, free: 8.676 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001251/0.01478, allocations: 99.25 kB / 281.2 MB, free: 8.57 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003825/0.01516, allocations: 194.5 kB / 281.4 MB, free: 8.379 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.01516, allocations: 0 / 281.4 MB, free: 8.379 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001585/0.01532, allocations: 95.52 kB / 281.5 MB, free: 8.281 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.0156, allocations: 34.67 kB / 281.5 MB, free: 8.25 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006302/0.01623, allocations: 335.1 kB / 281.8 MB, free: 7.895 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000132/0.01637, allocations: 116.7 kB / 281.9 MB, free: 7.762 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.297e-05/0.01644, allocations: 21.94 kB / 282 MB, free: 7.738 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.713e-05/0.0165, allocations: 24.44 kB / 282 MB, free: 7.715 MB / 266.7 MB Notification: Performance of SimCode: time 4.51e-07/0.0165, allocations: 0 / 282 MB, free: 7.715 MB / 266.7 MB Notification: Performance of Templates: time 0.005479/0.02198, allocations: 1.737 MB / 283.7 MB, free: 6.012 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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.630993602913804]