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.001485/0.001485, allocations: 181.6 kB / 13.64 MB, free: 1.676 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.364/1.364, allocations: 194.2 MB / 208.4 MB, free: 6.715 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.001549/0.001549, allocations: 120.7 kB / 253.5 MB, free: 9.578 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.433e-05/3.448e-05, allocations: 4 kB / 304.9 MB, free: 29.78 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08694/0.08699, allocations: 44.49 MB / 349.4 MB, free: 1.27 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3275/0.4146, allocations: 70.79 MB / 420.2 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/0.4149, allocations: 63.39 kB / 420.3 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006511/0.4214, allocations: 2.798 MB / 423.1 MB, free: 10.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.4214, allocations: 0 / 423.1 MB, free: 10.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.4214, allocations: 7.781 kB / 423.1 MB, free: 10.43 MB / 298.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.000418/0.4219, allocations: 428.8 kB / 423.5 MB, free: 10.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.4219, allocations: 7.75 kB / 423.5 MB, free: 10.06 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.997e-05/0.422, allocations: 28.25 kB / 423.5 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002037/0.4222, allocations: 222.4 kB / 423.7 MB, free: 9.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.935e-05/0.4222, allocations: 17.56 kB / 423.8 MB, free: 9.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.683e-05/0.4223, allocations: 27.06 kB / 423.8 MB, free: 9.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003669/0.4226, allocations: 226.1 kB / 424 MB, free: 9.789 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.4226, allocations: 3.938 kB / 424 MB, free: 9.785 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.348e-05/0.4227, allocations: 7.625 kB / 424 MB, free: 9.785 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.4227, allocations: 7.688 kB / 424 MB, free: 9.785 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002516/0.4229, allocations: 158.6 kB / 424.2 MB, free: 9.781 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008646/0.4238, allocations: 0.6861 MB / 424.9 MB, free: 9.383 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000261/0.4241, allocations: 170.5 kB / 425 MB, free: 9.355 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.879e-05/0.4242, allocations: 76.58 kB / 425.1 MB, free: 9.348 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.4242, allocations: 6.703 kB / 425.1 MB, free: 9.348 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001522/0.4244, allocations: 115.2 kB / 425.2 MB, free: 9.289 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.853e-06/0.4244, allocations: 3.844 kB / 425.2 MB, free: 9.289 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002737/0.4247, allocations: 162.2 kB / 425.4 MB, free: 9.246 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.036e-05/0.4247, allocations: 55.28 kB / 425.4 MB, free: 9.184 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.4248, allocations: 138.2 kB / 425.6 MB, free: 9.082 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.403e-05/0.4249, allocations: 37.3 kB / 425.6 MB, free: 9.051 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.661e-05/0.4249, allocations: 127.4 kB / 425.7 MB, free: 8.945 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.698e-05/0.425, allocations: 58.91 kB / 425.8 MB, free: 8.914 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.072e-05/0.425, allocations: 7.5 kB / 425.8 MB, free: 8.914 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.466e-05/0.4251, allocations: 330.1 kB / 426.1 MB, free: 8.598 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.219e-05/0.4251, allocations: 60.22 kB / 426.2 MB, free: 8.594 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001142/0.4253, allocations: 124.1 kB / 426.3 MB, free: 8.527 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001002/0.4254, allocations: 65.78 kB / 426.4 MB, free: 8.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.4254, allocations: 0 / 426.4 MB, free: 8.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002826/0.4257, allocations: 239.2 kB / 426.6 MB, free: 8.457 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.4257, allocations: 7.469 kB / 426.6 MB, free: 8.457 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.4257, allocations: 7.875 kB / 426.6 MB, free: 8.453 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.4257, allocations: 3.844 kB / 426.6 MB, free: 8.453 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.4259, allocations: 35.83 kB / 426.7 MB, free: 8.445 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.4259, allocations: 3.844 kB / 426.7 MB, free: 8.445 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.26e-05/0.426, allocations: 15.53 kB / 426.7 MB, free: 8.441 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.681e-05/0.426, allocations: 13.12 kB / 426.7 MB, free: 8.441 MB / 298.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 7.823e-05/0.4261, allocations: 135.2 kB / 426.8 MB, free: 8.328 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.777e-05/0.4261, allocations: 11.62 kB / 426.8 MB, free: 8.32 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002953/0.4264, allocations: 205.4 kB / 427 MB, free: 8.266 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.4264, allocations: 0 / 427 MB, free: 8.266 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4264, allocations: 7.797 kB / 427 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.4264, allocations: 2.625 kB / 427 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005372/0.427, allocations: 0.5489 MB / 427.6 MB, free: 7.945 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.427, allocations: 4 kB / 427.6 MB, free: 7.941 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.257e-05/0.4271, allocations: 22.98 kB / 427.6 MB, free: 7.934 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.4271, allocations: 7.703 kB / 427.6 MB, free: 7.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.4271, allocations: 3 kB / 427.6 MB, free: 7.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-06/0.4271, allocations: 0 / 427.6 MB, free: 7.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.4271, allocations: 0 / 427.6 MB, free: 7.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002297/0.4274, allocations: 273.7 kB / 427.9 MB, free: 7.773 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.261e-05/0.4274, allocations: 92.77 kB / 428 MB, free: 7.668 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.325e-05/0.4274, allocations: 14.95 kB / 428 MB, free: 7.656 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.237e-05/0.4275, allocations: 11.77 kB / 428 MB, free: 7.652 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.923e-05/0.4276, allocations: 23.56 kB / 428 MB, free: 7.645 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.233e-05/0.4276, allocations: 3.875 kB / 428 MB, free: 7.645 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.838e-05/0.4277, allocations: 101.1 kB / 428.1 MB, free: 7.562 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4277, allocations: 0 / 428.1 MB, free: 7.562 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002484/0.4279, allocations: 47.53 kB / 428.2 MB, free: 7.559 MB / 298.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.000127/0.4281, allocations: 110 kB / 428.3 MB, free: 7.461 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002361/0.4283, allocations: 175.2 kB / 428.5 MB, free: 7.445 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4283, allocations: 3.875 kB / 428.5 MB, free: 7.445 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001073/0.4284, allocations: 79.38 kB / 428.5 MB, free: 7.438 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001763/0.4286, allocations: 14.7 kB / 428.6 MB, free: 7.434 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003731/0.429, allocations: 235.9 kB / 428.8 MB, free: 7.309 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001732/0.4292, allocations: 0.7348 MB / 429.5 MB, free: 6.582 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.533e-05/0.4292, allocations: 21.64 kB / 429.5 MB, free: 6.574 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.892e-05/0.4293, allocations: 22.95 kB / 429.6 MB, free: 6.566 MB / 298.7 MB Notification: Performance of SimCode: time 4.21e-07/0.4293, allocations: 4 kB / 429.6 MB, free: 6.562 MB / 298.7 MB Notification: Performance of Templates: time 0.00405/0.4334, allocations: 1.663 MB / 431.2 MB, free: 5.754 MB / 298.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)