Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.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(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID") translateModel(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.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.001228/0.001228, allocations: 112.5 kB / 15.73 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 196.5 kB / 16.66 MB, free: 6.574 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.257/1.257, allocations: 222.9 MB / 240.3 MB, free: 4.344 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.9191/0.9191, allocations: 143 MB / 433.5 MB, free: 11.4 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 67.88 kB / 0.5955 GB, free: 8.402 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3352, allocations: 82.03 MB / 0.6756 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID): time 0.004052/0.3393, allocations: 3.697 MB / 0.6792 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.002269/0.3416, allocations: 1.324 MB / 0.6805 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003055/0.3419, allocations: 25.88 kB / 0.6805 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0002928/0.3422, allocations: 130.2 kB / 0.6806 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0004358/0.3427, allocations: 183.9 kB / 0.6808 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009955/0.3437, allocations: 0.568 MB / 0.6814 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0008815/0.3446, allocations: 0.9614 MB / 0.6823 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004807/0.345, allocations: 354.5 kB / 0.6826 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003993/0.3454, allocations: 374.2 kB / 0.683 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003396/0.3458, allocations: 351.5 kB / 0.6833 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.000116/0.3459, allocations: 77.94 kB / 0.6834 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001051/0.346, allocations: 78.53 kB / 0.6835 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001398/0.3462, allocations: 182.3 kB / 0.6837 GB, free: 11.24 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002707/0.3465, allocations: 384.8 kB / 0.684 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0007489/0.3472, allocations: 0.9163 MB / 0.6849 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.3472, allocations: 5.359 kB / 0.6849 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.152e-06/0.3472, allocations: 3.938 kB / 0.6849 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.021e-05/0.3472, allocations: 0 / 0.6849 GB, free: 10.2 MB / 0.5137 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.001905/0.3492, allocations: 1.175 MB / 0.6861 GB, free: 9.266 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.3492, allocations: 13.56 kB / 0.6861 GB, free: 9.262 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001555/0.3494, allocations: 98.27 kB / 0.6862 GB, free: 9.211 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009427/0.3503, allocations: 0.6183 MB / 0.6868 GB, free: 8.691 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.3504, allocations: 102 kB / 0.6869 GB, free: 8.605 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.459e-05/0.3505, allocations: 52.03 kB / 0.6869 GB, free: 8.59 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001044/0.3515, allocations: 0.5996 MB / 0.6875 GB, free: 8.176 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.3516, allocations: 1.125 kB / 0.6875 GB, free: 8.176 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.137e-05/0.3516, allocations: 21.62 kB / 0.6875 GB, free: 8.16 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.3516, allocations: 16.73 kB / 0.6876 GB, free: 8.156 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009397/0.3526, allocations: 422.8 kB / 0.688 GB, free: 7.957 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002568/0.3552, allocations: 2.105 MB / 0.69 GB, free: 6.195 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.3563, allocations: 0.4926 MB / 0.6905 GB, free: 5.941 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004432/0.3568, allocations: 215.1 kB / 0.6907 GB, free: 5.836 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.399e-05/0.3568, allocations: 4.688 kB / 0.6907 GB, free: 5.836 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006127/0.3575, allocations: 280.7 kB / 0.691 GB, free: 5.656 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=45): time 2.054e-06/0.3575, allocations: 0 / 0.691 GB, free: 5.656 MB / 0.5137 GB Notification: Performance of matching and sorting (n=45): time 0.001389/0.3589, allocations: 0.6124 MB / 0.6916 GB, free: 5.352 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.27e-05/0.3589, allocations: 89.12 kB / 0.6917 GB, free: 5.25 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000615/0.3596, allocations: 0.6068 MB / 0.6923 GB, free: 4.898 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.321e-05/0.3596, allocations: 37.8 kB / 0.6923 GB, free: 4.859 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002443/0.3599, allocations: 363.1 kB / 0.6926 GB, free: 4.539 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.36, allocations: 156 kB / 0.6928 GB, free: 4.402 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/0.3601, allocations: 99.77 kB / 0.6929 GB, free: 4.336 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001006/0.3602, allocations: 322.1 kB / 0.6932 GB, free: 4.02 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004214/0.3607, allocations: 180.8 kB / 0.6934 GB, free: 3.93 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004984/0.3612, allocations: 284.1 kB / 0.6936 GB, free: 3.625 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008652/0.362, allocations: 489.6 kB / 0.6941 GB, free: 3.109 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3621, allocations: 3.938 kB / 0.6941 GB, free: 3.105 MB / 0.5137 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001117/0.3632, allocations: 0.5943 MB / 0.6947 GB, free: 2.496 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.317e-05/0.3632, allocations: 33.7 kB / 0.6947 GB, free: 2.457 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.3632, allocations: 4 kB / 0.6947 GB, free: 2.453 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.3633, allocations: 4 kB / 0.6947 GB, free: 2.449 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004627/0.3637, allocations: 112.1 kB / 0.6948 GB, free: 2.34 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.3637, allocations: 4 kB / 0.6948 GB, free: 2.336 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003894/0.3641, allocations: 71.34 kB / 0.6949 GB, free: 2.266 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.255e-05/0.3642, allocations: 16 kB / 0.6949 GB, free: 2.25 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000518/0.3647, allocations: 317.1 kB / 0.6952 GB, free: 1.938 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004444/0.3652, allocations: 268.2 kB / 0.6955 GB, free: 1.641 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007893/0.366, allocations: 454 kB / 0.6959 GB, free: 1.156 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.773e-06/0.366, allocations: 0 / 0.6959 GB, free: 1.156 MB / 0.5137 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.00102/0.367, allocations: 0.5826 MB / 0.6965 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.367, allocations: 29.7 kB / 0.6965 GB, free: 0.5234 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.367, allocations: 4 kB / 0.6965 GB, free: 0.5195 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.5e-06/0.367, allocations: 4 kB / 0.6965 GB, free: 0.5156 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004329/0.3675, allocations: 107.9 kB / 0.6966 GB, free: 420 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.004e-06/0.3675, allocations: 7.938 kB / 0.6966 GB, free: 412 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003541/0.3679, allocations: 47.92 kB / 0.6967 GB, free: 364 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.263e-05/0.3679, allocations: 23.98 kB / 0.6967 GB, free: 340 kB / 0.5137 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.0001538/0.3681, allocations: 212.1 kB / 0.6969 GB, free: 120 kB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.881e-05/0.3682, allocations: 75.06 kB / 0.697 GB, free: 44 kB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001732/0.3683, allocations: 79.3 kB / 0.697 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3683, allocations: 4 kB / 0.697 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.986e-06/0.3684, allocations: 3.984 kB / 0.697 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.3684, allocations: 0 / 0.697 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000624/0.369, allocations: 0.6256 MB / 0.6977 GB, free: 15.28 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.369, allocations: 3.984 kB / 0.6977 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004469/0.3695, allocations: 83.89 kB / 0.6977 GB, free: 15.19 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.3695, allocations: 0 / 0.6977 GB, free: 15.19 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.075e-05/0.3695, allocations: 8 kB / 0.6977 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.3695, allocations: 3.938 kB / 0.6978 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.3695, allocations: 0 / 0.6978 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001431/0.371, allocations: 0.7314 MB / 0.6985 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002006/0.3712, allocations: 192.1 kB / 0.6986 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.629e-05/0.3713, allocations: 19.92 kB / 0.6987 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004004/0.3717, allocations: 31.97 kB / 0.6987 GB, free: 14.17 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.503e-05/0.3718, allocations: 31.95 kB / 0.6987 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.369e-05/0.3718, allocations: 15.98 kB / 0.6987 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0004526/0.3723, allocations: 435 kB / 0.6992 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3723, allocations: 0 / 0.6992 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0005495/0.3728, allocations: 215.3 kB / 0.6994 GB, free: 13.49 MB / 0.5294 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.0001428/0.373, allocations: 115.2 kB / 0.6995 GB, free: 13.37 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00146/0.3744, allocations: 0.7853 MB / 0.7002 GB, free: 12.56 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3744, allocations: 0 / 0.7002 GB, free: 12.56 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0004321/0.3749, allocations: 215.9 kB / 0.7004 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008526/0.3757, allocations: 219.5 kB / 0.7007 GB, free: 12.15 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001802/0.3776, allocations: 1.176 MB / 0.7018 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004022/0.378, allocations: 0.9141 MB / 0.7027 GB, free: 10 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003262/0.3783, allocations: 97.11 kB / 0.7028 GB, free: 9.906 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000132/0.3784, allocations: 43.44 kB / 0.7028 GB, free: 9.863 MB / 0.5294 GB Notification: Performance of SimCode: time 5.41e-07/0.3785, allocations: 0 / 0.7028 GB, free: 9.863 MB / 0.5294 GB Notification: Performance of Templates: time 0.01258/0.391, allocations: 7.685 MB / 0.7103 GB, free: 2.277 MB / 0.5294 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.sim & ./BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe 2>&1)