Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001407/0.001407, allocations: 156.1 kB / 7.633 MB, free: 1.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.123/1.123, allocations: 170.7 MB / 178.7 MB, free: 7.039 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001539/0.001539, allocations: 110 kB / 218 MB, free: 15.34 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.361e-05/1.363e-05, allocations: 4 kB / 262.2 MB, free: 3.082 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1948/0.1948, allocations: 38.76 MB / 301 MB, free: 39.14 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07307/0.2679, allocations: 64.82 MB / 365.8 MB, free: 14.85 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002005/0.2682, allocations: 59.97 kB / 365.8 MB, free: 14.79 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006675/0.2749, allocations: 2.734 MB / 368.6 MB, free: 12.09 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.2749, allocations: 0.9375 kB / 368.6 MB, free: 12.09 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.453e-05/0.2749, allocations: 9.969 kB / 368.6 MB, free: 12.08 MB / 282.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.0005316/0.2755, allocations: 435.4 kB / 369 MB, free: 11.61 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.2755, allocations: 13.94 kB / 369 MB, free: 11.59 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.688e-05/0.2756, allocations: 16.69 kB / 369 MB, free: 11.58 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002415/0.2758, allocations: 222.8 kB / 369.3 MB, free: 11.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.466e-05/0.2759, allocations: 8 kB / 369.3 MB, free: 11.31 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.169e-05/0.2759, allocations: 19.95 kB / 369.3 MB, free: 11.29 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002878/0.2762, allocations: 145.4 kB / 369.4 MB, free: 11.15 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003426/0.2766, allocations: 199 kB / 369.6 MB, free: 10.95 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.2766, allocations: 2.25 kB / 369.6 MB, free: 10.95 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.357e-05/0.2766, allocations: 4 kB / 369.6 MB, free: 10.94 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.315e-06/0.2766, allocations: 8.5 kB / 369.6 MB, free: 10.93 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009155/0.2776, allocations: 0.6282 MB / 370.3 MB, free: 10.27 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002391/0.2778, allocations: 158.1 kB / 370.4 MB, free: 10.11 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.2779, allocations: 65.23 kB / 370.5 MB, free: 10.04 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.907e-05/0.278, allocations: 4.188 kB / 370.5 MB, free: 10.04 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000162/0.2781, allocations: 104.9 kB / 370.6 MB, free: 9.926 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 1.854e-06/0.2781, allocations: 4 kB / 370.6 MB, free: 9.922 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002921/0.2784, allocations: 149.4 kB / 370.7 MB, free: 9.77 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.578e-05/0.2785, allocations: 59.39 kB / 370.8 MB, free: 9.699 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.2786, allocations: 139 kB / 370.9 MB, free: 9.555 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.2786, allocations: 33.69 kB / 371 MB, free: 9.516 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.899e-05/0.2787, allocations: 124.5 kB / 371.1 MB, free: 9.391 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.55e-05/0.2788, allocations: 55.17 kB / 371.1 MB, free: 9.336 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.006e-05/0.2788, allocations: 0 / 371.1 MB, free: 9.336 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.2789, allocations: 330.8 kB / 371.5 MB, free: 9.004 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.564e-05/0.279, allocations: 58.72 kB / 371.5 MB, free: 8.945 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.2791, allocations: 111.8 kB / 371.6 MB, free: 8.812 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.968e-05/0.2792, allocations: 55.7 kB / 371.7 MB, free: 8.762 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2792, allocations: 3.938 kB / 371.7 MB, free: 8.758 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003045/0.2796, allocations: 213.3 kB / 371.9 MB, free: 8.543 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.2796, allocations: 4.625 kB / 371.9 MB, free: 8.539 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.2796, allocations: 4 kB / 371.9 MB, free: 8.535 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.2796, allocations: 4 kB / 371.9 MB, free: 8.531 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.2797, allocations: 32.12 kB / 371.9 MB, free: 8.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.2798, allocations: 4 kB / 371.9 MB, free: 8.496 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.84e-05/0.2799, allocations: 15.84 kB / 372 MB, free: 8.48 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.474e-05/0.2799, allocations: 12 kB / 372 MB, free: 8.469 MB / 282.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 () * 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 9.359e-05/0.28, allocations: 128.3 kB / 372.1 MB, free: 8.34 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.576e-05/0.28, allocations: 19.81 kB / 372.1 MB, free: 8.32 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003126/0.2804, allocations: 172.7 kB / 372.3 MB, free: 8.152 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.2804, allocations: 8 kB / 372.3 MB, free: 8.145 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.2804, allocations: 0 / 372.3 MB, free: 8.145 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.2804, allocations: 0 / 372.3 MB, free: 8.145 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000633/0.281, allocations: 0.4952 MB / 372.8 MB, free: 7.605 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.281, allocations: 0 / 372.8 MB, free: 7.605 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.822e-05/0.2811, allocations: 12 kB / 372.8 MB, free: 7.594 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.2811, allocations: 4 kB / 372.8 MB, free: 7.59 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.2812, allocations: 13.67 kB / 372.8 MB, free: 7.578 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.2812, allocations: 0 / 372.8 MB, free: 7.578 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.2812, allocations: 0 / 372.8 MB, free: 7.578 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002804/0.2815, allocations: 260.7 kB / 373.1 MB, free: 7.309 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.789e-05/0.2815, allocations: 92.95 kB / 373.2 MB, free: 7.199 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.474e-05/0.2816, allocations: 3.984 kB / 373.2 MB, free: 7.195 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.686e-05/0.2817, allocations: 10 kB / 373.2 MB, free: 7.188 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.616e-05/0.2817, allocations: 23.95 kB / 373.2 MB, free: 7.164 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.2817, allocations: 8 kB / 373.2 MB, free: 7.156 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.302e-05/0.2818, allocations: 88.03 kB / 373.3 MB, free: 7.07 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2818, allocations: 0 / 373.3 MB, free: 7.07 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002757/0.2821, allocations: 32 kB / 373.3 MB, free: 7.039 MB / 282.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) * 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.0001382/0.2822, allocations: 115.1 kB / 373.4 MB, free: 6.914 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002519/0.2825, allocations: 156.9 kB / 373.6 MB, free: 6.762 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.2825, allocations: 4.062 kB / 373.6 MB, free: 6.758 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.2826, allocations: 75.88 kB / 373.7 MB, free: 6.684 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001927/0.2828, allocations: 22.66 kB / 373.7 MB, free: 6.664 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004103/0.2832, allocations: 213.8 kB / 373.9 MB, free: 6.434 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002909/0.2835, allocations: 0.7417 MB / 374.6 MB, free: 5.668 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.826e-05/0.2836, allocations: 18.08 kB / 374.7 MB, free: 5.652 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.551e-05/0.2837, allocations: 27.42 kB / 374.7 MB, free: 5.625 MB / 282.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2837, allocations: 0 / 374.7 MB, free: 5.625 MB / 282.7 MB Notification: Performance of Templates: time 0.004083/0.2878, allocations: 1.621 MB / 376.3 MB, free: 4.07 MB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)