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.001441/0.001441, allocations: 87.58 kB / 21.19 MB, free: 3.371 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.002149/0.002149, allocations: 165 kB / 24.56 MB, free: 4 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.095/1.095, allocations: 177.1 MB / 205 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 179] 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.082e-06/1.082e-06, allocations: 0 / 272.9 MB, free: 1.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.872e-05/1.98e-05, allocations: 2.312 kB / 272.9 MB, free: 1.566 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002039/0.002059, allocations: 1.536 MB / 274.5 MB, free: 24 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006185/0.002677, allocations: 283.1 kB / 274.8 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.475e-05/0.002762, allocations: 7.938 kB / 274.8 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.002899, allocations: 23.73 kB / 274.8 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.065e-05/0.00294, allocations: 15.81 kB / 274.8 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004235/0.003363, allocations: 123.7 kB / 274.9 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002446/0.003608, allocations: 267.4 kB / 275.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002184/0.003826, allocations: 138.8 kB / 275.3 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001138/0.00394, allocations: 131.8 kB / 275.4 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001089/0.004049, allocations: 71.77 kB / 275.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.936e-05/0.004078, allocations: 24 kB / 275.5 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.674e-05/0.004135, allocations: 24 kB / 275.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.368e-05/0.004189, allocations: 59.81 kB / 275.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.336e-05/0.004252, allocations: 67.81 kB / 275.7 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002324/0.004485, allocations: 179.2 kB / 275.9 MB, free: 14.63 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.454e-06/0.004487, allocations: 0 / 275.9 MB, free: 14.63 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.004488, allocations: 0 / 275.9 MB, free: 14.63 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.004493, allocations: 0 / 275.9 MB, free: 14.63 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.0005104/0.005003, allocations: 0.5072 MB / 276.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.005041, allocations: 8.031 kB / 276.4 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000198/0.005239, allocations: 52.78 kB / 276.4 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002164/0.005455, allocations: 168.3 kB / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.009e-05/0.005485, allocations: 24.81 kB / 276.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.805e-05/0.005533, allocations: 24.38 kB / 276.6 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002747/0.005808, allocations: 209.7 kB / 276.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.005821, allocations: 192 / 276.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.786e-05/0.005839, allocations: 8.375 kB / 276.9 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.005849, allocations: 4.375 kB / 276.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001417/0.005991, allocations: 102.8 kB / 277 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007135/0.006704, allocations: 0.6656 MB / 277.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001944/0.006899, allocations: 139.3 kB / 277.8 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.609e-05/0.006965, allocations: 55.67 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.348e-05/0.006988, allocations: 4 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001261/0.007114, allocations: 105.8 kB / 277.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.007116, allocations: 0 / 277.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.000344/0.00746, allocations: 196.5 kB / 278.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.5e-05/0.007495, allocations: 59.41 kB / 278.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.818e-05/0.007593, allocations: 209.8 kB / 278.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.007613, allocations: 37.7 kB / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.32e-05/0.007686, allocations: 175.5 kB / 278.6 MB, free: 11.71 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.69e-05/0.007723, allocations: 67.47 kB / 278.7 MB, free: 11.64 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.389e-05/0.007797, allocations: 83.66 kB / 278.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.007904, allocations: 0.4962 MB / 279.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.749e-05/0.007962, allocations: 40.62 kB / 279.3 MB, free: 11 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.266e-05/0.008054, allocations: 126.7 kB / 279.4 MB, free: 10.85 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000155/0.008209, allocations: 169.3 kB / 279.6 MB, free: 10.65 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.008212, allocations: 0 / 279.6 MB, free: 10.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000349/0.008561, allocations: 221.3 kB / 279.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.008575, allocations: 4 kB / 279.8 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.008581, allocations: 8.156 kB / 279.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.008599, allocations: 11.94 kB / 279.8 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.374e-05/0.008692, allocations: 27.92 kB / 279.8 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.0087, allocations: 4 kB / 279.8 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.675e-05/0.008757, allocations: 27.83 kB / 279.9 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.008769, allocations: 12 kB / 279.9 MB, free: 10.33 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 9.916e-05/0.008869, allocations: 196.4 kB / 280.1 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.923e-05/0.008888, allocations: 19.91 kB / 280.1 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.621e-05/0.008924, allocations: 16.94 kB / 280.1 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.008928, allocations: 7.938 kB / 280.1 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.008933, allocations: 4 kB / 280.1 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.008938, allocations: 3.984 kB / 280.1 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004391/0.009377, allocations: 0.4895 MB / 280.6 MB, free: 9.543 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.009379, allocations: 0 / 280.6 MB, free: 9.543 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.004e-05/0.009419, allocations: 19.98 kB / 280.6 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.009422, allocations: 4 kB / 280.6 MB, free: 9.52 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.009433, allocations: 0 / 280.6 MB, free: 9.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.009434, allocations: 0 / 280.6 MB, free: 9.52 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.009435, allocations: 0 / 280.6 MB, free: 9.52 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002022/0.009637, allocations: 322.4 kB / 280.9 MB, free: 9.188 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.228e-05/0.009649, allocations: 15.91 kB / 281 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.76e-05/0.009667, allocations: 4 kB / 281 MB, free: 9.168 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.125e-05/0.009708, allocations: 4 kB / 281 MB, free: 9.164 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.242e-05/0.009771, allocations: 27.81 kB / 281 MB, free: 9.137 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.254e-06/0.009778, allocations: 4 kB / 281 MB, free: 9.133 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.443e-05/0.009822, allocations: 139.2 kB / 281.1 MB, free: 8.996 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009822, allocations: 0 / 281.1 MB, free: 8.996 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001899/0.01001, allocations: 47.89 kB / 281.2 MB, free: 8.949 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.664e-05/0.0101, allocations: 103.2 kB / 281.3 MB, free: 8.84 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002022/0.0103, allocations: 143.5 kB / 281.4 MB, free: 8.695 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.0103, allocations: 4 kB / 281.4 MB, free: 8.691 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.726e-05/0.01038, allocations: 70.44 kB / 281.5 MB, free: 8.621 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002023/0.01058, allocations: 31.92 kB / 281.5 MB, free: 8.59 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003921/0.01097, allocations: 315.1 kB / 281.8 MB, free: 8.254 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.722e-05/0.01102, allocations: 75.98 kB / 281.9 MB, free: 8.16 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.546e-05/0.01108, allocations: 26.38 kB / 281.9 MB, free: 8.133 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.404e-05/0.01112, allocations: 28.44 kB / 282 MB, free: 8.105 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01112, allocations: 0 / 282 MB, free: 8.105 MB / 266.7 MB Notification: Performance of Templates: time 0.004011/0.01513, allocations: 1.725 MB / 283.7 MB, free: 6.41 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0785122769884765]