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.001063/0.001063, allocations: 81.95 kB / 21.42 MB, free: 3.062 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.001126/0.001126, allocations: 167.9 kB / 24.82 MB, free: 9.305 MB / 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 0.9531/0.9531, allocations: 177.1 MB / 205.3 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] 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 1.483e-06/1.483e-06, allocations: 0 / 273.4 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.331e-05/1.479e-05, allocations: 2.312 kB / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002026/0.002041, allocations: 1.693 MB / 275.1 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004827/0.002524, allocations: 299 kB / 275.3 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.143e-05/0.002605, allocations: 7.938 kB / 275.4 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001121/0.002717, allocations: 27.67 kB / 275.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 3.704e-05/0.002754, allocations: 19.73 kB / 275.4 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003125/0.003067, allocations: 131.8 kB / 275.5 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002192/0.003286, allocations: 279.4 kB / 275.8 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002033/0.003489, allocations: 163.7 kB / 276 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001118/0.003601, allocations: 131.8 kB / 276.1 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.562e-05/0.003696, allocations: 75.75 kB / 276.2 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.503e-05/0.003721, allocations: 24 kB / 276.2 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.358e-05/0.003775, allocations: 31.94 kB / 276.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.945e-05/0.003825, allocations: 63.75 kB / 276.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.121e-05/0.003876, allocations: 75.8 kB / 276.4 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000179/0.004055, allocations: 187.3 kB / 276.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.613e-06/0.004056, allocations: 0 / 276.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.004057, allocations: 0 / 276.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.004061, allocations: 0 / 276.5 MB, free: 14.12 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0004294/0.00449, allocations: 0.5112 MB / 277 MB, free: 13.58 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.004522, allocations: 12.03 kB / 277.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001583/0.00468, allocations: 56.77 kB / 277.1 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001538/0.004834, allocations: 180.2 kB / 277.3 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.28e-05/0.004857, allocations: 20.88 kB / 277.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.172e-05/0.004878, allocations: 32.38 kB / 277.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002078/0.005086, allocations: 232.7 kB / 277.6 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.709e-06/0.005096, allocations: 192 / 277.6 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.005113, allocations: 20.34 kB / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.005121, allocations: 8.375 kB / 277.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.917e-05/0.00521, allocations: 75.31 kB / 277.7 MB, free: 12.9 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006411/0.005851, allocations: 1.034 MB / 278.7 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001398/0.005991, allocations: 138.3 kB / 278.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.432e-05/0.006035, allocations: 55.44 kB / 278.9 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.669e-05/0.006052, allocations: 4 kB / 278.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001151/0.006167, allocations: 141 kB / 279 MB, free: 11.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.132e-06/0.006168, allocations: 0 / 279 MB, free: 11.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002043/0.006372, allocations: 172.6 kB / 279.2 MB, free: 11.26 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.219e-05/0.006404, allocations: 85.09 kB / 279.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.897e-05/0.006493, allocations: 217.7 kB / 279.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.00651, allocations: 33.7 kB / 279.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.191e-05/0.006582, allocations: 195.5 kB / 279.7 MB, free: 10.69 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.254e-05/0.006615, allocations: 67.58 kB / 279.8 MB, free: 10.62 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.824e-05/0.006683, allocations: 87.28 kB / 279.9 MB, free: 10.53 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.006794, allocations: 0.4962 MB / 280.4 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.431e-05/0.006828, allocations: 31.97 kB / 280.4 MB, free: 9.992 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.496e-05/0.006903, allocations: 136.8 kB / 280.5 MB, free: 9.816 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001273/0.00703, allocations: 184.6 kB / 280.7 MB, free: 9.594 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.007032, allocations: 4 kB / 280.7 MB, free: 9.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002515/0.007284, allocations: 205.3 kB / 280.9 MB, free: 9.383 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.0073, allocations: 11.94 kB / 280.9 MB, free: 9.371 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.007305, allocations: 4.219 kB / 280.9 MB, free: 9.367 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.007316, allocations: 8 kB / 280.9 MB, free: 9.359 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.25e-05/0.007399, allocations: 39.86 kB / 281 MB, free: 9.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.007404, allocations: 7.984 kB / 281 MB, free: 9.312 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.537e-05/0.007459, allocations: 31.83 kB / 281 MB, free: 9.281 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.358e-06/0.007469, allocations: 8 kB / 281 MB, free: 9.273 MB / 266.7 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,transition1.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * 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 8.813e-05/0.007557, allocations: 188.4 kB / 281.2 MB, free: 9.078 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.23e-05/0.007579, allocations: 27.84 kB / 281.2 MB, free: 9.051 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.853e-05/0.007607, allocations: 16.94 kB / 281.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.00761, allocations: 0 / 281.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.007612, allocations: 11.98 kB / 281.3 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.007616, allocations: 0 / 281.3 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003789/0.007995, allocations: 492.7 kB / 281.7 MB, free: 8.508 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.007997, allocations: 0 / 281.7 MB, free: 8.508 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.613e-05/0.008043, allocations: 19.92 kB / 281.8 MB, free: 8.488 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.008046, allocations: 0 / 281.8 MB, free: 8.488 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/0.008054, allocations: 8 kB / 281.8 MB, free: 8.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.008055, allocations: 0 / 281.8 MB, free: 8.48 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.008056, allocations: 0 / 281.8 MB, free: 8.48 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001665/0.008223, allocations: 317.4 kB / 282.1 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.082e-05/0.008233, allocations: 11.95 kB / 282.1 MB, free: 8.137 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.008248, allocations: 12 kB / 282.1 MB, free: 8.125 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.162e-05/0.00829, allocations: 11.98 kB / 282.1 MB, free: 8.113 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.036e-05/0.00833, allocations: 15.97 kB / 282.1 MB, free: 8.098 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.244e-06/0.008338, allocations: 4 kB / 282.1 MB, free: 8.094 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.648e-05/0.008374, allocations: 139.2 kB / 282.3 MB, free: 7.957 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008374, allocations: 0 / 282.3 MB, free: 7.957 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001797/0.008554, allocations: 55.78 kB / 282.3 MB, free: 7.902 MB / 266.7 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 7.131e-05/0.008625, allocations: 107.2 kB / 282.4 MB, free: 7.785 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001396/0.008765, allocations: 144.4 kB / 282.6 MB, free: 7.641 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.153e-06/0.008766, allocations: 0 / 282.6 MB, free: 7.641 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.788e-05/0.008824, allocations: 66.44 kB / 282.6 MB, free: 7.574 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001805/0.009004, allocations: 31.92 kB / 282.7 MB, free: 7.543 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003418/0.009346, allocations: 330.3 kB / 283 MB, free: 7.191 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.431e-05/0.00939, allocations: 84.28 kB / 283.1 MB, free: 7.09 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.87e-05/0.009439, allocations: 26.56 kB / 283.1 MB, free: 7.062 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.784e-05/0.009517, allocations: 106.1 kB / 283.2 MB, free: 6.957 MB / 266.7 MB Notification: Performance of SimCode: time 5.91e-07/0.009518, allocations: 4 kB / 283.2 MB, free: 6.953 MB / 266.7 MB Notification: Performance of Templates: time 0.003222/0.01274, allocations: 1.922 MB / 285.1 MB, free: 5.07 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6142526785843074]