Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(IDEAS.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Continuous.Examples.LimPID") translateModel(IDEAS.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001655/0.001655, allocations: 177 kB / 7.645 MB, free: 1.41 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7521/0.7521, allocations: 130.7 MB / 138.7 MB, free: 3.539 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.528/1.528, allocations: 221.5 MB / 391.8 MB, free: 14.16 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008893/0.0008893, allocations: 93.47 kB / 473.9 MB, free: 4.473 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.381e-05/1.384e-05, allocations: 4 kB / 0.5485 GB, free: 13.07 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4196/0.4196, allocations: 81.57 MB / 0.6282 GB, free: 42.95 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1624/0.582, allocations: 118.3 MB / 0.7437 GB, free: 8.43 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002146/0.5823, allocations: 84.61 kB / 0.7438 GB, free: 8.348 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.04854/0.6309, allocations: 16.78 MB / 0.7602 GB, free: 7.535 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.943e-06/0.6309, allocations: 1.312 kB / 0.7602 GB, free: 7.535 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001334/0.6311, allocations: 16 kB / 0.7602 GB, free: 7.52 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002207/0.6333, allocations: 0.9431 MB / 0.7611 GB, free: 6.52 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/0.6334, allocations: 12.03 kB / 0.7611 GB, free: 6.508 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004855/0.6338, allocations: 94.88 kB / 0.7612 GB, free: 6.414 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001522/0.6354, allocations: 0.5707 MB / 0.7618 GB, free: 5.805 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001513/0.6356, allocations: 84.7 kB / 0.7619 GB, free: 5.711 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001404/0.6357, allocations: 35.91 kB / 0.7619 GB, free: 5.676 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007535/0.6365, allocations: 346.5 kB / 0.7622 GB, free: 5.336 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009431/0.6374, allocations: 0.5102 MB / 0.7627 GB, free: 4.773 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.6375, allocations: 0 / 0.7627 GB, free: 4.773 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.429e-05/0.6375, allocations: 4 kB / 0.7627 GB, free: 4.77 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.663e-05/0.6375, allocations: 16 kB / 0.7627 GB, free: 4.754 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003446/0.641, allocations: 2.099 MB / 0.7648 GB, free: 2.582 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008523/0.6419, allocations: 440.3 kB / 0.7652 GB, free: 2.137 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002706/0.6422, allocations: 158.7 kB / 0.7654 GB, free: 1.98 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 4.388e-05/0.6422, allocations: 4 kB / 0.7654 GB, free: 1.977 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004393/0.6427, allocations: 233.9 kB / 0.7656 GB, free: 1.734 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=45): time 2.304e-06/0.6427, allocations: 4 kB / 0.7656 GB, free: 1.73 MB / 0.5417 GB Notification: Performance of matching and sorting (n=45): time 0.0008521/0.6435, allocations: 389.1 kB / 0.766 GB, free: 1.344 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/0.6437, allocations: 187.9 kB / 0.7661 GB, free: 1.117 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006109/0.6443, allocations: 471.8 kB / 0.7666 GB, free: 0.6484 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.947e-05/0.6444, allocations: 33.64 kB / 0.7666 GB, free: 0.6094 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002954/0.6447, allocations: 364.6 kB / 0.767 GB, free: 252 kB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.6448, allocations: 161.5 kB / 0.7671 GB, free: 88 kB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.553e-05/0.6448, allocations: 0 / 0.7671 GB, free: 88 kB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000202/0.645, allocations: 390.7 kB / 0.7675 GB, free: 15.7 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002446/0.6453, allocations: 141.1 kB / 0.7676 GB, free: 15.56 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003478/0.6457, allocations: 262.7 kB / 0.7679 GB, free: 15.25 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002776/0.6459, allocations: 160.7 kB / 0.768 GB, free: 15.1 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.646, allocations: 4 kB / 0.768 GB, free: 15.1 MB / 0.5573 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008253/0.6468, allocations: 479.1 kB / 0.7685 GB, free: 14.62 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004872/0.6473, allocations: 0.9921 MB / 0.7695 GB, free: 13.55 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.6473, allocations: 4 kB / 0.7695 GB, free: 13.55 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.6473, allocations: 4 kB / 0.7695 GB, free: 13.54 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005579/0.6479, allocations: 123.8 kB / 0.7696 GB, free: 13.42 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.6479, allocations: 4 kB / 0.7696 GB, free: 13.42 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005497/0.6485, allocations: 71.58 kB / 0.7697 GB, free: 13.35 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.891e-05/0.6485, allocations: 20 kB / 0.7697 GB, free: 13.33 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.6486, allocations: 4 kB / 0.7697 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006813/0.6493, allocations: 378.2 kB / 0.77 GB, free: 12.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.6493, allocations: 4.312 kB / 0.7701 GB, free: 12.95 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.6493, allocations: 15.94 kB / 0.7701 GB, free: 12.93 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004811/0.6498, allocations: 111.8 kB / 0.7702 GB, free: 12.82 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.448e-05/0.6498, allocations: 11.92 kB / 0.7702 GB, free: 12.81 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004784/0.6503, allocations: 59.62 kB / 0.7702 GB, free: 12.75 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.121e-05/0.6503, allocations: 16 kB / 0.7703 GB, free: 12.74 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * 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.0001713/0.6505, allocations: 118.5 kB / 0.7704 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001292/0.6507, allocations: 67.16 kB / 0.7704 GB, free: 12.55 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001669/0.6508, allocations: 74.84 kB / 0.7705 GB, free: 12.48 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.6508, allocations: 11.95 kB / 0.7705 GB, free: 12.46 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.6509, allocations: 0 / 0.7705 GB, free: 12.46 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.6509, allocations: 0 / 0.7705 GB, free: 12.46 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007568/0.6516, allocations: 0.5718 MB / 0.7711 GB, free: 11.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.6516, allocations: 7.875 kB / 0.7711 GB, free: 11.85 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004965/0.6521, allocations: 91.88 kB / 0.7712 GB, free: 11.76 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.436e-06/0.6522, allocations: 4 kB / 0.7712 GB, free: 11.75 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.959e-05/0.6522, allocations: 4 kB / 0.7712 GB, free: 11.75 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.153e-06/0.6522, allocations: 8.062 kB / 0.7712 GB, free: 11.74 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.6522, allocations: 4 kB / 0.7712 GB, free: 11.74 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.6532, allocations: 0.6186 MB / 0.7718 GB, free: 11.1 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002679/0.6535, allocations: 200.1 kB / 0.772 GB, free: 10.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.061e-05/0.6536, allocations: 4 kB / 0.772 GB, free: 10.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005174/0.6542, allocations: 55.94 kB / 0.772 GB, free: 10.82 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.6543, allocations: 43.64 kB / 0.7721 GB, free: 10.78 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-05/0.6543, allocations: 15.98 kB / 0.7721 GB, free: 10.77 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004339/0.6548, allocations: 359.2 kB / 0.7724 GB, free: 10.42 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6548, allocations: 0 / 0.7724 GB, free: 10.42 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0007217/0.6555, allocations: 219.1 kB / 0.7727 GB, free: 10.2 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001814/0.6557, allocations: 124.3 kB / 0.7728 GB, free: 10.07 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001103/0.6568, allocations: 0.7009 MB / 0.7735 GB, free: 9.352 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.6568, allocations: 1.25 kB / 0.7735 GB, free: 9.352 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002883/0.6571, allocations: 175.9 kB / 0.7736 GB, free: 9.18 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000877/0.658, allocations: 165.8 kB / 0.7738 GB, free: 9.023 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001856/0.6599, allocations: 0.8627 MB / 0.7746 GB, free: 8.133 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004987/0.6604, allocations: 0.9346 MB / 0.7755 GB, free: 7.172 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0006303/0.661, allocations: 131.4 kB / 0.7757 GB, free: 7.039 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.6611, allocations: 39.38 kB / 0.7757 GB, free: 7 MB / 0.5573 GB Notification: Performance of SimCode: time 4.21e-07/0.6611, allocations: 0 / 0.7757 GB, free: 7 MB / 0.5573 GB Notification: Performance of Templates: time 0.01535/0.6765, allocations: 8.145 MB / 0.7837 GB, free: 14.95 MB / 0.573 GB make -j1 -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.makefile (rm -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; mkfifo IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe >> ../files/IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.sim & ./IDEAS_IDEAS.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe 2>&1)