Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001479/0.002547, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001453/0.002516, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9574/0.9574, allocations: 173.3 MB / 185.8 MB, free: 8.98 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07686/1.034, allocations: 52.51 MB / 238.3 MB, free: 4.414 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 239.5 MB, free: 3.191 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.863e-05/2.026e-05, allocations: 2.312 kB / 239.5 MB, free: 3.188 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003159/0.003179, allocations: 1.759 MB / 241.3 MB, free: 1.418 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006789/0.003858, allocations: 310.9 kB / 241.6 MB, free: 1.113 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.003962, allocations: 7.938 kB / 241.6 MB, free: 1.105 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001101/0.004072, allocations: 31.67 kB / 241.6 MB, free: 1.074 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.941e-05/0.004131, allocations: 15.75 kB / 241.6 MB, free: 1.059 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003963/0.004528, allocations: 127.7 kB / 241.8 MB, free: 0.9336 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003469/0.004875, allocations: 275.5 kB / 242 MB, free: 0.6641 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002804/0.005155, allocations: 160 kB / 242.2 MB, free: 0.5039 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001713/0.005326, allocations: 131.7 kB / 242.3 MB, free: 384 kB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001505/0.005477, allocations: 75.75 kB / 242.4 MB, free: 308 kB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.189e-05/0.005519, allocations: 24 kB / 242.4 MB, free: 284 kB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.489e-05/0.005614, allocations: 31.94 kB / 242.4 MB, free: 252 kB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.367e-05/0.005677, allocations: 55.84 kB / 242.5 MB, free: 196 kB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.263e-05/0.00575, allocations: 51.88 kB / 242.6 MB, free: 144 kB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000272/0.006022, allocations: 159.4 kB / 242.7 MB, free: 15.98 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.801e-05/0.00604, allocations: 0 / 242.7 MB, free: 15.98 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.006041, allocations: 0 / 242.7 MB, free: 15.98 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.857e-05/0.00606, allocations: 0 / 242.7 MB, free: 15.98 MB / 250.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.0006579/0.006718, allocations: 447.3 kB / 243.1 MB, free: 15.52 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.006752, allocations: 12.02 kB / 243.2 MB, free: 15.51 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.107e-05/0.006823, allocations: 36.92 kB / 243.2 MB, free: 15.47 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002197/0.007043, allocations: 153.4 kB / 243.3 MB, free: 15.3 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.537e-05/0.007078, allocations: 24.86 kB / 243.4 MB, free: 15.27 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.778e-05/0.007116, allocations: 32.38 kB / 243.4 MB, free: 15.24 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000312/0.007428, allocations: 222.5 kB / 243.6 MB, free: 15 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.007441, allocations: 192 / 243.6 MB, free: 15 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/0.007461, allocations: 12.38 kB / 243.6 MB, free: 14.99 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.007471, allocations: 8.375 kB / 243.6 MB, free: 14.98 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001493/0.00762, allocations: 75.33 kB / 243.7 MB, free: 14.91 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008858/0.008506, allocations: 0.7348 MB / 244.4 MB, free: 14.14 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002075/0.008714, allocations: 115.9 kB / 244.6 MB, free: 14.01 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.642e-05/0.00878, allocations: 49.62 kB / 244.6 MB, free: 13.96 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.975e-05/0.0088, allocations: 7.984 kB / 244.6 MB, free: 13.95 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001739/0.008974, allocations: 116.9 kB / 244.7 MB, free: 13.82 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.903e-06/0.008976, allocations: 0 / 244.7 MB, free: 13.82 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002651/0.009241, allocations: 144.6 kB / 244.9 MB, free: 13.67 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.913e-05/0.0093, allocations: 89.09 kB / 245 MB, free: 13.57 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.009409, allocations: 154.5 kB / 245.1 MB, free: 13.4 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.009438, allocations: 41.62 kB / 245.1 MB, free: 13.36 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.887e-05/0.009517, allocations: 140.8 kB / 245.3 MB, free: 13.21 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.372e-05/0.009571, allocations: 63.5 kB / 245.3 MB, free: 13.15 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.496e-05/0.009666, allocations: 89.52 kB / 245.4 MB, free: 13.06 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.707e-05/0.009763, allocations: 326.8 kB / 245.8 MB, free: 12.73 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.093e-05/0.009824, allocations: 27.98 kB / 245.8 MB, free: 12.7 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001056/0.009929, allocations: 112.3 kB / 245.9 MB, free: 12.56 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001811/0.01011, allocations: 152.5 kB / 246 MB, free: 12.38 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.01011, allocations: 0 / 246 MB, free: 12.38 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002639/0.01038, allocations: 185.3 kB / 246.2 MB, free: 12.2 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.0104, allocations: 7.938 kB / 246.2 MB, free: 12.19 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.0104, allocations: 4 kB / 246.2 MB, free: 12.18 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.01041, allocations: 4 kB / 246.2 MB, free: 12.18 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001791/0.01059, allocations: 39.92 kB / 246.3 MB, free: 12.14 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.0106, allocations: 7.984 kB / 246.3 MB, free: 12.13 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.671e-05/0.0107, allocations: 27.84 kB / 246.3 MB, free: 12.11 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.736e-05/0.01073, allocations: 8.281 kB / 246.3 MB, free: 12.1 MB / 250.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 0.000111/0.01084, allocations: 153.6 kB / 246.5 MB, free: 11.94 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.19e-05/0.01087, allocations: 19.98 kB / 246.5 MB, free: 11.92 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002139/0.01108, allocations: 118.5 kB / 246.6 MB, free: 11.8 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.01109, allocations: 4 kB / 246.6 MB, free: 11.79 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.01109, allocations: 0 / 246.6 MB, free: 11.79 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.01109, allocations: 0 / 246.6 MB, free: 11.79 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004907/0.01159, allocations: 382.2 kB / 247 MB, free: 11.39 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.01159, allocations: 0 / 247 MB, free: 11.39 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.855e-05/0.01168, allocations: 19.92 kB / 247 MB, free: 11.37 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.822e-05/0.0117, allocations: 19.91 kB / 247 MB, free: 11.35 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.0117, allocations: 0 / 247 MB, free: 11.35 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.01171, allocations: 8 kB / 247 MB, free: 11.34 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.01172, allocations: 0 / 247 MB, free: 11.34 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.01172, allocations: 0 / 247 MB, free: 11.34 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002061/0.01192, allocations: 228.5 kB / 247.2 MB, free: 11.1 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.87e-05/0.01195, allocations: 11.98 kB / 247.3 MB, free: 11.09 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.984e-05/0.01204, allocations: 8 kB / 247.3 MB, free: 11.08 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.344e-05/0.0121, allocations: 11.97 kB / 247.3 MB, free: 11.07 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.594e-05/0.01211, allocations: 11.98 kB / 247.3 MB, free: 11.06 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.209e-05/0.01214, allocations: 31.58 kB / 247.3 MB, free: 11.03 MB / 250.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01214, allocations: 0 / 247.3 MB, free: 11.03 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002796/0.01242, allocations: 55.83 kB / 247.4 MB, free: 10.97 MB / 250.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: 20 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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.0001358/0.01256, allocations: 100 kB / 247.5 MB, free: 10.87 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002123/0.01277, allocations: 133.3 kB / 247.6 MB, free: 10.73 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/0.01278, allocations: 0 / 247.6 MB, free: 10.73 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 9.752e-05/0.01288, allocations: 73.25 kB / 247.7 MB, free: 10.66 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002308/0.01311, allocations: 51.83 kB / 247.7 MB, free: 10.61 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006771/0.01379, allocations: 326.3 kB / 248 MB, free: 10.26 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.945e-05/0.01386, allocations: 80.33 kB / 248.1 MB, free: 10.16 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.116e-05/0.01394, allocations: 21.94 kB / 248.1 MB, free: 10.14 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.01405, allocations: 87.36 kB / 248.2 MB, free: 10.05 MB / 250.7 MB Notification: Performance of SimCode: time 8.92e-07/0.01405, allocations: 0 / 248.2 MB, free: 10.05 MB / 250.7 MB Notification: Performance of Templates: time 0.00491/0.01896, allocations: 2.176 MB / 250.4 MB, free: 7.918 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.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.4907843759283423]