Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS.Controls.Continuous.Examples.LimPID") translateModel(IDEAS.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.001177/0.001177, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001268/0.001268, allocations: 190.3 kB / 16.25 MB, free: 6.645 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.524/1.524, allocations: 222.9 MB / 239.9 MB, free: 4.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9915/0.9915, allocations: 135.1 MB / 425.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 60 kB / 0.5048 GB, free: 5.617 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2114/0.2126, allocations: 80.93 MB / 0.5839 GB, free: 4.852 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPID): time 0.006309/0.219, allocations: 3.708 MB / 0.5875 GB, free: 1.117 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003481/0.2225, allocations: 1.301 MB / 0.5888 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001009/0.2236, allocations: 27.88 kB / 0.5888 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006478/0.2242, allocations: 95.09 kB / 0.5889 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001216/0.2255, allocations: 131 kB / 0.589 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001641/0.2272, allocations: 0.527 MB / 0.5895 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001604/0.2288, allocations: 0.9682 MB / 0.5905 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005628/0.2294, allocations: 349.6 kB / 0.5908 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004336/0.2298, allocations: 374.2 kB / 0.5912 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000367/0.2302, allocations: 346.1 kB / 0.5915 GB, free: 13 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.2303, allocations: 83.94 kB / 0.5916 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.911e-05/0.2304, allocations: 76 kB / 0.5916 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001522/0.2306, allocations: 183.3 kB / 0.5918 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002948/0.2309, allocations: 381.7 kB / 0.5922 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008781/0.2317, allocations: 0.8566 MB / 0.593 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.2318, allocations: 0 / 0.593 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.535e-06/0.2318, allocations: 4 kB / 0.593 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.037e-05/0.2318, allocations: 4 kB / 0.593 GB, free: 11.43 MB / 0.4981 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.002066/0.2339, allocations: 1.183 MB / 0.5942 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.2339, allocations: 8.031 kB / 0.5942 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001681/0.2341, allocations: 99.81 kB / 0.5943 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008793/0.235, allocations: 0.5909 MB / 0.5949 GB, free: 9.445 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/0.2351, allocations: 101 kB / 0.595 GB, free: 9.336 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.977e-05/0.2352, allocations: 52.38 kB / 0.595 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.2363, allocations: 0.6041 MB / 0.5956 GB, free: 8.641 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.2363, allocations: 0 / 0.5956 GB, free: 8.641 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.4e-05/0.2364, allocations: 20 kB / 0.5956 GB, free: 8.621 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.2364, allocations: 12 kB / 0.5956 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009034/0.2373, allocations: 427.6 kB / 0.596 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002807/0.2401, allocations: 2.118 MB / 0.5981 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.2413, allocations: 0.4959 MB / 0.5986 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004714/0.2418, allocations: 215 kB / 0.5988 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 5.516e-05/0.2419, allocations: 4 kB / 0.5988 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008619/0.2427, allocations: 286.1 kB / 0.5991 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 2.415e-06/0.2427, allocations: 0 / 0.5991 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.001619/0.2444, allocations: 0.6124 MB / 0.5997 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.424e-05/0.2445, allocations: 92.84 kB / 0.5998 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008404/0.2453, allocations: 0.6099 MB / 0.6004 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.678e-05/0.2454, allocations: 33.7 kB / 0.6004 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003728/0.2458, allocations: 356.8 kB / 0.6007 GB, free: 3.234 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001612/0.2459, allocations: 153.8 kB / 0.6009 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001793/0.2461, allocations: 98.14 kB / 0.601 GB, free: 2.98 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001846/0.2463, allocations: 326 kB / 0.6013 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004807/0.2468, allocations: 183 kB / 0.6014 GB, free: 2.477 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005152/0.2473, allocations: 281.3 kB / 0.6017 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001012/0.2484, allocations: 477.9 kB / 0.6022 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.2484, allocations: 3.938 kB / 0.6022 GB, free: 1.66 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001272/0.2496, allocations: 0.6021 MB / 0.6028 GB, free: 1.043 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.339e-05/0.2497, allocations: 33.7 kB / 0.6028 GB, free: 1.004 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.2497, allocations: 3.938 kB / 0.6028 GB, free: 1 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.532e-05/0.2498, allocations: 4 kB / 0.6028 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004811/0.2503, allocations: 111.8 kB / 0.6029 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.725e-05/0.2503, allocations: 8.25 kB / 0.6029 GB, free: 0.8789 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003986/0.2507, allocations: 63.44 kB / 0.603 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.991e-05/0.2507, allocations: 20 kB / 0.603 GB, free: 0.7969 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006091/0.2514, allocations: 309.2 kB / 0.6033 GB, free: 0.4922 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005384/0.2519, allocations: 272.2 kB / 0.6036 GB, free: 196 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.4474/0.6993, allocations: 448.6 kB / 0.604 GB, free: 51.63 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.52e-06/0.6994, allocations: 5.688 kB / 0.604 GB, free: 51.63 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001341/0.7007, allocations: 0.5747 MB / 0.6045 GB, free: 51.57 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.378e-05/0.7007, allocations: 40.28 kB / 0.6046 GB, free: 51.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.7008, allocations: 0.5156 kB / 0.6046 GB, free: 51.54 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.297e-06/0.7008, allocations: 5.312 kB / 0.6046 GB, free: 51.54 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004316/0.7012, allocations: 106.2 kB / 0.6047 GB, free: 51.54 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.7012, allocations: 4.938 kB / 0.6047 GB, free: 51.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003824/0.7016, allocations: 49.19 kB / 0.6047 GB, free: 51.54 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.547e-05/0.7017, allocations: 23.3 kB / 0.6048 GB, free: 51.54 MB / 0.4981 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 (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.0002183/0.7019, allocations: 216.8 kB / 0.605 GB, free: 51.36 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.556e-05/0.702, allocations: 72.22 kB / 0.605 GB, free: 51.36 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002008/0.7022, allocations: 81.45 kB / 0.6051 GB, free: 51.34 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.7022, allocations: 5.844 kB / 0.6051 GB, free: 51.34 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.7022, allocations: 0 / 0.6051 GB, free: 51.34 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.7022, allocations: 4 kB / 0.6051 GB, free: 51.34 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006016/0.7028, allocations: 0.6211 MB / 0.6057 GB, free: 51.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.7029, allocations: 3.219 kB / 0.6057 GB, free: 51.16 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004208/0.7033, allocations: 82.31 kB / 0.6058 GB, free: 51.16 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.7033, allocations: 8.156 kB / 0.6058 GB, free: 51.16 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.245e-05/0.7033, allocations: 10.31 kB / 0.6058 GB, free: 51.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.7033, allocations: 0 / 0.6058 GB, free: 51.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.7033, allocations: 3.469 kB / 0.6058 GB, free: 51.16 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001339/0.7047, allocations: 0.7285 MB / 0.6066 GB, free: 51.09 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001932/0.7049, allocations: 192.3 kB / 0.6067 GB, free: 50.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.104e-05/0.705, allocations: 6.469 kB / 0.6067 GB, free: 50.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003773/0.7054, allocations: 37.53 kB / 0.6068 GB, free: 50.96 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.919e-05/0.7055, allocations: 33.53 kB / 0.6068 GB, free: 50.95 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.706e-05/0.7055, allocations: 16.06 kB / 0.6068 GB, free: 50.95 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004632/0.706, allocations: 433.3 kB / 0.6072 GB, free: 50.85 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.706, allocations: 3.438 kB / 0.6072 GB, free: 50.85 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005882/0.7066, allocations: 215.9 kB / 0.6074 GB, free: 50.83 MB / 0.4981 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) * 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.0001373/0.7067, allocations: 117.8 kB / 0.6076 GB, free: 50.74 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001534/0.7083, allocations: 0.8034 MB / 0.6083 GB, free: 50.41 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.7083, allocations: 0 / 0.6083 GB, free: 50.41 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004045/0.7087, allocations: 214 kB / 0.6085 GB, free: 50.36 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009104/0.7096, allocations: 203.5 kB / 0.6087 GB, free: 50.31 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001975/0.7116, allocations: 1.446 MB / 0.6102 GB, free: 49.43 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003496/0.7119, allocations: 0.9176 MB / 0.611 GB, free: 48.73 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003698/0.7123, allocations: 94.08 kB / 0.6111 GB, free: 48.71 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.7125, allocations: 47.09 kB / 0.6112 GB, free: 48.71 MB / 0.4981 GB Notification: Performance of SimCode: time 2.1e-07/0.7125, allocations: 0 / 0.6112 GB, free: 48.71 MB / 0.4981 GB Notification: Performance of Templates: time 0.01346/0.7259, allocations: 7.513 MB / 0.6185 GB, free: 48.29 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.makefile (rm -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.sim & ./IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe 2>&1)