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.0008426/0.0008426, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001468/0.00231, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.000757/0.000757, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001006/0.001763, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 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 0.9048/0.9048, allocations: 158.6 MB / 171.2 MB, free: 2.508 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1423/1.047, allocations: 49.5 MB / 220.7 MB, free: 1.352 MB / 218.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 1.844e-06/1.844e-06, allocations: 0 / 222 MB, free: 84 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.927e-05/2.111e-05, allocations: 5.406 kB / 222 MB, free: 80 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002152/0.002173, allocations: 1.534 MB / 223.5 MB, free: 14.53 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004375/0.00261, allocations: 255.1 kB / 223.8 MB, free: 14.28 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.967e-05/0.00268, allocations: 7.938 kB / 223.8 MB, free: 14.27 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 7.392e-05/0.002754, allocations: 19.73 kB / 223.8 MB, free: 14.25 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 4.441e-05/0.002798, allocations: 15.81 kB / 223.8 MB, free: 14.23 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002901/0.003089, allocations: 119.7 kB / 223.9 MB, free: 14.12 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.00528/0.008369, allocations: 271.5 kB / 224.2 MB, free: 13.85 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001985/0.008567, allocations: 143.4 kB / 224.3 MB, free: 13.71 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.008669, allocations: 127.8 kB / 224.4 MB, free: 13.59 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001034/0.008773, allocations: 67.77 kB / 224.5 MB, free: 13.52 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.887e-05/0.008802, allocations: 24 kB / 224.5 MB, free: 13.5 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.099e-05/0.008883, allocations: 35.98 kB / 224.6 MB, free: 13.46 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.493e-05/0.008928, allocations: 43.86 kB / 224.6 MB, free: 13.42 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.671e-05/0.008974, allocations: 47.88 kB / 224.7 MB, free: 13.37 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001923/0.009167, allocations: 163.4 kB / 224.8 MB, free: 13.21 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.633e-05/0.009183, allocations: 0 / 224.8 MB, free: 13.21 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.009184, allocations: 0 / 224.8 MB, free: 13.21 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.214e-05/0.009196, allocations: 0 / 224.8 MB, free: 13.21 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.0005928/0.009789, allocations: 435.2 kB / 225.2 MB, free: 12.76 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.009826, allocations: 12.03 kB / 225.3 MB, free: 12.75 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.244e-05/0.009888, allocations: 32.92 kB / 225.3 MB, free: 12.71 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002062/0.01009, allocations: 145.6 kB / 225.4 MB, free: 12.55 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.145e-05/0.01013, allocations: 20.88 kB / 225.5 MB, free: 12.53 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.882e-05/0.01016, allocations: 28.38 kB / 225.5 MB, free: 12.5 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002485/0.01041, allocations: 192 kB / 225.7 MB, free: 12.3 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.01043, allocations: 4.125 kB / 225.7 MB, free: 12.29 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.743e-05/0.01044, allocations: 8.375 kB / 225.7 MB, free: 12.29 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.01045, allocations: 8.375 kB / 225.7 MB, free: 12.28 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.991e-05/0.01055, allocations: 63.41 kB / 225.8 MB, free: 12.22 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005379/0.01109, allocations: 484.1 kB / 226.2 MB, free: 11.72 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001575/0.01125, allocations: 118.4 kB / 226.3 MB, free: 11.6 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.221e-05/0.01129, allocations: 40.83 kB / 226.4 MB, free: 11.55 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.343e-05/0.01131, allocations: 8 kB / 226.4 MB, free: 11.55 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001089/0.01141, allocations: 107.2 kB / 226.5 MB, free: 11.43 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 1.492e-06/0.01142, allocations: 0 / 226.5 MB, free: 11.43 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.0001646/0.01158, allocations: 126.2 kB / 226.6 MB, free: 11.3 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.491e-05/0.01162, allocations: 63.34 kB / 226.7 MB, free: 11.23 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.657e-05/0.01169, allocations: 150.5 kB / 226.8 MB, free: 11.07 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.01171, allocations: 37.69 kB / 226.9 MB, free: 11.02 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.421e-05/0.01177, allocations: 128.9 kB / 227 MB, free: 10.89 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.296e-05/0.0118, allocations: 59.5 kB / 227 MB, free: 10.84 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.209e-05/0.01186, allocations: 85.91 kB / 227.1 MB, free: 10.74 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.493e-05/0.01194, allocations: 326.8 kB / 227.4 MB, free: 10.41 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.118e-05/0.01197, allocations: 28.64 kB / 227.5 MB, free: 10.39 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.013e-05/0.01203, allocations: 92.12 kB / 227.6 MB, free: 10.27 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001287/0.01216, allocations: 146.5 kB / 227.7 MB, free: 10.11 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.01216, allocations: 0 / 227.7 MB, free: 10.11 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001368/0.0123, allocations: 165.4 kB / 227.9 MB, free: 9.938 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.01231, allocations: 11.94 kB / 227.9 MB, free: 9.926 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.01232, allocations: 0 / 227.9 MB, free: 9.926 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.01233, allocations: 4 kB / 227.9 MB, free: 9.922 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.01245, allocations: 35.92 kB / 227.9 MB, free: 9.887 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.01246, allocations: 11.92 kB / 227.9 MB, free: 9.875 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.321e-05/0.01251, allocations: 35.77 kB / 228 MB, free: 9.84 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.76e-05/0.01253, allocations: 8.219 kB / 228 MB, free: 9.832 MB / 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.0001169/0.01265, allocations: 141.7 kB / 228.1 MB, free: 9.684 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.551e-05/0.01266, allocations: 15.98 kB / 228.1 MB, free: 9.668 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001381/0.0128, allocations: 118.5 kB / 228.2 MB, free: 9.543 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.0128, allocations: 4 kB / 228.2 MB, free: 9.539 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.01281, allocations: 3.938 kB / 228.3 MB, free: 9.535 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.01281, allocations: 0 / 228.3 MB, free: 9.535 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002904/0.0131, allocations: 346.6 kB / 228.6 MB, free: 9.172 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.0131, allocations: 0 / 228.6 MB, free: 9.172 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.977e-05/0.01315, allocations: 23.92 kB / 228.6 MB, free: 9.148 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.303e-05/0.01316, allocations: 27.77 kB / 228.6 MB, free: 9.121 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.01317, allocations: 0 / 228.6 MB, free: 9.121 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.01318, allocations: 12 kB / 228.7 MB, free: 9.109 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.01318, allocations: 0 / 228.7 MB, free: 9.109 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01318, allocations: 0 / 228.7 MB, free: 9.109 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001134/0.01329, allocations: 215.3 kB / 228.9 MB, free: 8.883 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.396e-05/0.01331, allocations: 4 kB / 228.9 MB, free: 8.879 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.934e-05/0.01334, allocations: 7.984 kB / 228.9 MB, free: 8.871 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.239e-05/0.01339, allocations: 19.97 kB / 228.9 MB, free: 8.852 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.0134, allocations: 7.984 kB / 228.9 MB, free: 8.844 MB / 234.7 MB Notification: Performance of sorting global known variables: time 1.693e-05/0.01341, allocations: 23.23 kB / 228.9 MB, free: 8.82 MB / 234.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01341, allocations: 0 / 228.9 MB, free: 8.82 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001574/0.01357, allocations: 59.81 kB / 229 MB, free: 8.762 MB / 234.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.0001784/0.01375, allocations: 84.41 kB / 229.1 MB, free: 8.672 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0001368/0.01389, allocations: 137.2 kB / 229.2 MB, free: 8.535 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.01389, allocations: 0 / 229.2 MB, free: 8.535 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 6.73e-05/0.01396, allocations: 81.06 kB / 229.3 MB, free: 8.453 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002168/0.01418, allocations: 202.8 kB / 229.5 MB, free: 8.219 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004863/0.01466, allocations: 305.6 kB / 229.8 MB, free: 7.895 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.372e-05/0.01471, allocations: 80.27 kB / 229.9 MB, free: 7.797 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 4.848e-05/0.01475, allocations: 21.95 kB / 229.9 MB, free: 7.773 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.2e-05/0.01484, allocations: 83.36 kB / 230 MB, free: 7.691 MB / 234.7 MB Notification: Performance of SimCode: time 6.61e-07/0.01484, allocations: 0 / 230 MB, free: 7.691 MB / 234.7 MB Notification: Performance of Templates: time 0.003864/0.0187, allocations: 2.13 MB / 232.1 MB, free: 5.582 MB / 234.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.512711538001895]