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.001291/0.001291, 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.001139/0.00114, allocations: 190.4 kB / 16.25 MB, free: 6.625 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.382/1.382, allocations: 222.9 MB / 239.9 MB, free: 4.547 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 1.027/1.027, allocations: 143 MB / 433.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 63.84 kB / 0.5137 GB, free: 12.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1706/0.1719, allocations: 82.04 MB / 0.5938 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID): time 0.004717/0.1766, allocations: 3.714 MB / 0.5974 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002334/0.179, allocations: 1.293 MB / 0.5987 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003415/0.1794, allocations: 27.88 kB / 0.5987 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003109/0.1797, allocations: 95.09 kB / 0.5988 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004822/0.1802, allocations: 135 kB / 0.5989 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001067/0.1813, allocations: 0.5388 MB / 0.5994 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0008765/0.1821, allocations: 0.9487 MB / 0.6004 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005038/0.1827, allocations: 357.6 kB / 0.6007 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004033/0.1831, allocations: 366.2 kB / 0.6011 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000333/0.1834, allocations: 350.1 kB / 0.6014 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001038/0.1835, allocations: 76 kB / 0.6015 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.82e-05/0.1836, allocations: 83.94 kB / 0.6015 GB, free: 1.988 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001335/0.1838, allocations: 175.4 kB / 0.6017 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002743/0.184, allocations: 393.6 kB / 0.6021 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006967/0.1847, allocations: 0.8761 MB / 0.6029 GB, free: 0.5508 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1848, allocations: 0 / 0.6029 GB, free: 0.5508 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.775e-06/0.1848, allocations: 4 kB / 0.6029 GB, free: 0.5469 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.398e-06/0.1848, allocations: 0 / 0.6029 GB, free: 0.5469 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.3193/0.504, allocations: 1.176 MB / 0.6041 GB, free: 43.95 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.5041, allocations: 9.562 kB / 0.6041 GB, free: 43.95 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.5043, allocations: 94.64 kB / 0.6042 GB, free: 43.9 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007938/0.5051, allocations: 0.5979 MB / 0.6048 GB, free: 43.6 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.273e-05/0.5052, allocations: 96.69 kB / 0.6049 GB, free: 43.54 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.643e-05/0.5052, allocations: 57.62 kB / 0.6049 GB, free: 43.54 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009329/0.5062, allocations: 0.5967 MB / 0.6055 GB, free: 43.4 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.5062, allocations: 10.41 kB / 0.6055 GB, free: 43.4 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.028e-05/0.5063, allocations: 21.3 kB / 0.6055 GB, free: 43.4 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.5063, allocations: 11.22 kB / 0.6055 GB, free: 43.4 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000828/0.5071, allocations: 423.1 kB / 0.6059 GB, free: 43.39 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002281/0.5094, allocations: 2.117 MB / 0.608 GB, free: 42.38 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.5104, allocations: 0.4912 MB / 0.6085 GB, free: 42.35 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003789/0.5108, allocations: 220.3 kB / 0.6087 GB, free: 42.32 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.596e-05/0.5109, allocations: 7.344 kB / 0.6087 GB, free: 42.31 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006209/0.5115, allocations: 281.5 kB / 0.609 GB, free: 42.2 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 2.424e-06/0.5115, allocations: 0 / 0.609 GB, free: 42.2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.001239/0.5128, allocations: 0.6064 MB / 0.6096 GB, free: 41.96 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.825e-05/0.5128, allocations: 96.92 kB / 0.6097 GB, free: 41.86 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005243/0.5133, allocations: 0.6098 MB / 0.6103 GB, free: 41.59 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.784e-05/0.5134, allocations: 33.83 kB / 0.6103 GB, free: 41.55 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001713/0.5136, allocations: 355.1 kB / 0.6106 GB, free: 41.27 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.871e-05/0.5137, allocations: 159.4 kB / 0.6108 GB, free: 41.15 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001304/0.5138, allocations: 93.97 kB / 0.6109 GB, free: 41.1 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.189e-05/0.5139, allocations: 324.5 kB / 0.6112 GB, free: 40.79 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003714/0.5142, allocations: 190.1 kB / 0.6114 GB, free: 40.72 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003923/0.5146, allocations: 277.1 kB / 0.6116 GB, free: 40.55 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007511/0.5154, allocations: 482.9 kB / 0.6121 GB, free: 40.28 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.5154, allocations: 0.6875 kB / 0.6121 GB, free: 40.28 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009615/0.5164, allocations: 0.6006 MB / 0.6127 GB, free: 40.02 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.202e-05/0.5164, allocations: 35.69 kB / 0.6127 GB, free: 39.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.5164, allocations: 2.906 kB / 0.6127 GB, free: 39.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.5165, allocations: 9.969 kB / 0.6127 GB, free: 39.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004325/0.5169, allocations: 105.2 kB / 0.6128 GB, free: 39.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.5169, allocations: 8.984 kB / 0.6128 GB, free: 39.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003495/0.5173, allocations: 65.16 kB / 0.6129 GB, free: 39.95 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.343e-05/0.5173, allocations: 21.53 kB / 0.6129 GB, free: 39.94 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004493/0.5178, allocations: 310.1 kB / 0.6132 GB, free: 39.76 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003813/0.5182, allocations: 267.2 kB / 0.6135 GB, free: 39.59 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006555/0.5188, allocations: 447.1 kB / 0.6139 GB, free: 39.33 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.843e-06/0.5188, allocations: 4 kB / 0.6139 GB, free: 39.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.0009113/0.5198, allocations: 0.5791 MB / 0.6145 GB, free: 39.06 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.903e-05/0.5198, allocations: 34.14 kB / 0.6145 GB, free: 39.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.5198, allocations: 7.5 kB / 0.6145 GB, free: 39.03 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.454e-06/0.5198, allocations: 5.844 kB / 0.6145 GB, free: 39.03 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004059/0.5202, allocations: 105.2 kB / 0.6146 GB, free: 39.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.5203, allocations: 9.969 kB / 0.6146 GB, free: 39.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003298/0.5206, allocations: 50.83 kB / 0.6147 GB, free: 39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.211e-05/0.5206, allocations: 18.19 kB / 0.6147 GB, free: 39 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.0001649/0.5208, allocations: 208.7 kB / 0.6149 GB, free: 38.8 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.376e-05/0.5209, allocations: 80.47 kB / 0.615 GB, free: 38.75 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001386/0.521, allocations: 82.5 kB / 0.615 GB, free: 38.7 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.521, allocations: 9.781 kB / 0.615 GB, free: 38.7 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.5211, allocations: 0 / 0.615 GB, free: 38.7 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.5211, allocations: 3.328 kB / 0.615 GB, free: 38.7 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006048/0.5217, allocations: 0.6168 MB / 0.6156 GB, free: 38.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.5217, allocations: 0 / 0.6156 GB, free: 38.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004277/0.5221, allocations: 87.95 kB / 0.6157 GB, free: 38.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.5221, allocations: 4.984 kB / 0.6157 GB, free: 38.33 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.195e-05/0.5222, allocations: 11 kB / 0.6157 GB, free: 38.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.085e-06/0.5222, allocations: 2.688 kB / 0.6158 GB, free: 38.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.5222, allocations: 0 / 0.6158 GB, free: 38.32 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001284/0.5235, allocations: 0.7285 MB / 0.6165 GB, free: 37.99 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001759/0.5237, allocations: 197.6 kB / 0.6167 GB, free: 37.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.255e-05/0.5237, allocations: 6.656 kB / 0.6167 GB, free: 37.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000381/0.5241, allocations: 36.88 kB / 0.6167 GB, free: 37.81 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.185e-05/0.5242, allocations: 31.06 kB / 0.6167 GB, free: 37.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.454e-05/0.5243, allocations: 26.34 kB / 0.6167 GB, free: 37.8 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004209/0.5247, allocations: 428.8 kB / 0.6172 GB, free: 37.61 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5247, allocations: 0 / 0.6172 GB, free: 37.61 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005714/0.5253, allocations: 213.8 kB / 0.6174 GB, free: 37.56 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.0001283/0.5254, allocations: 111.5 kB / 0.6175 GB, free: 37.46 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00147/0.5269, allocations: 0.802 MB / 0.6182 GB, free: 37.14 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.5269, allocations: 0 / 0.6182 GB, free: 37.14 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004105/0.5273, allocations: 219.7 kB / 0.6185 GB, free: 37.07 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000867/0.5282, allocations: 215.1 kB / 0.6187 GB, free: 37.01 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001851/0.5301, allocations: 1.45 MB / 0.6201 GB, free: 36.11 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002766/0.5304, allocations: 0.9165 MB / 0.621 GB, free: 35.4 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003877/0.5307, allocations: 88.92 kB / 0.6211 GB, free: 35.39 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.5309, allocations: 44.47 kB / 0.6211 GB, free: 35.38 MB / 0.4981 GB Notification: Performance of SimCode: time 5.51e-07/0.5309, allocations: 2.938 kB / 0.6211 GB, free: 35.38 MB / 0.4981 GB Notification: Performance of Templates: time 0.01162/0.5425, allocations: 7.536 MB / 0.6285 GB, free: 34.95 MB / 0.4981 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)