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.007987/0.007987, allocations: 165.6 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.354/1.354, allocations: 170.8 MB / 186.6 MB, free: 1.031 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.001567/0.001567, allocations: 107.3 kB / 226.2 MB, free: 10.1 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003485/0.0003485, allocations: 8 kB / 274.1 MB, free: 10.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.2227, allocations: 38.76 MB / 312.9 MB, free: 38.9 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0835/0.3063, allocations: 65.57 MB / 378.4 MB, free: 8.973 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/0.3066, allocations: 67.95 kB / 378.5 MB, free: 8.906 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007294/0.3139, allocations: 2.8 MB / 381.3 MB, free: 6.094 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.3139, allocations: 0 / 381.3 MB, free: 6.094 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.443e-05/0.314, allocations: 4.875 kB / 381.3 MB, free: 6.09 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.0006348/0.3146, allocations: 443.5 kB / 381.7 MB, free: 5.609 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.3146, allocations: 12.02 kB / 381.8 MB, free: 5.598 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.113e-05/0.3147, allocations: 23.75 kB / 381.8 MB, free: 5.574 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002662/0.315, allocations: 218.8 kB / 382 MB, free: 5.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.885e-05/0.315, allocations: 24.42 kB / 382 MB, free: 5.297 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.188e-05/0.3151, allocations: 24 kB / 382 MB, free: 5.273 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004146/0.3155, allocations: 233.8 kB / 382.3 MB, free: 5.031 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.3155, allocations: 0 / 382.3 MB, free: 5.031 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.899e-05/0.3156, allocations: 11.98 kB / 382.3 MB, free: 5.02 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.3156, allocations: 4 kB / 382.3 MB, free: 5.016 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002924/0.3159, allocations: 161.6 kB / 382.4 MB, free: 4.859 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.317, allocations: 0.6783 MB / 383.1 MB, free: 4.121 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002949/0.3173, allocations: 171.2 kB / 383.3 MB, free: 3.945 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.186e-05/0.3173, allocations: 4.188 kB / 383.3 MB, free: 3.941 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000202/0.3175, allocations: 115.6 kB / 383.4 MB, free: 3.816 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.3175, allocations: 0 / 383.4 MB, free: 3.816 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004133/0.3179, allocations: 223.1 kB / 383.6 MB, free: 3.594 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.189e-05/0.318, allocations: 59.41 kB / 383.7 MB, free: 3.523 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.3181, allocations: 134.5 kB / 383.8 MB, free: 3.383 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.367e-05/0.3181, allocations: 37.69 kB / 383.9 MB, free: 3.34 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.484e-05/0.3182, allocations: 128.7 kB / 384 MB, free: 3.207 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.248e-05/0.3183, allocations: 55.25 kB / 384 MB, free: 3.152 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.312e-05/0.3183, allocations: 8 kB / 384 MB, free: 3.145 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.3185, allocations: 330.8 kB / 384.4 MB, free: 2.812 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.3186, allocations: 60.62 kB / 384.4 MB, free: 2.75 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.3187, allocations: 124.1 kB / 384.5 MB, free: 2.605 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001235/0.3189, allocations: 77.73 kB / 384.6 MB, free: 2.535 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.3189, allocations: 3.984 kB / 384.6 MB, free: 2.531 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003642/0.3193, allocations: 237.2 kB / 384.9 MB, free: 2.293 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.3193, allocations: 4 kB / 384.9 MB, free: 2.289 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.3193, allocations: 4 kB / 384.9 MB, free: 2.285 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.3193, allocations: 4 kB / 384.9 MB, free: 2.281 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/0.3195, allocations: 31.92 kB / 384.9 MB, free: 2.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.3195, allocations: 4.219 kB / 384.9 MB, free: 2.246 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.562e-05/0.3196, allocations: 27.83 kB / 384.9 MB, free: 2.219 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.802e-05/0.3196, allocations: 12 kB / 384.9 MB, free: 2.207 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 () * 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 0.0001371/0.3198, allocations: 153.7 kB / 385.1 MB, free: 2.047 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.213e-05/0.3198, allocations: 19.83 kB / 385.1 MB, free: 2.027 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003327/0.3201, allocations: 195 kB / 385.3 MB, free: 1.828 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.3201, allocations: 4 kB / 385.3 MB, free: 1.824 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3202, allocations: 4 kB / 385.3 MB, free: 1.82 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.3202, allocations: 3.984 kB / 385.3 MB, free: 1.816 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007127/0.3209, allocations: 0.5583 MB / 385.9 MB, free: 1.203 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3209, allocations: 0 / 385.9 MB, free: 1.203 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.782e-05/0.321, allocations: 15.98 kB / 385.9 MB, free: 1.188 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.321, allocations: 4 kB / 385.9 MB, free: 1.184 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/0.321, allocations: 8 kB / 385.9 MB, free: 1.176 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.321, allocations: 0 / 385.9 MB, free: 1.176 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.321, allocations: 7.938 kB / 385.9 MB, free: 1.168 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00028/0.3213, allocations: 279.7 kB / 386.2 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.549e-05/0.3214, allocations: 92.86 kB / 386.3 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.516e-05/0.3214, allocations: 7.984 kB / 386.3 MB, free: 0.7617 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.705e-05/0.3215, allocations: 4 kB / 386.3 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.811e-05/0.3216, allocations: 31.95 kB / 386.3 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.584e-05/0.3216, allocations: 8 kB / 386.3 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.012e-05/0.3217, allocations: 97.77 kB / 386.4 MB, free: 0.625 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3217, allocations: 0 / 386.4 MB, free: 0.625 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003022/0.322, allocations: 51.94 kB / 386.5 MB, free: 0.5742 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) * 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.0001589/0.3222, allocations: 107.1 kB / 386.6 MB, free: 472 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003189/0.3225, allocations: 184 kB / 386.7 MB, free: 288 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3225, allocations: 4.125 kB / 386.8 MB, free: 284 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001285/0.3226, allocations: 79.92 kB / 386.8 MB, free: 204 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002054/0.3229, allocations: 21.89 kB / 386.9 MB, free: 188 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006346/0.3235, allocations: 366.9 kB / 387.2 MB, free: 15.79 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003296/0.3238, allocations: 0.7366 MB / 387.9 MB, free: 15.03 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.083e-05/0.3239, allocations: 33.92 kB / 388 MB, free: 15 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.8e-05/0.324, allocations: 19.44 kB / 388 MB, free: 14.98 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.324, allocations: 0 / 388 MB, free: 14.98 MB / 298.7 MB Notification: Performance of Templates: time 0.004451/0.3285, allocations: 1.65 MB / 389.7 MB, free: 13.34 MB / 298.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)