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.000983/0.000983, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001101/0.001101, allocations: 174.3 kB / 24.92 MB, free: 8.773 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.048/1.048, allocations: 177.1 MB / 205.3 MB, free: 5.055 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.312e-06/1.312e-06, allocations: 0 / 273.4 MB, free: 1.184 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.275e-05/2.406e-05, allocations: 2.312 kB / 273.4 MB, free: 1.18 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001911/0.001936, allocations: 1.515 MB / 274.9 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004568/0.002392, allocations: 295 kB / 275.2 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.582e-05/0.002458, allocations: 4 kB / 275.2 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000107/0.002565, allocations: 23.73 kB / 275.2 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 3.518e-05/0.0026, allocations: 19.8 kB / 275.3 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002938/0.002894, allocations: 123.7 kB / 275.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00021/0.003104, allocations: 263.4 kB / 275.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/0.003275, allocations: 147.5 kB / 275.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001/0.003375, allocations: 131.8 kB / 275.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.206e-05/0.003467, allocations: 67.77 kB / 276 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.442e-05/0.003491, allocations: 24 kB / 276 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.787e-05/0.003539, allocations: 24 kB / 276 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.6e-05/0.003585, allocations: 63.8 kB / 276.1 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.867e-05/0.003634, allocations: 63.83 kB / 276.2 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001726/0.003806, allocations: 179.2 kB / 276.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.003808, allocations: 0 / 276.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.003809, allocations: 0 / 276.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.126e-06/0.003812, allocations: 0 / 276.3 MB, free: 14.25 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.0003789/0.004191, allocations: 395.6 kB / 276.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.773e-05/0.004219, allocations: 8.031 kB / 276.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001539/0.004373, allocations: 48.89 kB / 276.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001427/0.004516, allocations: 149.5 kB / 276.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.004539, allocations: 24.88 kB / 276.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.295e-05/0.004561, allocations: 24.38 kB / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001707/0.004732, allocations: 192 kB / 277.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.00474, allocations: 192 / 277.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.004751, allocations: 4.375 kB / 277.2 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.004758, allocations: 8.375 kB / 277.2 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.618e-05/0.004834, allocations: 71.33 kB / 277.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004639/0.005298, allocations: 472.2 kB / 277.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001276/0.005425, allocations: 106.5 kB / 277.8 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.744e-05/0.005463, allocations: 44.03 kB / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.326e-05/0.005476, allocations: 4 kB / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.363e-05/0.00556, allocations: 95.27 kB / 277.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.192e-06/0.005561, allocations: 0 / 277.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0001474/0.005708, allocations: 128.1 kB / 278.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.005738, allocations: 59.34 kB / 278.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.958e-05/0.005807, allocations: 162.4 kB / 278.3 MB, free: 12.16 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.751e-05/0.005825, allocations: 33.7 kB / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.628e-05/0.005881, allocations: 132.9 kB / 278.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.606e-05/0.005947, allocations: 67.45 kB / 278.5 MB, free: 11.92 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.534e-05/0.006012, allocations: 77.89 kB / 278.6 MB, free: 11.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.569e-05/0.006088, allocations: 330.7 kB / 278.9 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.773e-05/0.006126, allocations: 28.64 kB / 278.9 MB, free: 11.48 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.183e-05/0.006188, allocations: 96.06 kB / 279 MB, free: 11.36 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001017/0.006289, allocations: 134.7 kB / 279.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.006292, allocations: 0 / 279.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001507/0.006442, allocations: 165.4 kB / 279.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.558e-06/0.006452, allocations: 4 kB / 279.3 MB, free: 11.03 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.006457, allocations: 8.219 kB / 279.3 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.006468, allocations: 8 kB / 279.3 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.965e-05/0.006548, allocations: 27.92 kB / 279.4 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.006553, allocations: 7.938 kB / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.17e-05/0.006604, allocations: 31.83 kB / 279.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.819e-06/0.006614, allocations: 8 kB / 279.4 MB, free: 10.94 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 7.132e-05/0.006686, allocations: 137.7 kB / 279.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.667e-05/0.006702, allocations: 19.98 kB / 279.6 MB, free: 10.78 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.525e-05/0.006728, allocations: 12.94 kB / 279.6 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.00673, allocations: 4 kB / 279.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.006732, allocations: 7.938 kB / 279.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.006737, allocations: 7.969 kB / 279.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002946/0.007032, allocations: 337.6 kB / 279.9 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.007033, allocations: 0 / 279.9 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.887e-05/0.007072, allocations: 19.92 kB / 279.9 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.007074, allocations: 0 / 279.9 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.664e-06/0.007081, allocations: 7.938 kB / 280 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.007083, allocations: 4 kB / 280 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.007084, allocations: 0 / 280 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001103/0.007195, allocations: 200 kB / 280.2 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.668e-06/0.007204, allocations: 23.89 kB / 280.2 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.275e-05/0.007217, allocations: 3.938 kB / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.951e-05/0.007257, allocations: 8 kB / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.007302, allocations: 27.89 kB / 280.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.977e-06/0.007311, allocations: 4 kB / 280.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.603e-05/0.007327, allocations: 20.47 kB / 280.2 MB, free: 10.07 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007327, allocations: 0 / 280.2 MB, free: 10.07 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001498/0.007477, allocations: 47.89 kB / 280.3 MB, free: 10.02 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 6.715e-05/0.007544, allocations: 88.36 kB / 280.4 MB, free: 9.926 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001259/0.00767, allocations: 120.7 kB / 280.5 MB, free: 9.805 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.007672, allocations: 0 / 280.5 MB, free: 9.805 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.681e-05/0.007729, allocations: 71.53 kB / 280.6 MB, free: 9.734 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000132/0.007861, allocations: 19.98 kB / 280.6 MB, free: 9.715 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003121/0.008173, allocations: 313.3 kB / 280.9 MB, free: 9.383 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.011e-05/0.008213, allocations: 75.98 kB / 281 MB, free: 9.289 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.644e-05/0.00826, allocations: 22.39 kB / 281 MB, free: 9.266 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.159e-05/0.008331, allocations: 79.36 kB / 281.1 MB, free: 9.188 MB / 266.7 MB Notification: Performance of SimCode: time 6.01e-07/0.008332, allocations: 0 / 281.1 MB, free: 9.188 MB / 266.7 MB Notification: Performance of Templates: time 0.003152/0.01148, allocations: 1.829 MB / 282.9 MB, free: 7.391 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.653409456834197]