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.0024/0.0024, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 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.002516/0.002516, allocations: 153.1 kB / 24.26 MB, free: 172 kB / 18.57 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.52/1.52, allocations: 173.4 MB / 200.8 MB, free: 9.332 MB / 186.7 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 1.242e-06/1.242e-06, allocations: 0 / 267.3 MB, free: 6.797 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.595e-05/2.719e-05, allocations: 2.312 kB / 267.3 MB, free: 6.793 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003088/0.003115, allocations: 1.668 MB / 269 MB, free: 5.109 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007243/0.003839, allocations: 299.1 kB / 269.2 MB, free: 4.816 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.677e-05/0.003926, allocations: 7.938 kB / 269.3 MB, free: 4.809 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.004053, allocations: 19.73 kB / 269.3 MB, free: 4.789 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.805e-05/0.004111, allocations: 23.73 kB / 269.3 MB, free: 4.766 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004298/0.004541, allocations: 127.8 kB / 269.4 MB, free: 4.641 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003775/0.004918, allocations: 283.3 kB / 269.7 MB, free: 4.363 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003083/0.005226, allocations: 163.7 kB / 269.9 MB, free: 4.195 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004531/0.005679, allocations: 147.7 kB / 270 MB, free: 4.051 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001484/0.005828, allocations: 71.77 kB / 270.1 MB, free: 3.98 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.28e-05/0.005881, allocations: 24 kB / 270.1 MB, free: 3.957 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.775e-05/0.005968, allocations: 31.98 kB / 270.1 MB, free: 3.926 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.602e-05/0.006054, allocations: 59.8 kB / 270.2 MB, free: 3.867 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.792e-05/0.006152, allocations: 67.83 kB / 270.2 MB, free: 3.801 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000397/0.006549, allocations: 263.1 kB / 270.5 MB, free: 3.543 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.006552, allocations: 4 kB / 270.5 MB, free: 3.539 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.006553, allocations: 0 / 270.5 MB, free: 3.539 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.129e-05/0.006564, allocations: 3.984 kB / 270.5 MB, free: 3.535 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.0008042/0.007369, allocations: 0.5304 MB / 271 MB, free: 2.965 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.007411, allocations: 11.97 kB / 271.1 MB, free: 2.953 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001046/0.007515, allocations: 48.8 kB / 271.1 MB, free: 2.906 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002881/0.007803, allocations: 176.3 kB / 271.3 MB, free: 2.707 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.841e-05/0.007842, allocations: 24.88 kB / 271.3 MB, free: 2.684 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.609e-05/0.007888, allocations: 28.38 kB / 271.3 MB, free: 2.656 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005208/0.008409, allocations: 300 kB / 271.6 MB, free: 2.336 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.008422, allocations: 192 / 271.6 MB, free: 2.336 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.647e-05/0.008448, allocations: 8.375 kB / 271.6 MB, free: 2.328 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.008456, allocations: 4.375 kB / 271.6 MB, free: 2.324 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003331/0.008789, allocations: 165.8 kB / 271.8 MB, free: 2.164 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001431/0.01022, allocations: 1.127 MB / 272.9 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003594/0.01058, allocations: 182.2 kB / 273.1 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001473/0.01073, allocations: 79.44 kB / 273.2 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.836e-05/0.01076, allocations: 12 kB / 273.2 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002669/0.01102, allocations: 160.2 kB / 273.3 MB, free: 0.5 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.322e-06/0.01102, allocations: 0 / 273.3 MB, free: 0.5 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005488/0.01157, allocations: 239.2 kB / 273.6 MB, free: 268 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.697e-05/0.01164, allocations: 81.11 kB / 273.7 MB, free: 168 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002459/0.01189, allocations: 245.4 kB / 273.9 MB, free: 15.91 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.042e-05/0.01193, allocations: 37.7 kB / 273.9 MB, free: 15.86 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.01208, allocations: 191.4 kB / 274.1 MB, free: 15.67 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.531e-05/0.01215, allocations: 71.47 kB / 274.2 MB, free: 15.6 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/0.01232, allocations: 111.3 kB / 274.3 MB, free: 15.48 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002808/0.0126, allocations: 0.508 MB / 274.8 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001352/0.01274, allocations: 63.75 kB / 274.9 MB, free: 14.9 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002396/0.01298, allocations: 184.5 kB / 275.1 MB, free: 14.68 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003468/0.01332, allocations: 228.6 kB / 275.3 MB, free: 14.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.01332, allocations: 0 / 275.3 MB, free: 14.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004677/0.01379, allocations: 273.2 kB / 275.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.01381, allocations: 8 kB / 275.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.01381, allocations: 0 / 275.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.01383, allocations: 4 kB / 275.6 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/0.01399, allocations: 39.91 kB / 275.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.014, allocations: 8.281 kB / 275.6 MB, free: 14.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001091/0.01411, allocations: 31.78 kB / 275.6 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.019e-05/0.01414, allocations: 12 kB / 275.6 MB, free: 14.04 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,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.0001967/0.01433, allocations: 200.5 kB / 275.8 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.832e-05/0.01438, allocations: 31.78 kB / 275.9 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003871/0.01477, allocations: 194.5 kB / 276.1 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.01477, allocations: 4 kB / 276.1 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.01478, allocations: 0 / 276.1 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.124e-06/0.01478, allocations: 4 kB / 276.1 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008629/0.01565, allocations: 0.5907 MB / 276.7 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.01565, allocations: 4 kB / 276.7 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.93e-05/0.01573, allocations: 15.92 kB / 276.7 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.01574, allocations: 4 kB / 276.7 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.01575, allocations: 4 kB / 276.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.01576, allocations: 4 kB / 276.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.01576, allocations: 3.984 kB / 276.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006627/0.01642, allocations: 351.8 kB / 277 MB, free: 12.56 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.847e-05/0.01645, allocations: 23.83 kB / 277.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.637e-05/0.01648, allocations: 4 kB / 277.1 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.363e-05/0.01657, allocations: 15.98 kB / 277.1 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.823e-05/0.01665, allocations: 19.97 kB / 277.1 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.8e-05/0.01667, allocations: 11.94 kB / 277.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001059/0.01677, allocations: 147.1 kB / 277.3 MB, free: 12.34 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01677, allocations: 0 / 277.3 MB, free: 12.34 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003193/0.01709, allocations: 59.78 kB / 277.3 MB, free: 12.28 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: 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.0001692/0.01726, allocations: 118.9 kB / 277.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004009/0.01766, allocations: 204.2 kB / 277.6 MB, free: 11.95 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.01767, allocations: 0 / 277.6 MB, free: 11.95 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001684/0.01783, allocations: 95.52 kB / 277.7 MB, free: 11.86 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002905/0.01812, allocations: 23.98 kB / 277.7 MB, free: 11.83 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006779/0.0188, allocations: 370.4 kB / 278.1 MB, free: 11.44 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001507/0.01895, allocations: 133.3 kB / 278.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.319e-05/0.01905, allocations: 25.94 kB / 278.3 MB, free: 11.26 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.476e-05/0.01911, allocations: 20.5 kB / 278.3 MB, free: 11.24 MB / 266.7 MB Notification: Performance of SimCode: time 5.91e-07/0.01911, allocations: 0 / 278.3 MB, free: 11.24 MB / 266.7 MB Notification: Performance of Templates: time 0.006135/0.02525, allocations: 1.969 MB / 280.3 MB, free: 9.309 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] 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.544376448029652]