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.001158/0.001158, allocations: 79.69 kB / 21.7 MB, free: 2.852 MB / 18.57 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.00112/0.00112, allocations: 163.8 kB / 24.99 MB, free: 9.324 MB / 18.57 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.011/1.011, allocations: 177 MB / 205.2 MB, free: 5.219 MB / 186.7 MB " [Timeout remaining time 179] 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 2.384e-06/2.384e-06, allocations: 0 / 272.9 MB, free: 1.629 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.067e-05/3.305e-05, allocations: 3.719 kB / 273 MB, free: 1.625 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002476/0.00251, allocations: 1.532 MB / 274.5 MB, free: 80 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000573/0.003083, allocations: 279.1 kB / 274.8 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.413e-05/0.003177, allocations: 7.938 kB / 274.8 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001219/0.003299, allocations: 23.73 kB / 274.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 3.551e-05/0.003334, allocations: 15.81 kB / 274.8 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003574/0.003691, allocations: 115.8 kB / 274.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002474/0.003939, allocations: 275.4 kB / 275.2 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002147/0.004153, allocations: 146.8 kB / 275.3 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000109/0.004263, allocations: 123.8 kB / 275.5 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001135/0.004376, allocations: 67.83 kB / 275.5 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.503e-05/0.004401, allocations: 24 kB / 275.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.385e-05/0.004455, allocations: 27.94 kB / 275.6 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001141/0.004569, allocations: 55.86 kB / 275.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.098e-05/0.00463, allocations: 63.83 kB / 275.7 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002077/0.004838, allocations: 179.3 kB / 275.9 MB, free: 14.7 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.004841, allocations: 0 / 275.9 MB, free: 14.7 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.004843, allocations: 4 kB / 275.9 MB, free: 14.7 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.004848, allocations: 0 / 275.9 MB, free: 14.7 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.0004973/0.005345, allocations: 0.5033 MB / 276.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.005382, allocations: 15.92 kB / 276.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001692/0.005551, allocations: 48.78 kB / 276.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001936/0.005745, allocations: 168.4 kB / 276.6 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.69e-05/0.005782, allocations: 28.86 kB / 276.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.358e-05/0.005805, allocations: 24.38 kB / 276.6 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002556/0.006061, allocations: 205.7 kB / 276.8 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.00607, allocations: 192 / 276.8 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.006086, allocations: 12.31 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.006098, allocations: 8.375 kB / 276.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001441/0.006243, allocations: 94.86 kB / 277 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007665/0.007009, allocations: 0.6618 MB / 277.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001949/0.007204, allocations: 142.1 kB / 277.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.575e-05/0.00727, allocations: 63.66 kB / 277.8 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.447e-05/0.007284, allocations: 4 kB / 277.8 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001184/0.007403, allocations: 105 kB / 277.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.312e-06/0.007404, allocations: 0 / 277.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002763/0.00768, allocations: 186.8 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.007719, allocations: 59.34 kB / 278.2 MB, free: 12.22 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.00782, allocations: 209.8 kB / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.007838, allocations: 33.7 kB / 278.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.174e-05/0.00791, allocations: 183.5 kB / 278.6 MB, free: 11.77 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.516e-05/0.007945, allocations: 63.48 kB / 278.6 MB, free: 11.71 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.006e-05/0.008015, allocations: 79.67 kB / 278.7 MB, free: 11.62 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.008122, allocations: 0.5001 MB / 279.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.924e-05/0.008181, allocations: 40.62 kB / 279.3 MB, free: 11.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.833e-05/0.008279, allocations: 134.6 kB / 279.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001441/0.008423, allocations: 157.4 kB / 279.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.008426, allocations: 4 kB / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000216/0.008642, allocations: 217.3 kB / 279.8 MB, free: 10.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.008656, allocations: 8 kB / 279.8 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.008661, allocations: 0 / 279.8 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.008676, allocations: 7.938 kB / 279.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.935e-05/0.008765, allocations: 39.86 kB / 279.8 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.008771, allocations: 0 / 279.8 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.482e-05/0.008826, allocations: 32.05 kB / 279.9 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.008839, allocations: 20 kB / 279.9 MB, free: 10.39 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.048e-05/0.00893, allocations: 180.5 kB / 280 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.896e-05/0.008949, allocations: 23.91 kB / 280.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.186e-05/0.008981, allocations: 20.92 kB / 280.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.008984, allocations: 7.938 kB / 280.1 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.008988, allocations: 0 / 280.1 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.008991, allocations: 0 / 280.1 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004021/0.009394, allocations: 0.4902 MB / 280.6 MB, free: 9.617 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.009395, allocations: 0 / 280.6 MB, free: 9.617 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-05/0.009435, allocations: 23.92 kB / 280.6 MB, free: 9.594 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.009436, allocations: 0 / 280.6 MB, free: 9.594 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-06/0.009446, allocations: 4 kB / 280.6 MB, free: 9.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.083e-06/0.009448, allocations: 4 kB / 280.6 MB, free: 9.586 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.009449, allocations: 0 / 280.6 MB, free: 9.586 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004437/0.009893, allocations: 317.1 kB / 280.9 MB, free: 9.258 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.334e-05/0.009906, allocations: 19.83 kB / 281 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.732e-05/0.009924, allocations: 4 kB / 281 MB, free: 9.234 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.402e-05/0.009968, allocations: 11.98 kB / 281 MB, free: 9.223 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.251e-05/0.01002, allocations: 27.77 kB / 281 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.683e-06/0.01003, allocations: 8 kB / 281 MB, free: 9.188 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.277e-05/0.01007, allocations: 138.9 kB / 281.1 MB, free: 9.055 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01007, allocations: 3.938 kB / 281.1 MB, free: 9.051 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001851/0.01025, allocations: 47.89 kB / 281.2 MB, free: 9.004 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 7.819e-05/0.01033, allocations: 99.23 kB / 281.3 MB, free: 8.898 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001977/0.01053, allocations: 151.5 kB / 281.4 MB, free: 8.746 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.01053, allocations: 0 / 281.4 MB, free: 8.746 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.022e-05/0.01061, allocations: 68.03 kB / 281.5 MB, free: 8.676 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002025/0.01081, allocations: 35.86 kB / 281.5 MB, free: 8.641 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003967/0.01121, allocations: 315.1 kB / 281.8 MB, free: 8.305 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.686e-05/0.01126, allocations: 79.98 kB / 281.9 MB, free: 8.207 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.829e-05/0.01131, allocations: 17.95 kB / 281.9 MB, free: 8.188 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.137e-05/0.01135, allocations: 20.5 kB / 282 MB, free: 8.168 MB / 266.7 MB Notification: Performance of SimCode: time 6.32e-07/0.01135, allocations: 4 kB / 282 MB, free: 8.164 MB / 266.7 MB Notification: Performance of Templates: time 0.003268/0.01462, allocations: 1.712 MB / 283.7 MB, free: 6.469 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] 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","",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.9853666259441525]