Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001763/0.001763, allocations: 113 kB / 19.04 MB, free: 3.254 MB / 14.72 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.002575/0.002575, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 14.72 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 1.558/1.558, allocations: 225.6 MB / 250.8 MB, free: 13.34 MB / 206.1 MB " [Timeout remaining time 178] 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 51.92 kB / 368.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3411/0.3427, allocations: 52.14 MB / 420.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003194/0.3459, allocations: 1.678 MB / 422.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008105/0.3467, allocations: 303.1 kB / 422.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.3468, allocations: 7.938 kB / 422.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001698/0.3469, allocations: 23.73 kB / 422.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.233e-05/0.347, allocations: 15.75 kB / 422.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004572/0.3475, allocations: 123.8 kB / 423 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000393/0.3478, allocations: 275.4 kB / 423.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003247/0.3482, allocations: 151 kB / 423.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.3483, allocations: 95.69 kB / 423.5 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001748/0.3485, allocations: 103.5 kB / 423.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.301e-05/0.3485, allocations: 24 kB / 423.6 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.38e-05/0.3486, allocations: 32 kB / 423.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.971e-05/0.3487, allocations: 55.83 kB / 423.7 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.3488, allocations: 107.5 kB / 423.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003897/0.3492, allocations: 256.4 kB / 424.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.3492, allocations: 4 kB / 424.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.3492, allocations: 4 kB / 424.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.196e-06/0.3492, allocations: 0 / 424.1 MB, free: 12.04 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.0008103/0.35, allocations: 0.4983 MB / 424.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.3501, allocations: 11.89 kB / 424.6 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.339e-05/0.3502, allocations: 24.8 kB / 424.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003563/0.3505, allocations: 228.1 kB / 424.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.639e-05/0.3506, allocations: 20.94 kB / 424.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.994e-05/0.3506, allocations: 32.38 kB / 424.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005081/0.3511, allocations: 278.5 kB / 425.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.3511, allocations: 192 / 425.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.794e-05/0.3512, allocations: 15.94 kB / 425.2 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.3512, allocations: 8 kB / 425.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003284/0.3515, allocations: 165.6 kB / 425.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001259/0.3528, allocations: 0.9713 MB / 426.3 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003206/0.3531, allocations: 161.4 kB / 426.5 MB, free: 9.449 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/0.3532, allocations: 76.94 kB / 426.5 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.262e-05/0.3532, allocations: 4 kB / 426.5 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002347/0.3535, allocations: 140.5 kB / 426.7 MB, free: 9.215 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.413e-06/0.3535, allocations: 0 / 426.7 MB, free: 9.215 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004885/0.3539, allocations: 229.3 kB / 426.9 MB, free: 8.984 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.699e-05/0.354, allocations: 89.11 kB / 427 MB, free: 8.879 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.3542, allocations: 145.7 kB / 427.1 MB, free: 8.727 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.173e-05/0.3542, allocations: 41.69 kB / 427.2 MB, free: 8.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001324/0.3543, allocations: 140.8 kB / 427.3 MB, free: 8.539 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.909e-05/0.3544, allocations: 67.47 kB / 427.4 MB, free: 8.473 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/0.3545, allocations: 81.67 kB / 427.4 MB, free: 8.387 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.3547, allocations: 326.9 kB / 427.8 MB, free: 8.059 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/0.3548, allocations: 67.97 kB / 427.8 MB, free: 7.992 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001972/0.355, allocations: 140.5 kB / 428 MB, free: 7.824 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002917/0.3553, allocations: 196.8 kB / 428.2 MB, free: 7.602 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.3553, allocations: 4 kB / 428.2 MB, free: 7.598 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000431/0.3558, allocations: 249.3 kB / 428.4 MB, free: 7.348 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.3558, allocations: 8 kB / 428.4 MB, free: 7.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.3558, allocations: 0 / 428.4 MB, free: 7.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.3558, allocations: 4 kB / 428.4 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.3559, allocations: 43.84 kB / 428.5 MB, free: 7.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.356, allocations: 4.281 kB / 428.5 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.3561, allocations: 27.84 kB / 428.5 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/0.3561, allocations: 16 kB / 428.5 MB, free: 7.246 MB / 334.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.0001538/0.3562, allocations: 161.6 kB / 428.7 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.914e-05/0.3563, allocations: 19.91 kB / 428.7 MB, free: 7.059 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003805/0.3567, allocations: 194.3 kB / 428.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.3567, allocations: 4 kB / 428.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.3567, allocations: 0 / 428.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.3567, allocations: 0 / 428.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009378/0.3576, allocations: 0.5948 MB / 429.5 MB, free: 6.199 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.3576, allocations: 0 / 429.5 MB, free: 6.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.898e-05/0.3577, allocations: 23.97 kB / 429.5 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.3577, allocations: 4 kB / 429.5 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.08e-05/0.3577, allocations: 7.875 kB / 429.5 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.3577, allocations: 7.938 kB / 429.5 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3577, allocations: 0 / 429.5 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000443/0.3582, allocations: 288.2 kB / 429.8 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.18e-05/0.3583, allocations: 92.95 kB / 429.9 MB, free: 5.746 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.849e-05/0.3583, allocations: 11.92 kB / 429.9 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.903e-05/0.3584, allocations: 11.94 kB / 429.9 MB, free: 5.723 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.3585, allocations: 23.97 kB / 429.9 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.537e-05/0.3585, allocations: 4 kB / 429.9 MB, free: 5.695 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001089/0.3586, allocations: 98.5 kB / 430 MB, free: 5.602 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3586, allocations: 4 kB / 430 MB, free: 5.598 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003291/0.359, allocations: 51.89 kB / 430.1 MB, free: 5.547 MB / 334.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: 20 (transition2.t_start,step.localActive,step.active,transition1.enableFire,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.0002089/0.3592, allocations: 115.2 kB / 430.2 MB, free: 5.426 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003839/0.3595, allocations: 176 kB / 430.4 MB, free: 5.254 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3595, allocations: 0 / 430.4 MB, free: 5.254 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001526/0.3597, allocations: 81.06 kB / 430.5 MB, free: 5.176 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003082/0.36, allocations: 32.03 kB / 430.5 MB, free: 5.145 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007769/0.3608, allocations: 360.5 kB / 430.8 MB, free: 4.762 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005065/0.3613, allocations: 0.7363 MB / 431.6 MB, free: 3.996 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.29e-05/0.3614, allocations: 21.94 kB / 431.6 MB, free: 3.973 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.985e-05/0.3614, allocations: 23.44 kB / 431.6 MB, free: 3.949 MB / 334.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3614, allocations: 0 / 431.6 MB, free: 3.949 MB / 334.1 MB Notification: Performance of Templates: time 0.00606/0.3675, allocations: 1.983 MB / 433.6 MB, free: 1.973 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.964420351199806]