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.001512/0.001512, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001487/0.001487, allocations: 161.3 kB / 24.99 MB, free: 9.273 MB / 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.074/1.074, allocations: 177.1 MB / 205.3 MB, free: 5.645 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.573e-06/1.573e-06, allocations: 0 / 273 MB, free: 1.891 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.579e-05/2.736e-05, allocations: 2.312 kB / 273 MB, free: 1.887 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002334/0.002362, allocations: 1.528 MB / 274.5 MB, free: 356 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006624/0.003024, allocations: 279.1 kB / 274.8 MB, free: 76 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.911e-05/0.003103, allocations: 4 kB / 274.8 MB, free: 72 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001042/0.003207, allocations: 23.73 kB / 274.8 MB, free: 48 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.839e-05/0.003246, allocations: 23.73 kB / 274.9 MB, free: 24 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003887/0.003634, allocations: 123.8 kB / 275 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002656/0.0039, allocations: 267.4 kB / 275.3 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002211/0.004121, allocations: 138.8 kB / 275.4 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001151/0.004236, allocations: 127.8 kB / 275.5 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001329/0.004369, allocations: 75.75 kB / 275.6 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.142e-05/0.004401, allocations: 20 kB / 275.6 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.584e-05/0.004466, allocations: 24 kB / 275.6 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.045e-05/0.004517, allocations: 63.75 kB / 275.7 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.51e-05/0.004582, allocations: 67.83 kB / 275.8 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000245/0.004827, allocations: 179.3 kB / 275.9 MB, free: 14.96 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.004831, allocations: 0 / 275.9 MB, free: 14.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.004832, allocations: 0 / 275.9 MB, free: 14.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.004837, allocations: 0 / 275.9 MB, free: 14.96 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.000535/0.005372, allocations: 0.5033 MB / 276.4 MB, free: 14.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.005413, allocations: 12.03 kB / 276.4 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002137/0.005626, allocations: 52.78 kB / 276.5 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002126/0.005839, allocations: 168.3 kB / 276.7 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.881e-05/0.005868, allocations: 24.86 kB / 276.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.704e-05/0.005895, allocations: 28.38 kB / 276.7 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002722/0.006167, allocations: 201.7 kB / 276.9 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.006176, allocations: 192 / 276.9 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/0.006193, allocations: 12.38 kB / 276.9 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.006202, allocations: 4.375 kB / 276.9 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000144/0.006346, allocations: 102.8 kB / 277 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007062/0.007052, allocations: 0.6656 MB / 277.7 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002102/0.007263, allocations: 143.3 kB / 277.8 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.909e-05/0.007332, allocations: 59.66 kB / 277.9 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.758e-05/0.007349, allocations: 4 kB / 277.9 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001284/0.007478, allocations: 107.5 kB / 278 MB, free: 12.74 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.733e-06/0.007479, allocations: 0 / 278 MB, free: 12.74 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003049/0.007784, allocations: 189.3 kB / 278.2 MB, free: 12.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/0.007824, allocations: 59.41 kB / 278.2 MB, free: 12.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.00794, allocations: 205.8 kB / 278.4 MB, free: 12.26 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.007962, allocations: 37.7 kB / 278.5 MB, free: 12.21 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.815e-05/0.00804, allocations: 179.5 kB / 278.7 MB, free: 12.03 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.796e-05/0.008078, allocations: 67.48 kB / 278.7 MB, free: 11.96 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.844e-05/0.008156, allocations: 79.61 kB / 278.8 MB, free: 11.88 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.008287, allocations: 0.5001 MB / 279.3 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.927e-05/0.008356, allocations: 40.62 kB / 279.3 MB, free: 11.32 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001003/0.008456, allocations: 130.7 kB / 279.5 MB, free: 11.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001754/0.008632, allocations: 161.3 kB / 279.6 MB, free: 10.97 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.008635, allocations: 0 / 279.6 MB, free: 10.97 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002402/0.008875, allocations: 225.3 kB / 279.8 MB, free: 10.75 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.008892, allocations: 8 kB / 279.9 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.008897, allocations: 0 / 279.9 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.008912, allocations: 7.938 kB / 279.9 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.941e-05/0.009011, allocations: 27.92 kB / 279.9 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.009021, allocations: 7.938 kB / 279.9 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.096e-05/0.009082, allocations: 28.05 kB / 279.9 MB, free: 10.67 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.009096, allocations: 20 kB / 279.9 MB, free: 10.65 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.0001021/0.009198, allocations: 188.4 kB / 280.1 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.107e-05/0.009219, allocations: 23.91 kB / 280.2 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.578e-05/0.009255, allocations: 16.92 kB / 280.2 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.00926, allocations: 7.938 kB / 280.2 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.009265, allocations: 0 / 280.2 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.009269, allocations: 0 / 280.2 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004582/0.009727, allocations: 0.4895 MB / 280.7 MB, free: 9.875 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.009729, allocations: 0 / 280.7 MB, free: 9.875 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.734e-05/0.009777, allocations: 23.98 kB / 280.7 MB, free: 9.852 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.009779, allocations: 4 kB / 280.7 MB, free: 9.848 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.009789, allocations: 0 / 280.7 MB, free: 9.848 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.009791, allocations: 0 / 280.7 MB, free: 9.848 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.009793, allocations: 7.938 kB / 280.7 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000211/0.01, allocations: 312.2 kB / 281 MB, free: 9.516 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.433e-05/0.01002, allocations: 15.84 kB / 281 MB, free: 9.5 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.247e-05/0.01004, allocations: 8 kB / 281 MB, free: 9.492 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.96e-05/0.01009, allocations: 11.98 kB / 281 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.743e-05/0.01015, allocations: 15.83 kB / 281.1 MB, free: 9.465 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.01016, allocations: 16 kB / 281.1 MB, free: 9.449 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.515e-05/0.0102, allocations: 134.9 kB / 281.2 MB, free: 9.32 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.0102, allocations: 0 / 281.2 MB, free: 9.32 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002001/0.0104, allocations: 47.89 kB / 281.3 MB, free: 9.273 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 9.794e-05/0.0105, allocations: 107.1 kB / 281.4 MB, free: 9.16 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002151/0.01072, allocations: 147.5 kB / 281.5 MB, free: 9.012 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.01072, allocations: 0 / 281.5 MB, free: 9.012 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.991e-05/0.0108, allocations: 70.47 kB / 281.6 MB, free: 8.941 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002119/0.01101, allocations: 35.92 kB / 281.6 MB, free: 8.906 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004846/0.0115, allocations: 319.1 kB / 281.9 MB, free: 8.566 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.897e-05/0.01155, allocations: 79.98 kB / 282 MB, free: 8.469 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.688e-05/0.01161, allocations: 17.95 kB / 282 MB, free: 8.449 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.951e-05/0.01166, allocations: 20.5 kB / 282 MB, free: 8.43 MB / 266.7 MB Notification: Performance of SimCode: time 1.463e-06/0.01166, allocations: 0 / 282 MB, free: 8.43 MB / 266.7 MB Notification: Performance of Templates: time 0.004236/0.0159, allocations: 1.735 MB / 283.8 MB, free: 6.73 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: 2.9412433409597725]