Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001619/0.001619, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.002036/0.002036, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 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.487/1.487, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.075e-05/1.075e-05, allocations: 4 kB / 272.3 MB, free: 1.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.918e-05/3.993e-05, allocations: 2.312 kB / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.004218/0.004258, allocations: 1.482 MB / 273.8 MB, free: 376 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.005305, allocations: 291.1 kB / 274.1 MB, free: 84 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.005446, allocations: 3.938 kB / 274.1 MB, free: 80 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001874/0.005633, allocations: 19.75 kB / 274.1 MB, free: 60 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.792e-05/0.005721, allocations: 19.8 kB / 274.1 MB, free: 40 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006381/0.006359, allocations: 127.7 kB / 274.2 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005606/0.00692, allocations: 259.5 kB / 274.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004574/0.007378, allocations: 142.8 kB / 274.6 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002858/0.007663, allocations: 135.7 kB / 274.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001732/0.007837, allocations: 63.78 kB / 274.8 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.349e-05/0.00789, allocations: 24 kB / 274.8 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.488e-05/0.007975, allocations: 24 kB / 274.9 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.13e-05/0.008056, allocations: 63.81 kB / 274.9 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001033/0.00816, allocations: 63.81 kB / 275 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004226/0.008582, allocations: 259.1 kB / 275.2 MB, free: 14.9 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.008585, allocations: 0 / 275.2 MB, free: 14.9 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.008586, allocations: 0 / 275.2 MB, free: 14.9 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.679e-06/0.008596, allocations: 0 / 275.2 MB, free: 14.9 MB / 266.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.0008935/0.00949, allocations: 405.1 kB / 275.6 MB, free: 14.47 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.009529, allocations: 8.031 kB / 275.6 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003525/0.009882, allocations: 52.81 kB / 275.7 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003853/0.01027, allocations: 169.5 kB / 275.9 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.191e-05/0.01031, allocations: 24.88 kB / 275.9 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.623e-05/0.01036, allocations: 28.38 kB / 275.9 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004995/0.01085, allocations: 239.3 kB / 276.1 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.01087, allocations: 4.125 kB / 276.1 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.581e-05/0.01089, allocations: 8.375 kB / 276.2 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.0109, allocations: 4.375 kB / 276.2 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003236/0.01122, allocations: 157.9 kB / 276.3 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.01232, allocations: 0.5778 MB / 276.9 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003381/0.01266, allocations: 157.2 kB / 277 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001291/0.01279, allocations: 68.83 kB / 277.1 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.01281, allocations: 4 kB / 277.1 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000217/0.01303, allocations: 115.3 kB / 277.2 MB, free: 12.78 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.01303, allocations: 0 / 277.2 MB, free: 12.78 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.000484/0.01352, allocations: 227.8 kB / 277.4 MB, free: 12.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.743e-05/0.01358, allocations: 59.41 kB / 277.5 MB, free: 12.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.01375, allocations: 149.9 kB / 277.7 MB, free: 12.33 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.232e-05/0.01379, allocations: 37.7 kB / 277.7 MB, free: 12.29 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.01391, allocations: 128.8 kB / 277.8 MB, free: 12.15 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.554e-05/0.01399, allocations: 71.47 kB / 277.9 MB, free: 12.08 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/0.01411, allocations: 78 kB / 278 MB, free: 12 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002034/0.01431, allocations: 326.8 kB / 278.3 MB, free: 11.67 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.01445, allocations: 60.62 kB / 278.3 MB, free: 11.61 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002115/0.01466, allocations: 128.1 kB / 278.5 MB, free: 11.46 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002914/0.01495, allocations: 171.1 kB / 278.6 MB, free: 11.27 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.01495, allocations: 4 kB / 278.6 MB, free: 11.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004489/0.0154, allocations: 249.3 kB / 278.9 MB, free: 11.02 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/0.01543, allocations: 11.98 kB / 278.9 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.01544, allocations: 4 kB / 278.9 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.564e-05/0.01547, allocations: 7.938 kB / 278.9 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001411/0.01561, allocations: 31.92 kB / 278.9 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.01563, allocations: 4 kB / 278.9 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.01573, allocations: 28.06 kB / 279 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.14e-05/0.01575, allocations: 15.94 kB / 279 MB, free: 10.91 MB / 266.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.0001682/0.01592, allocations: 149.8 kB / 279.1 MB, free: 10.76 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.905e-05/0.01596, allocations: 23.91 kB / 279.1 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.491e-05/0.01601, allocations: 20.94 kB / 279.2 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.01602, allocations: 3.938 kB / 279.2 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.01602, allocations: 0 / 279.2 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.01603, allocations: 3.984 kB / 279.2 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007453/0.01678, allocations: 466.1 kB / 279.6 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.01678, allocations: 4 kB / 279.6 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.26e-05/0.01686, allocations: 19.92 kB / 279.7 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.01687, allocations: 3.984 kB / 279.7 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.621e-05/0.01689, allocations: 8 kB / 279.7 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.01689, allocations: 0 / 279.7 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.01689, allocations: 0 / 279.7 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004034/0.01729, allocations: 292.8 kB / 280 MB, free: 9.875 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.637e-05/0.01732, allocations: 15.84 kB / 280 MB, free: 9.859 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.585e-05/0.01736, allocations: 8 kB / 280 MB, free: 9.852 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.571e-05/0.01744, allocations: 0 / 280 MB, free: 9.852 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.467e-05/0.01753, allocations: 23.95 kB / 280 MB, free: 9.828 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-05/0.01754, allocations: 16 kB / 280 MB, free: 9.812 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.713e-05/0.01762, allocations: 95.02 kB / 280.1 MB, free: 9.723 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01762, allocations: 0 / 280.1 MB, free: 9.723 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003076/0.01793, allocations: 47.89 kB / 280.2 MB, free: 9.676 MB / 266.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: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$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 (24): * Single equations (assignments): 20 * 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.0001419/0.01807, allocations: 99.25 kB / 280.3 MB, free: 9.57 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003687/0.01844, allocations: 162.8 kB / 280.4 MB, free: 9.414 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.01844, allocations: 4.438 kB / 280.4 MB, free: 9.41 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001423/0.01859, allocations: 75.84 kB / 280.5 MB, free: 9.336 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003077/0.01889, allocations: 27.92 kB / 280.5 MB, free: 9.309 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007148/0.01961, allocations: 329.5 kB / 280.8 MB, free: 8.961 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001444/0.01975, allocations: 116.2 kB / 281 MB, free: 8.828 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.244e-05/0.01984, allocations: 21.95 kB / 281 MB, free: 8.805 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.898e-05/0.01991, allocations: 28.48 kB / 281 MB, free: 8.777 MB / 266.7 MB Notification: Performance of SimCode: time 5.62e-07/0.01991, allocations: 0 / 281 MB, free: 8.777 MB / 266.7 MB Notification: Performance of Templates: time 0.005535/0.02544, allocations: 1.726 MB / 282.7 MB, free: 7.086 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.297844026936218]