Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_latest_Buildings_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.004484/0.004484, allocations: 99.95 kB / 15.73 MB, free: 6.016 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.001086/0.001086, allocations: 187.6 kB / 16.67 MB, free: 5.93 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.304/1.304, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.555/2.555, allocations: 469.4 MB / 0.7422 GB, free: 3.496 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 59.91 kB / 1.064 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6634/0.6647, allocations: 159.1 MB / 1.22 GB, free: 2.277 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.00458/0.6693, allocations: 3.715 MB / 1.223 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002469/0.6718, allocations: 1.313 MB / 1.225 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004513/0.6723, allocations: 27.81 kB / 1.225 GB, free: 13.19 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0003395/0.6726, allocations: 122.7 kB / 1.225 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0005829/0.6732, allocations: 194.5 kB / 1.225 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001137/0.6744, allocations: 0.577 MB / 1.226 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.000974/0.6753, allocations: 0.9642 MB / 1.226 GB, free: 11.34 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005078/0.6759, allocations: 353.6 kB / 1.227 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004415/0.6763, allocations: 378.4 kB / 1.227 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003317/0.6767, allocations: 350.1 kB / 1.227 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.000112/0.6768, allocations: 76 kB / 1.228 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 9.274e-05/0.6769, allocations: 80 kB / 1.228 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001444/0.677, allocations: 183.2 kB / 1.228 GB, free: 9.93 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002938/0.6773, allocations: 377.7 kB / 1.228 GB, free: 9.559 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0008097/0.6781, allocations: 0.8941 MB / 1.229 GB, free: 8.664 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.6782, allocations: 7.938 kB / 1.229 GB, free: 8.656 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.452e-06/0.6782, allocations: 0 / 1.229 GB, free: 8.656 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.481e-05/0.6782, allocations: 0 / 1.229 GB, free: 8.656 MB / 0.9512 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.001969/0.6802, allocations: 1.214 MB / 1.23 GB, free: 7.383 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.6802, allocations: 8.625 kB / 1.23 GB, free: 7.375 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.798e-05/0.6803, allocations: 90.7 kB / 1.23 GB, free: 7.277 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000148/0.6805, allocations: 100.3 kB / 1.23 GB, free: 7.18 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009744/0.6814, allocations: 0.6227 MB / 1.231 GB, free: 6.516 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.925e-05/0.6815, allocations: 92.97 kB / 1.231 GB, free: 6.414 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.085e-05/0.6816, allocations: 56.38 kB / 1.231 GB, free: 6.359 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001041/0.6827, allocations: 0.604 MB / 1.232 GB, free: 5.719 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.6827, allocations: 3.938 kB / 1.232 GB, free: 5.715 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.529e-05/0.6828, allocations: 24 kB / 1.232 GB, free: 5.691 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.6828, allocations: 12 kB / 1.232 GB, free: 5.68 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009561/0.6837, allocations: 427.6 kB / 1.232 GB, free: 5.258 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002545/0.6863, allocations: 2.095 MB / 1.234 GB, free: 3.082 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001195/0.6875, allocations: 0.5068 MB / 1.235 GB, free: 2.562 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004576/0.688, allocations: 220.7 kB / 1.235 GB, free: 2.344 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.341e-05/0.688, allocations: 11.92 kB / 1.235 GB, free: 2.332 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006165/0.6886, allocations: 274.2 kB / 1.235 GB, free: 2.051 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=45): time 2.034e-06/0.6887, allocations: 0 / 1.235 GB, free: 2.051 MB / 0.9512 GB Notification: Performance of matching and sorting (n=45): time 0.001427/0.6901, allocations: 0.6219 MB / 1.236 GB, free: 1.422 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.071e-05/0.6902, allocations: 88.84 kB / 1.236 GB, free: 1.316 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006509/0.6908, allocations: 0.6217 MB / 1.237 GB, free: 0.6875 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.32e-05/0.6909, allocations: 33.7 kB / 1.237 GB, free: 0.6484 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002376/0.6911, allocations: 357.2 kB / 1.237 GB, free: 300 kB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.6912, allocations: 162.6 kB / 1.237 GB, free: 136 kB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001425/0.6914, allocations: 94.25 kB / 1.237 GB, free: 36 kB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001096/0.6915, allocations: 334 kB / 1.237 GB, free: 15.7 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004533/0.692, allocations: 179 kB / 1.238 GB, free: 15.53 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000497/0.6925, allocations: 280.2 kB / 1.238 GB, free: 15.22 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009104/0.6934, allocations: 477.9 kB / 1.238 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.6934, allocations: 4 kB / 1.238 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001161/0.6946, allocations: 0.6026 MB / 1.239 GB, free: 14.1 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.245e-05/0.6946, allocations: 33.7 kB / 1.239 GB, free: 14.06 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.6946, allocations: 4 kB / 1.239 GB, free: 14.05 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.6946, allocations: 9.078 kB / 1.239 GB, free: 14.05 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004812/0.6951, allocations: 103.9 kB / 1.239 GB, free: 13.95 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.6952, allocations: 7.938 kB / 1.239 GB, free: 13.94 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004033/0.6956, allocations: 71.8 kB / 1.239 GB, free: 13.87 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.61e-05/0.6956, allocations: 19.98 kB / 1.239 GB, free: 13.85 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005386/0.6962, allocations: 309.2 kB / 1.239 GB, free: 13.54 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004555/0.6966, allocations: 264.3 kB / 1.24 GB, free: 13.25 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008214/0.6974, allocations: 461.8 kB / 1.24 GB, free: 12.75 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.114e-06/0.6975, allocations: 0 / 1.24 GB, free: 12.75 MB / 0.9669 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.00106/0.6985, allocations: 0.5754 MB / 1.241 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/0.6986, allocations: 43.62 kB / 1.241 GB, free: 12.12 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.6986, allocations: 4 kB / 1.241 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.49e-06/0.6986, allocations: 4 kB / 1.241 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004478/0.699, allocations: 107.8 kB / 1.241 GB, free: 12 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.323e-06/0.6991, allocations: 7.984 kB / 1.241 GB, free: 12 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003668/0.6994, allocations: 43.77 kB / 1.241 GB, free: 11.95 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.265e-05/0.6995, allocations: 23.94 kB / 1.241 GB, free: 11.93 MB / 0.9669 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.0001443/0.6996, allocations: 218.7 kB / 1.241 GB, free: 11.71 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.509e-05/0.6997, allocations: 83.47 kB / 1.241 GB, free: 11.63 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001381/0.6999, allocations: 75.22 kB / 1.241 GB, free: 11.55 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.6999, allocations: 8 kB / 1.241 GB, free: 11.55 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.6999, allocations: 0 / 1.241 GB, free: 11.55 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.6999, allocations: 3.984 kB / 1.241 GB, free: 11.54 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006015/0.7005, allocations: 0.6257 MB / 1.242 GB, free: 10.87 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.7005, allocations: 0 / 1.242 GB, free: 10.87 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000474/0.701, allocations: 91.81 kB / 1.242 GB, free: 10.78 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.701, allocations: 4 kB / 1.242 GB, free: 10.77 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.17e-05/0.701, allocations: 12 kB / 1.242 GB, free: 10.76 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.7011, allocations: 0 / 1.242 GB, free: 10.76 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.7011, allocations: 0 / 1.242 GB, free: 10.76 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001466/0.7025, allocations: 0.7293 MB / 1.243 GB, free: 10.02 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002157/0.7028, allocations: 196.5 kB / 1.243 GB, free: 9.805 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.565e-05/0.7028, allocations: 8 kB / 1.243 GB, free: 9.797 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004284/0.7033, allocations: 35.95 kB / 1.243 GB, free: 9.762 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.458e-05/0.7034, allocations: 35.95 kB / 1.243 GB, free: 9.727 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.44e-05/0.7034, allocations: 15.98 kB / 1.243 GB, free: 9.711 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0004464/0.7039, allocations: 431 kB / 1.243 GB, free: 9.293 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7039, allocations: 0 / 1.243 GB, free: 9.293 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0005576/0.7044, allocations: 219.5 kB / 1.244 GB, free: 9.078 MB / 0.9669 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.001718/0.7061, allocations: 1.289 MB / 1.245 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001494/0.7077, allocations: 0.7855 MB / 1.246 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.7077, allocations: 4.062 kB / 1.246 GB, free: 6.945 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0004651/0.7081, allocations: 219.7 kB / 1.246 GB, free: 6.73 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008722/0.709, allocations: 209.5 kB / 1.246 GB, free: 6.531 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007221/0.7163, allocations: 5.369 MB / 1.251 GB, free: 1.004 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003757/0.7166, allocations: 0.918 MB / 1.252 GB, free: 60 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.000371/0.717, allocations: 89.11 kB / 1.252 GB, free: 15.97 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003333/0.7174, allocations: 263.3 kB / 1.253 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of SimCode: time 4.51e-07/0.7174, allocations: 0 / 1.253 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03083/0.7482, allocations: 14.05 MB / 1.266 GB, free: 1.844 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.201/8.949, allocations: 7.781 kB / 1.266 GB, free: 1.84 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches