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.001382/0.001382, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001036/0.001036, allocations: 165 kB / 24.56 MB, free: 16 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.045/1.045, allocations: 177.2 MB / 205 MB, free: 5.297 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,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 2.064e-06/2.064e-06, allocations: 0 / 272.9 MB, free: 1.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.664e-05/2.87e-05, allocations: 5.266 kB / 273 MB, free: 1.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002945/0.002974, allocations: 1.521 MB / 274.5 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007237/0.003697, allocations: 291.1 kB / 274.8 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.429e-05/0.003792, allocations: 3.938 kB / 274.8 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001477/0.003939, allocations: 23.73 kB / 274.8 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.246e-05/0.003992, allocations: 15.81 kB / 274.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004905/0.004482, allocations: 123.7 kB / 274.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003295/0.004812, allocations: 271.4 kB / 275.2 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002607/0.005072, allocations: 142.8 kB / 275.3 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001496/0.005222, allocations: 131.8 kB / 275.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001299/0.005352, allocations: 67.78 kB / 275.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.877e-05/0.005391, allocations: 24 kB / 275.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.87e-05/0.005459, allocations: 24 kB / 275.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.843e-05/0.005528, allocations: 59.8 kB / 275.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.297e-05/0.005611, allocations: 63.81 kB / 275.7 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000266/0.005877, allocations: 179.2 kB / 275.9 MB, free: 14.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.00588, allocations: 4 kB / 275.9 MB, free: 14.5 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.005882, allocations: 0 / 275.9 MB, free: 14.5 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.005887, allocations: 0 / 275.9 MB, free: 14.5 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.0006663/0.006554, allocations: 0.5072 MB / 276.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.006594, allocations: 8.031 kB / 276.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002847/0.006879, allocations: 52.78 kB / 276.4 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.007142, allocations: 164.4 kB / 276.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.987e-05/0.007181, allocations: 24.81 kB / 276.6 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.655e-05/0.007218, allocations: 24.38 kB / 276.6 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003821/0.0076, allocations: 213.7 kB / 276.8 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.007612, allocations: 192 / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.346e-05/0.007635, allocations: 12.31 kB / 276.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.422e-05/0.00765, allocations: 8.375 kB / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002095/0.007859, allocations: 94.81 kB / 277 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009211/0.00878, allocations: 0.6656 MB / 277.6 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002786/0.009059, allocations: 139.3 kB / 277.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.325e-05/0.009152, allocations: 51.66 kB / 277.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.005e-05/0.009172, allocations: 4 kB / 277.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001664/0.009338, allocations: 109.8 kB / 277.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.883e-06/0.00934, allocations: 0 / 277.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003882/0.009728, allocations: 199.7 kB / 278.1 MB, free: 12.09 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.009772, allocations: 55.41 kB / 278.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.009921, allocations: 205.8 kB / 278.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.029e-05/0.009951, allocations: 33.7 kB / 278.4 MB, free: 11.76 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.01006, allocations: 183.5 kB / 278.6 MB, free: 11.57 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.074e-05/0.01012, allocations: 67.45 kB / 278.7 MB, free: 11.51 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.01023, allocations: 79.67 kB / 278.7 MB, free: 11.42 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.01037, allocations: 0.4962 MB / 279.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.01048, allocations: 44.62 kB / 279.3 MB, free: 10.87 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.01063, allocations: 134.7 kB / 279.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002355/0.01086, allocations: 161.3 kB / 279.6 MB, free: 10.51 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/0.01087, allocations: 4 kB / 279.6 MB, free: 10.51 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003665/0.01123, allocations: 221.3 kB / 279.8 MB, free: 10.29 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.01125, allocations: 6.656 kB / 279.8 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.01126, allocations: 4 kB / 279.8 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.01128, allocations: 3.938 kB / 279.8 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001444/0.01142, allocations: 35.92 kB / 279.8 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.457e-06/0.01143, allocations: 4 kB / 279.8 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.606e-05/0.01153, allocations: 27.83 kB / 279.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.201e-05/0.01155, allocations: 12 kB / 279.9 MB, free: 10.2 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.0001264/0.01168, allocations: 192.5 kB / 280.1 MB, free: 9.996 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.426e-05/0.01171, allocations: 23.91 kB / 280.1 MB, free: 9.973 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.018e-05/0.01176, allocations: 20.94 kB / 280.1 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.01177, allocations: 3.938 kB / 280.1 MB, free: 9.945 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.01177, allocations: 3.984 kB / 280.1 MB, free: 9.941 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.01178, allocations: 4 kB / 280.1 MB, free: 9.938 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006308/0.01241, allocations: 496.4 kB / 280.6 MB, free: 9.414 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.01241, allocations: 0 / 280.6 MB, free: 9.414 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.777e-05/0.01249, allocations: 15.98 kB / 280.6 MB, free: 9.398 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.01249, allocations: 4 kB / 280.6 MB, free: 9.395 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.01251, allocations: 4 kB / 280.6 MB, free: 9.391 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.01251, allocations: 4 kB / 280.6 MB, free: 9.387 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.01251, allocations: 0 / 280.6 MB, free: 9.387 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003157/0.01283, allocations: 316.2 kB / 280.9 MB, free: 9.059 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.023e-05/0.01285, allocations: 19.84 kB / 281 MB, free: 9.039 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.554e-05/0.01287, allocations: 0 / 281 MB, free: 9.039 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.602e-05/0.01297, allocations: 11.98 kB / 281 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.57e-05/0.01305, allocations: 23.83 kB / 281 MB, free: 9.004 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.01306, allocations: 4 kB / 281 MB, free: 9 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.64e-05/0.01313, allocations: 135.2 kB / 281.1 MB, free: 8.867 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.01313, allocations: 4 kB / 281.1 MB, free: 8.863 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002975/0.01342, allocations: 47.89 kB / 281.2 MB, free: 8.816 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.0001101/0.01353, allocations: 111.2 kB / 281.3 MB, free: 8.699 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002755/0.01381, allocations: 139.5 kB / 281.4 MB, free: 8.559 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.01381, allocations: 0 / 281.4 MB, free: 8.559 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.01392, allocations: 78.42 kB / 281.5 MB, free: 8.48 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003018/0.01423, allocations: 24.38 kB / 281.5 MB, free: 8.457 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005305/0.01476, allocations: 323.1 kB / 281.8 MB, free: 8.113 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.63e-05/0.01481, allocations: 75.98 kB / 281.9 MB, free: 8.02 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.732e-05/0.01488, allocations: 21.94 kB / 281.9 MB, free: 7.996 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.546e-05/0.01494, allocations: 20.5 kB / 282 MB, free: 7.977 MB / 266.7 MB Notification: Performance of SimCode: time 7.91e-07/0.01494, allocations: 0 / 282 MB, free: 7.977 MB / 266.7 MB Notification: Performance of Templates: time 0.004218/0.01915, allocations: 1.81 MB / 283.8 MB, free: 6.191 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","",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.769550404045731]