Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009657/0.0009655, allocations: 181.6 kB / 16.39 MB, free: 5.742 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.138/1.138, allocations: 194.5 MB / 211.6 MB, free: 2.977 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001492/0.001492, allocations: 112.8 kB / 256.9 MB, free: 4.348 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002712/0.0002712, allocations: 8 kB / 310.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06916/0.06945, allocations: 44.5 MB / 355 MB, free: 2.348 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2132/0.2827, allocations: 70.88 MB / 425.9 MB, free: 18.63 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001969/0.283, allocations: 63.34 kB / 426 MB, free: 18.6 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005835/0.2888, allocations: 2.788 MB / 428.8 MB, free: 16.22 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2888, allocations: 4 kB / 428.8 MB, free: 16.22 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.2889, allocations: 4.969 kB / 428.8 MB, free: 16.21 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.000387/0.2893, allocations: 439 kB / 429.2 MB, free: 15.76 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.2893, allocations: 8.031 kB / 429.2 MB, free: 15.75 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.738e-05/0.2893, allocations: 24.34 kB / 429.2 MB, free: 15.73 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001743/0.2895, allocations: 235.1 kB / 429.5 MB, free: 15.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.2896, allocations: 14.44 kB / 429.5 MB, free: 15.47 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.82e-05/0.2896, allocations: 25.81 kB / 429.5 MB, free: 15.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003049/0.2899, allocations: 230.3 kB / 429.7 MB, free: 15.29 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.2899, allocations: 4 kB / 429.7 MB, free: 15.28 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.983e-05/0.2899, allocations: 10.09 kB / 429.8 MB, free: 15.28 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.29, allocations: 4 kB / 429.8 MB, free: 15.28 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002268/0.2902, allocations: 168.9 kB / 429.9 MB, free: 15.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006972/0.2909, allocations: 0.6753 MB / 430.6 MB, free: 14.56 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002292/0.2911, allocations: 169 kB / 430.8 MB, free: 14.44 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.933e-05/0.2912, allocations: 7.75 kB / 430.8 MB, free: 14.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001541/0.2913, allocations: 122.1 kB / 430.9 MB, free: 14.32 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 1.783e-06/0.2913, allocations: 0.875 kB / 430.9 MB, free: 14.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003411/0.2917, allocations: 220.1 kB / 431.1 MB, free: 14.16 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.859e-05/0.2917, allocations: 66.75 kB / 431.2 MB, free: 14.08 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.564e-05/0.2918, allocations: 130.5 kB / 431.3 MB, free: 13.96 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.2918, allocations: 35.45 kB / 431.3 MB, free: 13.92 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.767e-05/0.2919, allocations: 123.4 kB / 431.5 MB, free: 13.81 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.565e-05/0.2919, allocations: 70.08 kB / 431.5 MB, free: 13.75 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.809e-06/0.2919, allocations: 7.312 kB / 431.5 MB, free: 13.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.663e-05/0.292, allocations: 330 kB / 431.9 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.106e-05/0.2921, allocations: 63.84 kB / 431.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001075/0.2922, allocations: 116.3 kB / 432 MB, free: 13.27 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.848e-05/0.2923, allocations: 73.11 kB / 432.1 MB, free: 13.22 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2923, allocations: 0 / 432.1 MB, free: 13.22 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002744/0.2926, allocations: 237.8 kB / 432.3 MB, free: 13.04 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.2926, allocations: 4 kB / 432.3 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.2926, allocations: 4 kB / 432.3 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.2926, allocations: 12.16 kB / 432.4 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001149/0.2928, allocations: 35.66 kB / 432.4 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.2928, allocations: 7.953 kB / 432.4 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/0.2929, allocations: 15.94 kB / 432.4 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.26e-05/0.2929, allocations: 11.62 kB / 432.4 MB, free: 12.96 MB / 314.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,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.957e-05/0.293, allocations: 152.6 kB / 432.6 MB, free: 12.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.749e-05/0.2931, allocations: 15.81 kB / 432.6 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002619/0.2933, allocations: 204.1 kB / 432.8 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.2933, allocations: 4.75 kB / 432.8 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.2933, allocations: 0 / 432.8 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.2933, allocations: 7.328 kB / 432.8 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000502/0.2939, allocations: 0.5516 MB / 433.3 MB, free: 12.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2939, allocations: 0 / 433.3 MB, free: 12.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.851e-05/0.2939, allocations: 19.12 kB / 433.4 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.294, allocations: 11.94 kB / 433.4 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.294, allocations: 3.812 kB / 433.4 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.294, allocations: 1.406 kB / 433.4 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.294, allocations: 4 kB / 433.4 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002179/0.2942, allocations: 280.1 kB / 433.7 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.387e-05/0.2942, allocations: 88.95 kB / 433.7 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.201e-05/0.2943, allocations: 7.266 kB / 433.8 MB, free: 11.74 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.399e-05/0.2944, allocations: 15.42 kB / 433.8 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.717e-05/0.2944, allocations: 22.84 kB / 433.8 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.295e-05/0.2944, allocations: 11.31 kB / 433.8 MB, free: 11.7 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.386e-05/0.2945, allocations: 95.08 kB / 433.9 MB, free: 11.61 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2945, allocations: 0 / 433.9 MB, free: 11.61 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002568/0.2947, allocations: 46.31 kB / 433.9 MB, free: 11.58 MB / 314.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: 19 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,step.active,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 (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001216/0.2949, allocations: 107.5 kB / 434 MB, free: 11.46 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002385/0.2951, allocations: 178.7 kB / 434.2 MB, free: 11.33 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.2951, allocations: 0 / 434.2 MB, free: 11.33 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.732e-05/0.2952, allocations: 83.44 kB / 434.3 MB, free: 11.27 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001673/0.2954, allocations: 12 kB / 434.3 MB, free: 11.27 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004254/0.2958, allocations: 372.5 kB / 434.7 MB, free: 10.91 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001339/0.296, allocations: 0.7367 MB / 435.4 MB, free: 10.15 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.238e-05/0.2961, allocations: 25.77 kB / 435.4 MB, free: 10.12 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.9e-05/0.2961, allocations: 26.86 kB / 435.5 MB, free: 10.11 MB / 314.7 MB Notification: Performance of SimCode: time 2.91e-07/0.2961, allocations: 0 / 435.5 MB, free: 10.11 MB / 314.7 MB Notification: Performance of Templates: time 0.003455/0.2996, allocations: 1.649 MB / 437.1 MB, free: 8.531 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)