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.001866/0.001866, allocations: 83.16 kB / 20.68 MB, free: 1.035 MB / 14.72 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.002258/0.002258, allocations: 157.4 kB / 23.95 MB, free: 4.168 MB / 14.72 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.503/1.503, allocations: 177 MB / 204.1 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] 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.202e-06/1.202e-06, allocations: 0 / 325 MB, free: 500 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.104e-05/2.224e-05, allocations: 3.625 kB / 325 MB, free: 496 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002504/0.002526, allocations: 1.469 MB / 326.5 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007638/0.00329, allocations: 289.1 kB / 326.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.708e-05/0.003387, allocations: 7.094 kB / 326.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001482/0.003535, allocations: 26.06 kB / 326.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.533e-05/0.00359, allocations: 17.72 kB / 326.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004688/0.004059, allocations: 118.7 kB / 326.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000412/0.004471, allocations: 265.5 kB / 327.2 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003189/0.00479, allocations: 142.6 kB / 327.3 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002079/0.004998, allocations: 127.7 kB / 327.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001681/0.005166, allocations: 72.25 kB / 327.5 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.46e-05/0.005211, allocations: 22.44 kB / 327.5 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.008e-05/0.005281, allocations: 23.56 kB / 327.5 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.655e-05/0.005367, allocations: 59.77 kB / 327.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.005482, allocations: 65.05 kB / 327.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004167/0.005899, allocations: 246.7 kB / 327.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.005901, allocations: 1.125 kB / 327.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.005902, allocations: 3.938 kB / 327.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.005907, allocations: 4 kB / 327.9 MB, free: 14.71 MB / 302.1 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.0007824/0.00669, allocations: 407.7 kB / 328.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.006732, allocations: 14.14 kB / 328.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002349/0.006967, allocations: 26.47 kB / 328.3 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.007286, allocations: 172.4 kB / 328.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.943e-05/0.007326, allocations: 23.89 kB / 328.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.306e-05/0.007369, allocations: 25.61 kB / 328.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004656/0.007834, allocations: 235.2 kB / 328.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.007848, allocations: 192 / 328.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.231e-05/0.00788, allocations: 15.3 kB / 328.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.007893, allocations: 9.75 kB / 328.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003192/0.008212, allocations: 164.2 kB / 329 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001015/0.009227, allocations: 0.5658 MB / 329.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003331/0.00956, allocations: 155.7 kB / 329.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/0.009685, allocations: 68.41 kB / 329.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.009711, allocations: 2.719 kB / 329.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000232/0.009943, allocations: 121.7 kB / 329.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.009944, allocations: 0 / 329.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005485/0.01049, allocations: 226.5 kB / 330.1 MB, free: 13.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.602e-05/0.01056, allocations: 60.97 kB / 330.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.01072, allocations: 144.1 kB / 330.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.078e-05/0.01076, allocations: 35.44 kB / 330.3 MB, free: 13.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.01089, allocations: 134.9 kB / 330.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.824e-05/0.01097, allocations: 64.47 kB / 330.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.01109, allocations: 76.16 kB / 330.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.01128, allocations: 328.6 kB / 330.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001346/0.01141, allocations: 62.06 kB / 331 MB, free: 12.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001766/0.01159, allocations: 125.9 kB / 331.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002664/0.01186, allocations: 175.6 kB / 331.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.01186, allocations: 0.9062 kB / 331.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003813/0.01224, allocations: 247.3 kB / 331.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.01226, allocations: 5.906 kB / 331.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.01226, allocations: 1.094 kB / 331.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.01228, allocations: 7.281 kB / 331.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.01242, allocations: 31.42 kB / 331.6 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.01243, allocations: 3.219 kB / 331.6 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.01253, allocations: 24.75 kB / 331.6 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.01255, allocations: 16.09 kB / 331.6 MB, free: 12.05 MB / 302.1 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.0001773/0.01273, allocations: 159.5 kB / 331.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.418e-05/0.01276, allocations: 17.56 kB / 331.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.145e-05/0.01281, allocations: 22.23 kB / 331.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.01281, allocations: 11.66 kB / 331.8 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.01282, allocations: 0 / 331.8 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.01282, allocations: 0 / 331.8 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006804/0.0135, allocations: 463.8 kB / 332.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.0135, allocations: 0 / 332.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.55e-05/0.01358, allocations: 16.33 kB / 332.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.01358, allocations: 5.312 kB / 332.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.0136, allocations: 5.312 kB / 332.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.0136, allocations: 5.188 kB / 332.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.0136, allocations: 0 / 332.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003452/0.01395, allocations: 280.4 kB / 332.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.928e-05/0.01397, allocations: 12.56 kB / 332.6 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.668e-05/0.01399, allocations: 6.375 kB / 332.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.325e-05/0.01409, allocations: 15.3 kB / 332.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.253e-05/0.01417, allocations: 20.38 kB / 332.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.01418, allocations: 4.594 kB / 332.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.165e-05/0.01425, allocations: 96.86 kB / 332.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.01425, allocations: 3.938 kB / 332.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002946/0.01455, allocations: 47.92 kB / 332.8 MB, free: 11.15 MB / 302.1 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 0.0001275/0.01468, allocations: 109 kB / 332.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003379/0.01501, allocations: 161.6 kB / 333 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.01502, allocations: 0 / 333 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.01515, allocations: 74.69 kB / 333.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000306/0.01546, allocations: 24.98 kB / 333.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007211/0.01618, allocations: 316 kB / 333.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001509/0.01633, allocations: 123.5 kB / 333.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.206e-05/0.0164, allocations: 17.92 kB / 333.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.626e-05/0.01649, allocations: 28.48 kB / 333.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.01649, allocations: 0 / 333.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of Templates: time 0.005466/0.02196, allocations: 1.711 MB / 335.3 MB, free: 9.711 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.388025142252445]