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.001281/0.001281, allocations: 115.1 kB / 18.46 MB, free: 4.543 MB / 14.72 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.001398/0.001398, allocations: 215.2 kB / 21.42 MB, free: 1.582 MB / 14.72 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.495/1.495, allocations: 230.6 MB / 254.8 MB, free: 15.07 MB / 206.1 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_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 0.001634/0.001634, allocations: 47.92 kB / 374.1 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1058, allocations: 53.34 MB / 427.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003645/0.1094, allocations: 1.682 MB / 429.1 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008696/0.1103, allocations: 279.2 kB / 429.4 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001482/0.1104, allocations: 7.938 kB / 429.4 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000162/0.1106, allocations: 35.67 kB / 429.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.547e-05/0.1107, allocations: 19.78 kB / 429.5 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004819/0.1111, allocations: 119.8 kB / 429.6 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004259/0.1116, allocations: 263.6 kB / 429.9 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000372/0.1119, allocations: 170.9 kB / 430 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000159/0.1121, allocations: 103.6 kB / 430.1 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001794/0.1123, allocations: 95.61 kB / 430.2 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.569e-05/0.1123, allocations: 24 kB / 430.2 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.524e-05/0.1124, allocations: 27.98 kB / 430.3 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.236e-05/0.1125, allocations: 59.83 kB / 430.3 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001255/0.1126, allocations: 111.4 kB / 430.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003636/0.113, allocations: 258.9 kB / 430.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.113, allocations: 0 / 430.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.113, allocations: 0 / 430.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.113, allocations: 4 kB / 430.7 MB, free: 1.035 MB / 350.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.0008461/0.1138, allocations: 498.3 kB / 431.2 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.1139, allocations: 15.95 kB / 431.2 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003031/0.1142, allocations: 36.78 kB / 431.2 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003766/0.1146, allocations: 228.1 kB / 431.5 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.312e-05/0.1146, allocations: 20.94 kB / 431.5 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.305e-05/0.1146, allocations: 32.38 kB / 431.5 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2149/0.3295, allocations: 265.6 kB / 431.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.3296, allocations: 5.25 kB / 431.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.577e-05/0.3296, allocations: 9.297 kB / 431.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.3296, allocations: 4.875 kB / 431.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003467/0.3299, allocations: 165.6 kB / 431.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001047/0.331, allocations: 0.9642 MB / 432.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002757/0.3313, allocations: 155.1 kB / 433.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.3314, allocations: 72.97 kB / 433.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.3314, allocations: 4.281 kB / 433.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001877/0.3316, allocations: 133.5 kB / 433.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.3316, allocations: 0 / 433.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004264/0.332, allocations: 229.7 kB / 433.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.733e-05/0.332, allocations: 87.34 kB / 433.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.74e-05/0.3321, allocations: 152 kB / 433.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.3322, allocations: 39.36 kB / 433.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.527e-05/0.3322, allocations: 142.3 kB / 433.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.609e-05/0.3323, allocations: 70.36 kB / 434 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.212e-05/0.3324, allocations: 77.89 kB / 434 MB, free: 10.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.765e-05/0.3324, allocations: 326.8 kB / 434.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.3325, allocations: 71.11 kB / 434.4 MB, free: 10.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.3327, allocations: 142.9 kB / 434.6 MB, free: 10.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002323/0.3329, allocations: 195.8 kB / 434.8 MB, free: 9.926 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.3329, allocations: 5.094 kB / 434.8 MB, free: 9.926 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003225/0.3332, allocations: 250 kB / 435 MB, free: 9.828 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.3332, allocations: 7 kB / 435 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.3332, allocations: 1.156 kB / 435 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.3333, allocations: 4.312 kB / 435 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.3334, allocations: 38.97 kB / 435.1 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.3334, allocations: 7.844 kB / 435.1 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.726e-05/0.3335, allocations: 23.83 kB / 435.1 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.141e-05/0.3335, allocations: 17.88 kB / 435.1 MB, free: 9.809 MB / 350.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.0001093/0.3336, allocations: 157.4 kB / 435.3 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.739e-05/0.3337, allocations: 17.19 kB / 435.3 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.718e-05/0.3337, allocations: 15.97 kB / 435.3 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.3337, allocations: 10.41 kB / 435.3 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.3337, allocations: 5.156 kB / 435.3 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.3337, allocations: 3.75 kB / 435.3 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005753/0.3343, allocations: 0.573 MB / 435.9 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3343, allocations: 3.938 kB / 435.9 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.083e-05/0.3344, allocations: 19.48 kB / 435.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.3344, allocations: 1.125 kB / 435.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.3344, allocations: 2.219 kB / 435.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.3344, allocations: 7.281 kB / 435.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.3344, allocations: 0 / 435.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002631/0.3347, allocations: 278.6 kB / 436.2 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.048e-05/0.3347, allocations: 98.3 kB / 436.3 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.612e-05/0.3347, allocations: 9.094 kB / 436.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.688e-05/0.3348, allocations: 7.125 kB / 436.3 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.785e-05/0.3349, allocations: 24.22 kB / 436.3 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.194e-05/0.3349, allocations: 5.156 kB / 436.3 MB, free: 8.902 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.284e-05/0.3349, allocations: 102.6 kB / 436.4 MB, free: 8.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3349, allocations: 0 / 436.4 MB, free: 8.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002987/0.3352, allocations: 52.78 kB / 436.5 MB, free: 8.805 MB / 350.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: 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 9.465e-05/0.3353, allocations: 103.1 kB / 436.6 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000294/0.3356, allocations: 172.5 kB / 436.8 MB, free: 8.668 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3356, allocations: 3.094 kB / 436.8 MB, free: 8.668 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001132/0.3357, allocations: 70.83 kB / 436.8 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.336, allocations: 29.52 kB / 436.9 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005314/0.3366, allocations: 359.2 kB / 437.2 MB, free: 8.375 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001521/0.3367, allocations: 0.7386 MB / 438 MB, free: 7.668 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.817e-05/0.3368, allocations: 20.12 kB / 438 MB, free: 7.66 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3368, allocations: 0 / 438 MB, free: 7.66 MB / 350.1 MB Notification: Performance of Templates: time 0.00456/0.3413, allocations: 2.283 MB / 440.3 MB, free: 7.453 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 7.211789173015859]