Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID") translateModel(BuildingSystems.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.0009939/0.0009939, allocations: 105.5 kB / 15.98 MB, free: 6.352 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.0009589/0.0009592, allocations: 195.6 kB / 16.91 MB, free: 6.188 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.221/1.221, allocations: 222.9 MB / 240.6 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001993/0.001993, allocations: 285.5 kB / 291 MB, free: 14.76 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8801/0.8801, allocations: 169.2 MB / 0.4985 GB, free: 4.742 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 85.58 kB / 0.5953 GB, free: 15.58 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1768/0.1785, allocations: 86.98 MB / 0.6803 GB, free: 8.621 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPID): time 0.00472/0.1832, allocations: 3.739 MB / 0.6839 GB, free: 4.859 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002073/0.1853, allocations: 1.286 MB / 0.6852 GB, free: 3.566 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002689/0.1856, allocations: 27.88 kB / 0.6852 GB, free: 3.539 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002884/0.1859, allocations: 91.11 kB / 0.6853 GB, free: 3.449 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004361/0.1864, allocations: 139.1 kB / 0.6854 GB, free: 3.312 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.1874, allocations: 0.5307 MB / 0.6859 GB, free: 2.793 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008584/0.1883, allocations: 0.9682 MB / 0.6869 GB, free: 1.824 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004923/0.1888, allocations: 357.8 kB / 0.6872 GB, free: 1.461 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003724/0.1891, allocations: 370.3 kB / 0.6876 GB, free: 1.098 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003372/0.1895, allocations: 350.1 kB / 0.6879 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.849e-05/0.1896, allocations: 80 kB / 0.688 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.275e-05/0.1897, allocations: 80 kB / 0.6881 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001355/0.1898, allocations: 179.2 kB / 0.6882 GB, free: 432 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002763/0.1901, allocations: 381.7 kB / 0.6886 GB, free: 48 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2671/0.4572, allocations: 0.6445 MB / 0.6892 GB, free: 13.92 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.4572, allocations: 0 / 0.6892 GB, free: 13.92 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.4572, allocations: 0 / 0.6892 GB, free: 13.92 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.907e-05/0.4573, allocations: 0.75 kB / 0.6892 GB, free: 13.92 MB / 494.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.001883/0.4591, allocations: 1.18 MB / 0.6904 GB, free: 13.24 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.4592, allocations: 9.406 kB / 0.6904 GB, free: 13.24 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.4593, allocations: 97.62 kB / 0.6905 GB, free: 13.19 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007993/0.4601, allocations: 0.5947 MB / 0.6911 GB, free: 12.88 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.973e-05/0.4602, allocations: 94.25 kB / 0.6911 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.636e-05/0.4603, allocations: 58.98 kB / 0.6912 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.4614, allocations: 0.6034 MB / 0.6918 GB, free: 12.68 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.4614, allocations: 0.5 kB / 0.6918 GB, free: 12.68 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.551e-05/0.4615, allocations: 28.08 kB / 0.6918 GB, free: 12.68 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.435e-05/0.4615, allocations: 12.97 kB / 0.6918 GB, free: 12.68 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009322/0.4624, allocations: 421.8 kB / 0.6922 GB, free: 12.68 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002444/0.4649, allocations: 2.112 MB / 0.6943 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001116/0.466, allocations: 0.5022 MB / 0.6948 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004197/0.4665, allocations: 219.6 kB / 0.695 GB, free: 11.6 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.994e-05/0.4665, allocations: 5.797 kB / 0.695 GB, free: 11.6 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006092/0.4671, allocations: 283.7 kB / 0.6953 GB, free: 11.54 MB / 494.1 MB Notification: Performance of pre-optimization done (n=45): time 1.734e-06/0.4671, allocations: 0 / 0.6953 GB, free: 11.54 MB / 494.1 MB Notification: Performance of matching and sorting (n=45): time 0.001363/0.4685, allocations: 0.609 MB / 0.6959 GB, free: 11.39 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.496e-05/0.4685, allocations: 90.33 kB / 0.696 GB, free: 11.29 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006731/0.4692, allocations: 0.6128 MB / 0.6966 GB, free: 11.01 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.117e-05/0.4693, allocations: 34.45 kB / 0.6966 GB, free: 10.98 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002039/0.4695, allocations: 356.5 kB / 0.6969 GB, free: 10.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.899e-05/0.4696, allocations: 157.3 kB / 0.6971 GB, free: 10.57 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.4697, allocations: 98.58 kB / 0.6972 GB, free: 10.52 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.225e-05/0.4698, allocations: 324.8 kB / 0.6975 GB, free: 10.21 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004222/0.4702, allocations: 182.4 kB / 0.6977 GB, free: 10.14 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004497/0.4707, allocations: 278.6 kB / 0.6979 GB, free: 9.973 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008168/0.4715, allocations: 480.3 kB / 0.6984 GB, free: 9.703 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.4715, allocations: 1.094 kB / 0.6984 GB, free: 9.703 MB / 494.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001102/0.4726, allocations: 0.6018 MB / 0.699 GB, free: 9.441 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.877e-05/0.4727, allocations: 32.83 kB / 0.699 GB, free: 9.41 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.4727, allocations: 3.094 kB / 0.699 GB, free: 9.41 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.4727, allocations: 4.938 kB / 0.699 GB, free: 9.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004681/0.4732, allocations: 108.2 kB / 0.6991 GB, free: 9.406 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.4732, allocations: 9.016 kB / 0.6991 GB, free: 9.402 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003582/0.4736, allocations: 67.98 kB / 0.6992 GB, free: 9.367 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.881e-05/0.4736, allocations: 20.09 kB / 0.6992 GB, free: 9.363 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00049/0.4741, allocations: 308.5 kB / 0.6995 GB, free: 9.188 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004079/0.4745, allocations: 269.8 kB / 0.6998 GB, free: 9.016 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000734/0.4753, allocations: 455.5 kB / 0.7002 GB, free: 8.75 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.555e-06/0.4753, allocations: 1.062 kB / 0.7002 GB, free: 8.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001015/0.4763, allocations: 0.5815 MB / 0.7008 GB, free: 8.484 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.4763, allocations: 34.05 kB / 0.7008 GB, free: 8.453 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-06/0.4763, allocations: 6.719 kB / 0.7008 GB, free: 8.449 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.452e-06/0.4763, allocations: 9.5 kB / 0.7008 GB, free: 8.449 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004319/0.4768, allocations: 101.7 kB / 0.7009 GB, free: 8.445 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.4768, allocations: 5.5 kB / 0.7009 GB, free: 8.445 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003356/0.4771, allocations: 50.97 kB / 0.701 GB, free: 8.418 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.422e-05/0.4772, allocations: 23.05 kB / 0.701 GB, free: 8.41 MB / 494.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.0001111/0.4773, allocations: 217.6 kB / 0.7012 GB, free: 8.211 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.205e-05/0.4774, allocations: 74.38 kB / 0.7013 GB, free: 8.172 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001282/0.4775, allocations: 79.59 kB / 0.7013 GB, free: 8.117 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.9e-06/0.4775, allocations: 4.719 kB / 0.7013 GB, free: 8.117 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.328e-06/0.4776, allocations: 0.5156 kB / 0.7013 GB, free: 8.117 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.4776, allocations: 3.016 kB / 0.7013 GB, free: 8.117 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006122/0.4782, allocations: 0.6237 MB / 0.7019 GB, free: 7.758 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.4782, allocations: 5.031 kB / 0.702 GB, free: 7.754 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004443/0.4786, allocations: 85.48 kB / 0.702 GB, free: 7.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.4787, allocations: 1.469 kB / 0.702 GB, free: 7.75 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.232e-05/0.4787, allocations: 12.41 kB / 0.702 GB, free: 7.742 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.4787, allocations: 1.25 kB / 0.702 GB, free: 7.742 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.4787, allocations: 0.6094 kB / 0.702 GB, free: 7.742 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001372/0.4801, allocations: 0.7302 MB / 0.7028 GB, free: 7.406 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001715/0.4803, allocations: 187.8 kB / 0.7029 GB, free: 7.246 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.603e-05/0.4803, allocations: 7.406 kB / 0.7029 GB, free: 7.242 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003873/0.4807, allocations: 40.08 kB / 0.703 GB, free: 7.23 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.291e-05/0.4808, allocations: 30.47 kB / 0.703 GB, free: 7.227 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.694e-05/0.4809, allocations: 18.92 kB / 0.703 GB, free: 7.223 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004513/0.4813, allocations: 426 kB / 0.7034 GB, free: 7.039 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4813, allocations: 3 kB / 0.7034 GB, free: 7.039 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005533/0.4819, allocations: 219.8 kB / 0.7037 GB, free: 6.98 MB / 494.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.0001064/0.482, allocations: 114 kB / 0.7038 GB, free: 6.883 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.4836, allocations: 0.8049 MB / 0.7045 GB, free: 6.551 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.4836, allocations: 0 / 0.7045 GB, free: 6.551 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004565/0.484, allocations: 209 kB / 0.7047 GB, free: 6.496 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008687/0.4849, allocations: 214.7 kB / 0.705 GB, free: 6.426 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001898/0.4868, allocations: 1.484 MB / 0.7064 GB, free: 5.48 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003796/0.4872, allocations: 0.9148 MB / 0.7073 GB, free: 4.773 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001704/0.4874, allocations: 50.27 kB / 0.7073 GB, free: 4.766 MB / 494.1 MB Notification: Performance of SimCode: time 2.7e-07/0.4874, allocations: 0 / 0.7073 GB, free: 4.766 MB / 494.1 MB Notification: Performance of Templates: time 0.01165/0.499, allocations: 8.66 MB / 0.7158 GB, free: 2.742 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe 2>&1)