Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001941/0.001941, allocations: 99.53 kB / 21.73 MB, free: 2.688 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.001882/0.001882, allocations: 162.6 kB / 25.03 MB, free: 8.941 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.47/1.47, allocations: 158.6 MB / 186.8 MB, free: 2.922 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.234e-06/2.234e-06, allocations: 0 / 250.3 MB, free: 7.863 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.864e-05/4.088e-05, allocations: 2.312 kB / 250.3 MB, free: 7.859 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.004902/0.004943, allocations: 1.491 MB / 251.8 MB, free: 6.355 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001172/0.006115, allocations: 243.2 kB / 252.1 MB, free: 6.117 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001538/0.006268, allocations: 7.938 kB / 252.1 MB, free: 6.109 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001982/0.006466, allocations: 23.73 kB / 252.1 MB, free: 6.086 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001134/0.00658, allocations: 15.8 kB / 252.1 MB, free: 6.07 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007212/0.007301, allocations: 119.8 kB / 252.2 MB, free: 5.953 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006442/0.007945, allocations: 271.4 kB / 252.5 MB, free: 5.688 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004793/0.008425, allocations: 142.8 kB / 252.6 MB, free: 5.547 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002927/0.008717, allocations: 131.8 kB / 252.8 MB, free: 5.418 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002478/0.008965, allocations: 71.77 kB / 252.8 MB, free: 5.348 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 8.259e-05/0.009048, allocations: 24 kB / 252.9 MB, free: 5.324 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001341/0.009182, allocations: 27.98 kB / 252.9 MB, free: 5.297 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.009295, allocations: 55.83 kB / 252.9 MB, free: 5.242 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001473/0.009443, allocations: 67.81 kB / 253 MB, free: 5.176 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006019/0.01004, allocations: 255.1 kB / 253.2 MB, free: 4.926 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.01005, allocations: 4 kB / 253.3 MB, free: 4.922 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.153e-06/0.01005, allocations: 4 kB / 253.3 MB, free: 4.918 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.01007, allocations: 0 / 253.3 MB, free: 4.918 MB / 234.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.001269/0.01134, allocations: 0.5069 MB / 253.8 MB, free: 4.371 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.924e-05/0.01141, allocations: 15.98 kB / 253.8 MB, free: 4.355 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003968/0.0118, allocations: 32.84 kB / 253.8 MB, free: 4.324 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004978/0.0123, allocations: 176.3 kB / 254 MB, free: 4.125 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.973e-05/0.01236, allocations: 24.88 kB / 254 MB, free: 4.102 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.272e-05/0.01243, allocations: 24.38 kB / 254 MB, free: 4.078 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008026/0.01324, allocations: 257 kB / 254.3 MB, free: 3.809 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/0.01325, allocations: 4.188 kB / 254.3 MB, free: 3.805 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.997e-05/0.01329, allocations: 12.31 kB / 254.3 MB, free: 3.793 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.01331, allocations: 8.375 kB / 254.3 MB, free: 3.785 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005846/0.01389, allocations: 157.8 kB / 254.5 MB, free: 3.633 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001964/0.01586, allocations: 0.7203 MB / 255.2 MB, free: 2.871 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006034/0.01646, allocations: 167.3 kB / 255.3 MB, free: 2.695 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002514/0.01671, allocations: 75.66 kB / 255.4 MB, free: 2.617 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.558e-05/0.01676, allocations: 4 kB / 255.4 MB, free: 2.613 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004073/0.01716, allocations: 128.9 kB / 255.5 MB, free: 2.473 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 3.136e-06/0.01717, allocations: 4 kB / 255.6 MB, free: 2.469 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008715/0.01804, allocations: 237.9 kB / 255.8 MB, free: 2.23 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.441e-05/0.01813, allocations: 55.41 kB / 255.8 MB, free: 2.164 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000368/0.0185, allocations: 229.8 kB / 256.1 MB, free: 1.922 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 6.305e-05/0.01856, allocations: 33.7 kB / 256.1 MB, free: 1.883 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002389/0.0188, allocations: 183.5 kB / 256.3 MB, free: 1.695 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.01892, allocations: 67.53 kB / 256.3 MB, free: 1.629 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002707/0.01919, allocations: 103.7 kB / 256.4 MB, free: 1.516 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0004227/0.01961, allocations: 0.504 MB / 256.9 MB, free: 1 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002402/0.01985, allocations: 60.62 kB / 257 MB, free: 0.9414 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003832/0.02024, allocations: 158.7 kB / 257.2 MB, free: 0.7539 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000545/0.02078, allocations: 197.4 kB / 257.4 MB, free: 0.5273 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.02078, allocations: 0 / 257.4 MB, free: 0.5273 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008149/0.0216, allocations: 261.4 kB / 257.6 MB, free: 272 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.777e-05/0.02164, allocations: 8 kB / 257.6 MB, free: 264 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.02165, allocations: 0 / 257.6 MB, free: 264 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.181e-05/0.02168, allocations: 11.88 kB / 257.6 MB, free: 252 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002375/0.02192, allocations: 31.92 kB / 257.7 MB, free: 220 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.931e-05/0.02194, allocations: 7.938 kB / 257.7 MB, free: 212 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001887/0.02212, allocations: 35.77 kB / 257.7 MB, free: 176 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.002e-05/0.02217, allocations: 12 kB / 257.7 MB, free: 164 kB / 234.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.0003499/0.02252, allocations: 204.6 kB / 257.9 MB, free: 15.95 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.405e-05/0.0226, allocations: 23.91 kB / 257.9 MB, free: 15.93 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006493/0.02325, allocations: 194.4 kB / 258.1 MB, free: 15.73 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/0.02326, allocations: 7.938 kB / 258.1 MB, free: 15.72 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.02327, allocations: 0 / 258.1 MB, free: 15.72 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.02328, allocations: 3.984 kB / 258.1 MB, free: 15.71 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001411/0.02469, allocations: 0.5596 MB / 258.7 MB, free: 15.11 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.02469, allocations: 4 kB / 258.7 MB, free: 15.11 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001458/0.02484, allocations: 19.94 kB / 258.7 MB, free: 15.09 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.141e-05/0.02485, allocations: 3.984 kB / 258.7 MB, free: 15.09 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.02487, allocations: 0 / 258.7 MB, free: 15.09 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.145e-06/0.02488, allocations: 8 kB / 258.7 MB, free: 15.08 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.02488, allocations: 0 / 258.7 MB, free: 15.08 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007199/0.0256, allocations: 347.7 kB / 259.1 MB, free: 14.72 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.741e-05/0.02564, allocations: 15.84 kB / 259.1 MB, free: 14.7 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.52e-05/0.02568, allocations: 8 kB / 259.1 MB, free: 14.7 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.02585, allocations: 11.98 kB / 259.1 MB, free: 14.68 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.02597, allocations: 19.97 kB / 259.1 MB, free: 14.66 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.22e-05/0.026, allocations: 7.984 kB / 259.1 MB, free: 14.66 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001564/0.02616, allocations: 139.2 kB / 259.3 MB, free: 14.52 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.02616, allocations: 0 / 259.3 MB, free: 14.52 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005736/0.02673, allocations: 55.88 kB / 259.3 MB, free: 14.46 MB / 250.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: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 22 * 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.0002626/0.027, allocations: 107.2 kB / 259.4 MB, free: 14.35 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006691/0.02767, allocations: 188.7 kB / 259.6 MB, free: 14.16 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.02767, allocations: 0 / 259.6 MB, free: 14.16 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003097/0.02798, allocations: 103.5 kB / 259.7 MB, free: 14.06 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005396/0.02852, allocations: 35.86 kB / 259.7 MB, free: 14.02 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.02959, allocations: 335.7 kB / 260.1 MB, free: 13.66 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002072/0.02979, allocations: 124.6 kB / 260.2 MB, free: 13.53 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001523/0.02995, allocations: 33.92 kB / 260.2 MB, free: 13.49 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.123e-05/0.03004, allocations: 24.44 kB / 260.3 MB, free: 13.47 MB / 250.7 MB Notification: Performance of SimCode: time 1.222e-06/0.03004, allocations: 0 / 260.3 MB, free: 13.47 MB / 250.7 MB Notification: Performance of Templates: time 0.01038/0.04042, allocations: 1.96 MB / 262.2 MB, free: 11.53 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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.67101830302272]