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.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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: "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009314/0.0009312, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001124/0.001124, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.656/1.656, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.228/1.228, allocations: 143.4 MB / 434.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003816/0.0003818, allocations: 12 kB / 0.5161 GB, free: 11.18 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2266/0.227, allocations: 83.41 MB / 0.5975 GB, free: 7.707 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID): time 0.004761/0.2319, allocations: 3.121 MB / 0.6006 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003311/0.2352, allocations: 1.259 MB / 0.6018 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009352/0.2362, allocations: 23.88 kB / 0.6018 GB, free: 3.277 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005209/0.2368, allocations: 87.11 kB / 0.6019 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0009177/0.2377, allocations: 131.1 kB / 0.602 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001551/0.2393, allocations: 465.4 kB / 0.6025 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001495/0.2408, allocations: 0.82 MB / 0.6033 GB, free: 1.793 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006559/0.2414, allocations: 247.1 kB / 0.6035 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006041/0.242, allocations: 278.5 kB / 0.6038 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005218/0.2426, allocations: 266.3 kB / 0.604 GB, free: 1.004 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001687/0.2428, allocations: 20 kB / 0.6041 GB, free: 0.9844 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000122/0.2429, allocations: 20 kB / 0.6041 GB, free: 0.9648 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001428/0.243, allocations: 107.4 kB / 0.6042 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002055/0.2432, allocations: 141.3 kB / 0.6043 GB, free: 0.7148 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007353/0.244, allocations: 0.647 MB / 0.6049 GB, free: 68 kB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.244, allocations: 0 / 0.6049 GB, free: 68 kB / 0.4981 GB Notification: Performance of FrontEnd: time 2.164e-06/0.244, allocations: 0 / 0.6049 GB, free: 68 kB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.16e-05/0.2441, allocations: 0 / 0.6049 GB, free: 68 kB / 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.6152/0.8592, allocations: 1.064 MB / 0.606 GB, free: 40.64 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 7.974e-05/0.8594, allocations: 8.938 kB / 0.606 GB, free: 40.64 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002089/0.8596, allocations: 93.38 kB / 0.6061 GB, free: 40.61 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001971/0.8598, allocations: 93.41 kB / 0.6062 GB, free: 40.56 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001218/0.861, allocations: 0.5663 MB / 0.6067 GB, free: 40.28 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001586/0.8612, allocations: 101.5 kB / 0.6068 GB, free: 40.22 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001077/0.8613, allocations: 53.06 kB / 0.6069 GB, free: 40.22 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001381/0.8627, allocations: 0.6129 MB / 0.6075 GB, free: 40.09 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/0.8627, allocations: 3.844 kB / 0.6075 GB, free: 40.09 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.723e-05/0.8628, allocations: 21.47 kB / 0.6075 GB, free: 40.09 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.325e-05/0.8628, allocations: 14.08 kB / 0.6075 GB, free: 40.09 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001063/0.8639, allocations: 435.5 kB / 0.6079 GB, free: 40.08 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003509/0.8674, allocations: 2.131 MB / 0.61 GB, free: 39.05 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001415/0.8689, allocations: 0.5223 MB / 0.6105 GB, free: 39 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005391/0.8694, allocations: 233.8 kB / 0.6107 GB, free: 38.98 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 5.292e-05/0.8695, allocations: 5.969 kB / 0.6107 GB, free: 38.98 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008329/0.8703, allocations: 288.1 kB / 0.611 GB, free: 38.93 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 4.037e-06/0.8703, allocations: 0 / 0.611 GB, free: 38.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.001642/0.872, allocations: 0.6455 MB / 0.6116 GB, free: 38.84 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.17e-05/0.8721, allocations: 83.86 kB / 0.6117 GB, free: 38.74 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008903/0.873, allocations: 0.6088 MB / 0.6123 GB, free: 38.61 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.99e-05/0.8731, allocations: 35.05 kB / 0.6124 GB, free: 38.58 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003601/0.8734, allocations: 352.5 kB / 0.6127 GB, free: 38.44 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001886/0.8736, allocations: 157.5 kB / 0.6128 GB, free: 38.34 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.062e-05/0.8737, allocations: 10.31 kB / 0.6129 GB, free: 38.34 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001932/0.8739, allocations: 327.6 kB / 0.6132 GB, free: 38.03 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005772/0.8745, allocations: 180 kB / 0.6133 GB, free: 38.03 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006622/0.8751, allocations: 287.7 kB / 0.6136 GB, free: 37.93 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006189/0.8758, allocations: 240.6 kB / 0.6138 GB, free: 37.88 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.8758, allocations: 6.766 kB / 0.6138 GB, free: 37.88 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001345/0.8771, allocations: 0.6136 MB / 0.6144 GB, free: 37.75 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002057/0.8773, allocations: 187 kB / 0.6146 GB, free: 37.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.8774, allocations: 2.906 kB / 0.6146 GB, free: 37.54 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.009e-05/0.8774, allocations: 2.844 kB / 0.6146 GB, free: 37.54 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004909/0.8779, allocations: 121.1 kB / 0.6147 GB, free: 37.53 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.011e-05/0.8779, allocations: 7.531 kB / 0.6148 GB, free: 37.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004165/0.8784, allocations: 66.03 kB / 0.6148 GB, free: 37.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.371e-05/0.8784, allocations: 23.78 kB / 0.6148 GB, free: 37.5 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.8784, allocations: 4.156 kB / 0.6148 GB, free: 37.5 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001056/0.8795, allocations: 0.5041 MB / 0.6153 GB, free: 37.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.8795, allocations: 3.344 kB / 0.6153 GB, free: 37.44 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.334e-06/0.8795, allocations: 6.812 kB / 0.6153 GB, free: 37.43 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004481/0.88, allocations: 107.7 kB / 0.6154 GB, free: 37.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.88, allocations: 2.969 kB / 0.6154 GB, free: 37.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003378/0.8804, allocations: 60.42 kB / 0.6155 GB, free: 37.4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-05/0.8804, allocations: 18.42 kB / 0.6155 GB, free: 37.4 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004714/0.8809, allocations: 280.2 kB / 0.6158 GB, free: 37.2 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/0.881, allocations: 77.7 kB / 0.6159 GB, free: 37.16 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002427/0.8813, allocations: 79.59 kB / 0.6159 GB, free: 37.14 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.582e-05/0.8813, allocations: 6.469 kB / 0.6159 GB, free: 37.14 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.781e-05/0.8813, allocations: 0 / 0.6159 GB, free: 37.14 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.8813, allocations: 0.8125 kB / 0.6159 GB, free: 37.14 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001055/0.8824, allocations: 0.6217 MB / 0.6166 GB, free: 36.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.8824, allocations: 0 / 0.6166 GB, free: 36.88 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004487/0.8829, allocations: 94.25 kB / 0.6166 GB, free: 36.87 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.091e-06/0.8829, allocations: 2.469 kB / 0.6166 GB, free: 36.87 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.062e-05/0.8829, allocations: 15.77 kB / 0.6167 GB, free: 36.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.502e-06/0.8829, allocations: 3.578 kB / 0.6167 GB, free: 36.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.8829, allocations: 0 / 0.6167 GB, free: 36.86 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001546/0.8845, allocations: 0.7491 MB / 0.6174 GB, free: 36.52 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002456/0.8848, allocations: 187.8 kB / 0.6176 GB, free: 36.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.323e-05/0.8848, allocations: 16.72 kB / 0.6176 GB, free: 36.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003512/0.8852, allocations: 45.7 kB / 0.6176 GB, free: 36.34 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/0.8854, allocations: 38.03 kB / 0.6177 GB, free: 36.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.423e-05/0.8854, allocations: 13.38 kB / 0.6177 GB, free: 36.34 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0005835/0.886, allocations: 428.2 kB / 0.6181 GB, free: 36.15 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.886, allocations: 0 / 0.6181 GB, free: 36.15 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0008022/0.8868, allocations: 215.3 kB / 0.6183 GB, free: 36.09 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001828/0.8886, allocations: 1.303 MB / 0.6196 GB, free: 35.22 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001763/0.8904, allocations: 0.808 MB / 0.6204 GB, free: 34.86 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.8904, allocations: 0.75 kB / 0.6204 GB, free: 34.86 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004899/0.8909, allocations: 228.4 kB / 0.6206 GB, free: 34.79 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/0.892, allocations: 198 kB / 0.6208 GB, free: 34.73 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007655/0.8996, allocations: 3.994 MB / 0.6247 GB, free: 32.66 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007654/0.9005, allocations: 0.9136 MB / 0.6256 GB, free: 31.96 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005596/0.901, allocations: 97.47 kB / 0.6257 GB, free: 31.94 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004082/0.9014, allocations: 260 kB / 0.6259 GB, free: 31.75 MB / 0.4981 GB Notification: Performance of SimCode: time 2.885e-06/0.9015, allocations: 0 / 0.6259 GB, free: 31.75 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05526/0.9567, allocations: 13.24 MB / 0.6388 GB, free: 30.89 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003046/0.9571, allocations: 191.3 kB / 0.639 GB, free: 30.66 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.63/3.587, allocations: 0 / 0.639 GB, free: 30.66 MB / 0.4981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPID.fmu > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe 2>&1) Environment - environmentSimulation: