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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 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) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000966/0.0009656, allocations: 97.95 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008857/0.008857, allocations: 170.7 kB / 16.27 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.628/1.628, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8926/0.8926, allocations: 132.4 MB / 423.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004811/0.0004812, allocations: 8 kB / 0.504 GB, free: 3.957 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6115/0.612, allocations: 81.58 MB / 0.5837 GB, free: 4.066 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPID): time 0.004829/0.6169, allocations: 3.3 MB / 0.5869 GB, free: 1.637 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003766/0.6207, allocations: 1.291 MB / 0.5881 GB, free: 0.7109 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007009/0.6214, allocations: 28.41 kB / 0.5882 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003766/0.6218, allocations: 93.41 kB / 0.5883 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006399/0.6225, allocations: 141.5 kB / 0.5884 GB, free: 0.543 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001481/0.624, allocations: 0.5313 MB / 0.5889 GB, free: 244 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001504/0.6255, allocations: 0.8923 MB / 0.5898 GB, free: 15.81 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007353/0.6262, allocations: 330.8 kB / 0.5901 GB, free: 15.62 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006424/0.6269, allocations: 281.9 kB / 0.5904 GB, free: 15.49 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005009/0.6274, allocations: 280.8 kB / 0.5906 GB, free: 15.34 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.803e-05/0.6275, allocations: 21.12 kB / 0.5907 GB, free: 15.34 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.958e-05/0.6276, allocations: 20.84 kB / 0.5907 GB, free: 15.34 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001656/0.6278, allocations: 111.9 kB / 0.5908 GB, free: 15.27 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003983/0.6282, allocations: 331 kB / 0.5911 GB, free: 15.03 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001322/0.6295, allocations: 0.7845 MB / 0.5919 GB, free: 14.75 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.6295, allocations: 0.7031 kB / 0.5919 GB, free: 14.75 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.477e-06/0.6295, allocations: 0 / 0.5919 GB, free: 14.75 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.323e-05/0.6295, allocations: 1.156 kB / 0.5919 GB, free: 14.75 MB / 446.1 MB 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.002596/0.6321, allocations: 1.056 MB / 0.5929 GB, free: 14.02 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.076e-05/0.6322, allocations: 9.875 kB / 0.5929 GB, free: 14.02 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002463/0.6325, allocations: 97.28 kB / 0.593 GB, free: 13.96 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001256/0.6337, allocations: 0.6015 MB / 0.5936 GB, free: 13.54 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001623/0.6339, allocations: 101.8 kB / 0.5937 GB, free: 13.46 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000116/0.634, allocations: 52.86 kB / 0.5937 GB, free: 13.44 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.6356, allocations: 0.6104 MB / 0.5943 GB, free: 13.13 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.6357, allocations: 4.969 kB / 0.5943 GB, free: 13.13 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.457e-05/0.6358, allocations: 22.06 kB / 0.5944 GB, free: 13.11 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.054e-05/0.6358, allocations: 12.81 kB / 0.5944 GB, free: 13.11 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001248/0.6371, allocations: 443.5 kB / 0.5948 GB, free: 12.97 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004054/0.6411, allocations: 2.14 MB / 0.5969 GB, free: 11.53 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.6426, allocations: 0.52 MB / 0.5974 GB, free: 11.32 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005353/0.6432, allocations: 227 kB / 0.5976 GB, free: 11.24 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.632e-05/0.6433, allocations: 8.656 kB / 0.5976 GB, free: 11.24 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000803/0.6441, allocations: 299 kB / 0.5979 GB, free: 11.05 MB / 446.1 MB Notification: Performance of pre-optimization done (n=45): time 3.617e-06/0.6441, allocations: 0 / 0.5979 GB, free: 11.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=45): time 0.001875/0.646, allocations: 0.638 MB / 0.5985 GB, free: 10.75 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.765e-05/0.6461, allocations: 85.92 kB / 0.5986 GB, free: 10.65 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001042/0.6471, allocations: 0.6224 MB / 0.5992 GB, free: 10.28 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.054e-05/0.6472, allocations: 36.61 kB / 0.5993 GB, free: 10.24 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003541/0.6476, allocations: 358.7 kB / 0.5996 GB, free: 9.926 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001886/0.6478, allocations: 159.8 kB / 0.5997 GB, free: 9.785 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.225e-05/0.6479, allocations: 50.17 kB / 0.5998 GB, free: 9.746 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001904/0.648, allocations: 326.5 kB / 0.6001 GB, free: 9.426 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005188/0.6486, allocations: 184.6 kB / 0.6003 GB, free: 9.344 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006162/0.6492, allocations: 288.9 kB / 0.6006 GB, free: 9.141 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001089/0.6503, allocations: 495.3 kB / 0.601 GB, free: 8.828 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/0.6503, allocations: 9.094 kB / 0.601 GB, free: 8.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001473/0.6518, allocations: 0.6098 MB / 0.6016 GB, free: 8.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000191/0.652, allocations: 194.5 kB / 0.6018 GB, free: 8.273 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.652, allocations: 6.781 kB / 0.6018 GB, free: 8.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.44e-05/0.6521, allocations: 5.25 kB / 0.6018 GB, free: 8.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005401/0.6526, allocations: 109.9 kB / 0.6019 GB, free: 8.246 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.95e-05/0.6526, allocations: 8.812 kB / 0.6019 GB, free: 8.242 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004489/0.6531, allocations: 68.84 kB / 0.602 GB, free: 8.199 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.495e-05/0.6531, allocations: 22.53 kB / 0.602 GB, free: 8.191 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.6532, allocations: 8.031 kB / 0.602 GB, free: 8.188 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001155/0.6543, allocations: 0.5049 MB / 0.6025 GB, free: 7.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.6543, allocations: 6.078 kB / 0.6025 GB, free: 7.926 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.848e-06/0.6544, allocations: 4.938 kB / 0.6025 GB, free: 7.926 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004654/0.6548, allocations: 112.7 kB / 0.6026 GB, free: 7.895 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.6549, allocations: 5.25 kB / 0.6027 GB, free: 7.895 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000375/0.6552, allocations: 56.33 kB / 0.6027 GB, free: 7.859 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.551e-05/0.6553, allocations: 22.98 kB / 0.6027 GB, free: 7.852 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004667/0.6558, allocations: 272.4 kB / 0.603 GB, free: 7.609 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001597/0.6559, allocations: 82.41 kB / 0.6031 GB, free: 7.562 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002199/0.6562, allocations: 78.5 kB / 0.6031 GB, free: 7.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.6562, allocations: 3.531 kB / 0.6031 GB, free: 7.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.973e-05/0.6562, allocations: 4.969 kB / 0.6032 GB, free: 7.496 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.828e-06/0.6562, allocations: 7.984 kB / 0.6032 GB, free: 7.488 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009641/0.6572, allocations: 0.6108 MB / 0.6038 GB, free: 6.992 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.6572, allocations: 7.875 kB / 0.6038 GB, free: 6.984 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005024/0.6577, allocations: 90.72 kB / 0.6038 GB, free: 6.961 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.6577, allocations: 2.219 kB / 0.6039 GB, free: 6.961 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.2e-05/0.6578, allocations: 5.719 kB / 0.6039 GB, free: 6.957 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.6578, allocations: 2.094 kB / 0.6039 GB, free: 6.957 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.6578, allocations: 1.844 kB / 0.6039 GB, free: 6.957 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001825/0.6596, allocations: 0.7588 MB / 0.6046 GB, free: 6.547 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002875/0.6599, allocations: 197.6 kB / 0.6048 GB, free: 6.359 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.268e-05/0.66, allocations: 18.64 kB / 0.6048 GB, free: 6.344 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004286/0.6604, allocations: 38.75 kB / 0.6048 GB, free: 6.332 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.6606, allocations: 34.64 kB / 0.6049 GB, free: 6.312 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.26e-05/0.6606, allocations: 13.73 kB / 0.6049 GB, free: 6.309 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006751/0.6613, allocations: 433.7 kB / 0.6053 GB, free: 6.062 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6613, allocations: 4 kB / 0.6053 GB, free: 6.059 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000776/0.6621, allocations: 210.8 kB / 0.6055 GB, free: 6.008 MB / 446.1 MB 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002033/0.6623, allocations: 108.2 kB / 0.6056 GB, free: 5.906 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001972/0.6643, allocations: 0.818 MB / 0.6064 GB, free: 5.477 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/0.6643, allocations: 1.438 kB / 0.6064 GB, free: 5.477 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005675/0.6649, allocations: 221.8 kB / 0.6066 GB, free: 5.387 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/0.666, allocations: 191.4 kB / 0.6068 GB, free: 5.289 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002903/0.669, allocations: 1.468 MB / 0.6082 GB, free: 4.266 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006853/0.6697, allocations: 0.9164 MB / 0.6091 GB, free: 3.469 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005029/0.6702, allocations: 94.33 kB / 0.6092 GB, free: 3.426 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001765/0.6703, allocations: 48.48 kB / 0.6093 GB, free: 3.414 MB / 446.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6704, allocations: 0 / 0.6093 GB, free: 3.414 MB / 446.1 MB Notification: Performance of Templates: time 0.01797/0.6883, allocations: 7.118 MB / 0.6162 GB, free: 14.61 MB / 462.1 MB 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)