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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00139/0.00139, allocations: 113 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001611/0.001611, allocations: 212.9 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 55.91 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.2954, allocations: 50.54 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002825/0.2983, allocations: 1.505 MB / 411.4 MB, free: 96 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007694/0.2991, allocations: 271.2 kB / 411.7 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001657/0.2992, allocations: 4 kB / 411.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001622/0.2994, allocations: 23.69 kB / 411.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.16e-05/0.2995, allocations: 19.8 kB / 411.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004688/0.3, allocations: 111.8 kB / 411.8 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003553/0.3004, allocations: 259.5 kB / 412.1 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003647/0.3007, allocations: 166.3 kB / 412.2 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001299/0.3009, allocations: 87.75 kB / 412.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.3011, allocations: 95.55 kB / 412.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.407e-05/0.3011, allocations: 23.94 kB / 412.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.178e-05/0.3012, allocations: 28 kB / 412.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.467e-05/0.3013, allocations: 55.83 kB / 412.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.3014, allocations: 95.52 kB / 412.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003325/0.3017, allocations: 247.1 kB / 412.9 MB, free: 14.63 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3018, allocations: 0 / 412.9 MB, free: 14.63 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3018, allocations: 0 / 412.9 MB, free: 14.63 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.488e-05/0.3018, allocations: 8 kB / 412.9 MB, free: 14.62 MB / 334.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.0008357/0.3026, allocations: 475.8 kB / 413.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.3027, allocations: 8.031 kB / 413.3 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002411/0.3029, allocations: 32.64 kB / 413.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003248/0.3033, allocations: 224.1 kB / 413.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.629e-05/0.3033, allocations: 16.94 kB / 413.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.921e-05/0.3033, allocations: 36.3 kB / 413.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004114/0.3038, allocations: 244 kB / 413.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.3038, allocations: 192 / 413.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.49e-05/0.3038, allocations: 11.94 kB / 413.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.3038, allocations: 4 kB / 413.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002801/0.3041, allocations: 153.7 kB / 414 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009477/0.3051, allocations: 0.6973 MB / 414.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002833/0.3054, allocations: 166.9 kB / 414.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001143/0.3055, allocations: 80.2 kB / 415 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.3055, allocations: 7.938 kB / 415 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001846/0.3057, allocations: 119.3 kB / 415.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.753e-06/0.3057, allocations: 4 kB / 415.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004024/0.3061, allocations: 212.5 kB / 415.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.427e-05/0.3062, allocations: 55.41 kB / 415.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001209/0.3063, allocations: 149.9 kB / 415.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.319e-05/0.3064, allocations: 37.7 kB / 415.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.311e-05/0.3064, allocations: 132.5 kB / 415.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.927e-05/0.3065, allocations: 71.17 kB / 415.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.543e-05/0.3066, allocations: 73.92 kB / 415.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.3067, allocations: 330.8 kB / 416.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.3069, allocations: 60.62 kB / 416.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/0.307, allocations: 128.1 kB / 416.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002611/0.3073, allocations: 179.1 kB / 416.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.3073, allocations: 0 / 416.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003645/0.3077, allocations: 237.3 kB / 416.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.3077, allocations: 4 kB / 416.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.3077, allocations: 4 kB / 416.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.3077, allocations: 0 / 416.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001405/0.3079, allocations: 35.86 kB / 416.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/0.3079, allocations: 11.88 kB / 416.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.308, allocations: 23.75 kB / 416.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.947e-05/0.308, allocations: 12 kB / 416.8 MB, free: 10.37 MB / 334.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.0001496/0.3082, allocations: 161.9 kB / 417 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.66e-05/0.3082, allocations: 19.75 kB / 417 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.305e-05/0.3083, allocations: 12.84 kB / 417 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.3083, allocations: 11.97 kB / 417 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.3083, allocations: 0 / 417 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.309e-06/0.3083, allocations: 0 / 417 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006807/0.309, allocations: 0.5375 MB / 417.6 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.309, allocations: 0 / 417.6 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.835e-05/0.3091, allocations: 23.94 kB / 417.6 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.3091, allocations: 4 kB / 417.6 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.3091, allocations: 3.984 kB / 417.6 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.3091, allocations: 0 / 417.6 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3092, allocations: 0 / 417.6 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002841/0.3094, allocations: 270.8 kB / 417.9 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.109e-05/0.3095, allocations: 88.95 kB / 417.9 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.692e-05/0.3095, allocations: 11.98 kB / 418 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.561e-05/0.3096, allocations: 8 kB / 418 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.543e-05/0.3097, allocations: 23.97 kB / 418 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.3097, allocations: 11.94 kB / 418 MB, free: 9.098 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.035e-05/0.3098, allocations: 102.9 kB / 418.1 MB, free: 9 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.433e-06/0.3098, allocations: 0 / 418.1 MB, free: 9 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000289/0.3101, allocations: 47.78 kB / 418.1 MB, free: 8.953 MB / 334.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.0001066/0.3102, allocations: 99.25 kB / 418.2 MB, free: 8.848 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003863/0.3106, allocations: 180.1 kB / 418.4 MB, free: 8.672 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3106, allocations: 0 / 418.4 MB, free: 8.672 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001224/0.3107, allocations: 83.89 kB / 418.5 MB, free: 8.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002812/0.311, allocations: 26.78 kB / 418.5 MB, free: 8.566 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005957/0.3116, allocations: 335 kB / 418.9 MB, free: 8.199 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002976/0.3119, allocations: 0.7288 MB / 419.6 MB, free: 7.441 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.276e-05/0.312, allocations: 27.44 kB / 419.6 MB, free: 7.414 MB / 334.1 MB Notification: Performance of SimCode: time 9.22e-07/0.312, allocations: 0 / 419.6 MB, free: 7.414 MB / 334.1 MB Notification: Performance of Templates: time 0.00428/0.3163, allocations: 2.185 MB / 421.8 MB, free: 5.223 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches