Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009878/0.0009878, allocations: 81.91 kB / 21.43 MB, free: 3.062 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001077/0.001077, allocations: 162.7 kB / 24.82 MB, free: 9.262 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.077/1.077, allocations: 177 MB / 205.1 MB, free: 5.445 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 273.3 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.241e-05/2.41e-05, allocations: 2.312 kB / 273.3 MB, free: 1.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002195/0.002219, allocations: 1.509 MB / 274.8 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007233/0.002943, allocations: 287.1 kB / 275.1 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.34e-05/0.003036, allocations: 3.938 kB / 275.1 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001196/0.003156, allocations: 23.73 kB / 275.1 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 3.914e-05/0.003195, allocations: 23.8 kB / 275.1 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003624/0.003557, allocations: 119.7 kB / 275.2 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002542/0.003811, allocations: 271.4 kB / 275.5 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002521/0.004063, allocations: 138.8 kB / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001234/0.004187, allocations: 127.8 kB / 275.8 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001053/0.004292, allocations: 71.77 kB / 275.8 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.567e-05/0.004318, allocations: 20 kB / 275.9 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.217e-05/0.00437, allocations: 24 kB / 275.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.993e-05/0.00442, allocations: 63.8 kB / 275.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.252e-05/0.004482, allocations: 63.83 kB / 276 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002051/0.004688, allocations: 183.2 kB / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.00469, allocations: 0 / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.004691, allocations: 0 / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.489e-06/0.004695, allocations: 0 / 276.2 MB, free: 14.31 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.0004702/0.005165, allocations: 0.5032 MB / 276.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.005205, allocations: 19.97 kB / 276.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001524/0.005358, allocations: 44.8 kB / 276.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001799/0.005538, allocations: 168.4 kB / 276.9 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.769e-05/0.005565, allocations: 24.86 kB / 276.9 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.169e-05/0.005587, allocations: 24.38 kB / 277 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002268/0.005814, allocations: 193.6 kB / 277.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.005827, allocations: 192 / 277.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.005843, allocations: 12.38 kB / 277.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.005851, allocations: 4.375 kB / 277.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.438e-05/0.005935, allocations: 75.36 kB / 277.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007046/0.00664, allocations: 0.6427 MB / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001627/0.006802, allocations: 130.1 kB / 278 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.407e-05/0.006846, allocations: 55.53 kB / 278.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.933e-05/0.006866, allocations: 4 kB / 278.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001053/0.006971, allocations: 97 kB / 278.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.006973, allocations: 0 / 278.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002217/0.007194, allocations: 166.8 kB / 278.3 MB, free: 12.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.368e-05/0.007228, allocations: 63.28 kB / 278.4 MB, free: 11.95 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.007334, allocations: 209.5 kB / 278.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.007353, allocations: 41.7 kB / 278.6 MB, free: 11.68 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.007457, allocations: 183.5 kB / 278.8 MB, free: 11.5 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.28e-05/0.0075, allocations: 67.45 kB / 278.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.733e-05/0.007577, allocations: 83.56 kB / 279 MB, free: 11.34 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.007693, allocations: 0.4962 MB / 279.5 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.034e-05/0.007733, allocations: 32.62 kB / 279.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.647e-05/0.00781, allocations: 126.7 kB / 279.6 MB, free: 10.64 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001257/0.007935, allocations: 153.3 kB / 279.8 MB, free: 10.46 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.007938, allocations: 0 / 279.8 MB, free: 10.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001844/0.008122, allocations: 197.3 kB / 280 MB, free: 10.26 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.008135, allocations: 8 kB / 280 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.008141, allocations: 0 / 280 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.008155, allocations: 4 kB / 280 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.019e-05/0.008245, allocations: 39.86 kB / 280 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.00825, allocations: 4.219 kB / 280 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.527e-05/0.008305, allocations: 35.83 kB / 280.1 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.102e-05/0.008316, allocations: 4 kB / 280.1 MB, free: 10.16 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,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.0001065/0.008422, allocations: 188.5 kB / 280.2 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.158e-05/0.008444, allocations: 23.91 kB / 280.3 MB, free: 9.945 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.388e-05/0.008478, allocations: 16.92 kB / 280.3 MB, free: 9.926 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.008481, allocations: 4 kB / 280.3 MB, free: 9.922 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.008485, allocations: 7.875 kB / 280.3 MB, free: 9.914 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.008488, allocations: 0 / 280.3 MB, free: 9.914 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004018/0.00889, allocations: 462.8 kB / 280.7 MB, free: 9.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.008893, allocations: 3.984 kB / 280.7 MB, free: 9.426 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.856e-05/0.008932, allocations: 15.98 kB / 280.8 MB, free: 9.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.129e-06/0.008937, allocations: 7.938 kB / 280.8 MB, free: 9.402 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-06/0.008945, allocations: 4 kB / 280.8 MB, free: 9.398 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.008947, allocations: 0 / 280.8 MB, free: 9.398 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.008949, allocations: 0 / 280.8 MB, free: 9.398 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001766/0.009125, allocations: 305.1 kB / 281.1 MB, free: 9.082 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.228e-05/0.009138, allocations: 11.91 kB / 281.1 MB, free: 9.07 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.686e-05/0.009154, allocations: 11.94 kB / 281.1 MB, free: 9.059 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.402e-05/0.009199, allocations: 11.98 kB / 281.1 MB, free: 9.047 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.737e-05/0.009246, allocations: 23.83 kB / 281.1 MB, free: 9.023 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.009257, allocations: 4 kB / 281.1 MB, free: 9.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.574e-05/0.009302, allocations: 131.2 kB / 281.3 MB, free: 8.891 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009303, allocations: 4 kB / 281.3 MB, free: 8.887 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001906/0.009493, allocations: 43.89 kB / 281.3 MB, free: 8.844 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 8.817e-05/0.009581, allocations: 111.1 kB / 281.4 MB, free: 8.727 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001604/0.009742, allocations: 127.5 kB / 281.5 MB, free: 8.598 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.009744, allocations: 448 / 281.5 MB, free: 8.598 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.245e-05/0.009806, allocations: 71.58 kB / 281.6 MB, free: 8.523 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000193/0.009999, allocations: 23.98 kB / 281.6 MB, free: 8.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003705/0.01037, allocations: 307.1 kB / 281.9 MB, free: 8.172 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.24e-05/0.01041, allocations: 75.98 kB / 282 MB, free: 8.078 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.128e-05/0.01046, allocations: 21.94 kB / 282 MB, free: 8.055 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.485e-05/0.01055, allocations: 110.2 kB / 282.1 MB, free: 7.945 MB / 266.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01055, allocations: 0 / 282.1 MB, free: 7.945 MB / 266.7 MB Notification: Performance of Templates: time 0.003699/0.01425, allocations: 1.864 MB / 284 MB, free: 6.109 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",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.78154425509274]