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.001645/0.001645, allocations: 84.3 kB / 22.21 MB, free: 2.289 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.002298/0.002298, allocations: 170 kB / 25.6 MB, free: 8.922 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.07/1.07, allocations: 158.6 MB / 187.5 MB, free: 2.801 MB / 170.7 MB " [Timeout remaining time 179] 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.304e-06/2.304e-06, allocations: 0 / 251.4 MB, free: 7.285 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.042e-05/2.272e-05, allocations: 2.312 kB / 251.4 MB, free: 7.281 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002349/0.002371, allocations: 1.491 MB / 252.9 MB, free: 5.781 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006524/0.003024, allocations: 247.2 kB / 253.2 MB, free: 5.539 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.003139, allocations: 7.938 kB / 253.2 MB, free: 5.531 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000142/0.003281, allocations: 19.75 kB / 253.2 MB, free: 5.512 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.297e-05/0.003334, allocations: 19.78 kB / 253.2 MB, free: 5.492 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004851/0.003819, allocations: 119.8 kB / 253.3 MB, free: 5.375 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003237/0.004143, allocations: 271.4 kB / 253.6 MB, free: 5.109 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002595/0.004402, allocations: 142.8 kB / 253.7 MB, free: 4.969 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001339/0.004536, allocations: 131.8 kB / 253.9 MB, free: 4.84 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001208/0.004657, allocations: 71.77 kB / 253.9 MB, free: 4.77 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.471e-05/0.004692, allocations: 20 kB / 254 MB, free: 4.75 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.635e-05/0.004778, allocations: 31.98 kB / 254 MB, free: 4.719 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.996e-05/0.004838, allocations: 51.83 kB / 254 MB, free: 4.668 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.198e-05/0.0049, allocations: 67.81 kB / 254.1 MB, free: 4.602 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002579/0.005158, allocations: 179.3 kB / 254.3 MB, free: 4.426 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.005161, allocations: 0 / 254.3 MB, free: 4.426 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.005162, allocations: 4 kB / 254.3 MB, free: 4.422 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.249e-06/0.005167, allocations: 0 / 254.3 MB, free: 4.422 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.0005693/0.005736, allocations: 0.5033 MB / 254.8 MB, free: 3.879 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.005785, allocations: 11.98 kB / 254.8 MB, free: 3.867 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.498e-05/0.00585, allocations: 40.84 kB / 254.8 MB, free: 3.828 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001993/0.006049, allocations: 176.2 kB / 255 MB, free: 3.629 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.102e-05/0.00608, allocations: 24.86 kB / 255 MB, free: 3.605 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.847e-05/0.006109, allocations: 24.38 kB / 255.1 MB, free: 3.582 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002753/0.006384, allocations: 193.7 kB / 255.2 MB, free: 3.371 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.006398, allocations: 4.188 kB / 255.3 MB, free: 3.367 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.846e-05/0.006417, allocations: 12.38 kB / 255.3 MB, free: 3.355 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.006429, allocations: 4.375 kB / 255.3 MB, free: 3.352 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001017/0.006531, allocations: 79.3 kB / 255.3 MB, free: 3.277 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007044/0.007235, allocations: 0.6467 MB / 256 MB, free: 2.598 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001815/0.007416, allocations: 131.2 kB / 256.1 MB, free: 2.457 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.132e-05/0.007468, allocations: 51.73 kB / 256.2 MB, free: 2.402 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.00749, allocations: 4 kB / 256.2 MB, free: 2.398 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001245/0.007615, allocations: 100.8 kB / 256.3 MB, free: 2.285 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 1.432e-06/0.007616, allocations: 4 kB / 256.3 MB, free: 2.281 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002616/0.007878, allocations: 173.9 kB / 256.4 MB, free: 2.105 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.482e-05/0.007923, allocations: 63.34 kB / 256.5 MB, free: 2.031 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.008044, allocations: 205.8 kB / 256.7 MB, free: 1.812 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.495e-05/0.008068, allocations: 37.7 kB / 256.7 MB, free: 1.77 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.584e-05/0.008164, allocations: 175.5 kB / 256.9 MB, free: 1.59 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.387e-05/0.008208, allocations: 71.44 kB / 257 MB, free: 1.52 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.134e-05/0.0083, allocations: 83.62 kB / 257.1 MB, free: 1.426 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.008463, allocations: 0.4962 MB / 257.6 MB, free: 0.918 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.321e-05/0.008506, allocations: 32.62 kB / 257.6 MB, free: 0.8867 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.013e-05/0.008596, allocations: 118.7 kB / 257.7 MB, free: 0.7383 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.008732, allocations: 153.4 kB / 257.9 MB, free: 0.5547 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.008734, allocations: 0 / 257.9 MB, free: 0.5547 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002186/0.008953, allocations: 213.4 kB / 258.1 MB, free: 348 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.008968, allocations: 8 kB / 258.1 MB, free: 340 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.008975, allocations: 0 / 258.1 MB, free: 340 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.008994, allocations: 4 kB / 258.1 MB, free: 336 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.561e-05/0.009089, allocations: 39.8 kB / 258.1 MB, free: 296 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.009094, allocations: 0 / 258.1 MB, free: 296 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.69e-05/0.009161, allocations: 31.83 kB / 258.2 MB, free: 264 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.773e-05/0.009179, allocations: 8 kB / 258.2 MB, free: 256 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,transition1.condition,transition2.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 (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.000137/0.009316, allocations: 184.6 kB / 258.3 MB, free: 60 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.265e-05/0.009339, allocations: 23.91 kB / 258.4 MB, free: 36 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002302/0.009569, allocations: 174.4 kB / 258.5 MB, free: 15.86 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.009572, allocations: 0 / 258.5 MB, free: 15.86 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.009575, allocations: 3.938 kB / 258.5 MB, free: 15.85 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.423e-06/0.009582, allocations: 4 kB / 258.5 MB, free: 15.85 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004331/0.01001, allocations: 477.6 kB / 259 MB, free: 15.35 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.01002, allocations: 0 / 259 MB, free: 15.35 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.651e-05/0.01006, allocations: 23.86 kB / 259 MB, free: 15.32 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.01007, allocations: 0 / 259 MB, free: 15.32 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/0.01008, allocations: 8 kB / 259 MB, free: 15.32 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.01008, allocations: 4 kB / 259 MB, free: 15.31 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.01008, allocations: 0 / 259 MB, free: 15.31 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002092/0.01029, allocations: 299.7 kB / 259.3 MB, free: 15 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.938e-05/0.01031, allocations: 23.84 kB / 259.4 MB, free: 14.98 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.794e-05/0.01033, allocations: 3.984 kB / 259.4 MB, free: 14.97 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.668e-05/0.01037, allocations: 8 kB / 259.4 MB, free: 14.96 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.173e-05/0.01043, allocations: 23.95 kB / 259.4 MB, free: 14.94 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.01045, allocations: 4 kB / 259.4 MB, free: 14.94 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.143e-05/0.0105, allocations: 131.2 kB / 259.5 MB, free: 14.81 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0105, allocations: 0 / 259.5 MB, free: 14.81 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002105/0.01071, allocations: 51.89 kB / 259.6 MB, free: 14.76 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.000138/0.01084, allocations: 119.1 kB / 259.7 MB, free: 14.63 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001954/0.01104, allocations: 132.7 kB / 259.8 MB, free: 14.5 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.01104, allocations: 4 kB / 259.8 MB, free: 14.5 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.255e-05/0.01111, allocations: 67.52 kB / 259.9 MB, free: 14.43 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002179/0.01133, allocations: 27.92 kB / 259.9 MB, free: 14.4 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004145/0.01175, allocations: 319.6 kB / 260.2 MB, free: 14.05 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.149e-05/0.0118, allocations: 84.33 kB / 260.3 MB, free: 13.95 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.348e-05/0.01185, allocations: 25.94 kB / 260.3 MB, free: 13.93 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.837e-05/0.01195, allocations: 106.2 kB / 260.4 MB, free: 13.82 MB / 250.7 MB Notification: Performance of SimCode: time 9.22e-07/0.01195, allocations: 0 / 260.4 MB, free: 13.82 MB / 250.7 MB Notification: Performance of Templates: time 0.004402/0.01635, allocations: 2.159 MB / 262.6 MB, free: 11.69 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","",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.945107542909682]