Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_11_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.007643/0.007643, allocations: 99.84 kB / 15.73 MB, free: 6.496 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.002136/0.002136, allocations: 196 kB / 16.68 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.205/2.205, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 3.787/3.787, allocations: 469.8 MB / 0.7425 GB, free: 7.25 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002711/0.002711, allocations: 67.83 kB / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3399/0.3427, allocations: 159.1 MB / 1.22 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004895/0.3476, allocations: 3.714 MB / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00239/0.35, allocations: 1.329 MB / 1.225 GB, free: 9.223 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000284/0.3503, allocations: 23.88 kB / 1.225 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0003064/0.3506, allocations: 130.6 kB / 1.225 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.000479/0.3511, allocations: 178.5 kB / 1.225 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001126/0.3523, allocations: 0.5755 MB / 1.226 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0009881/0.3533, allocations: 0.9643 MB / 1.227 GB, free: 7.359 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005185/0.3538, allocations: 353.6 kB / 1.227 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003992/0.3542, allocations: 362.4 kB / 1.228 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003778/0.3546, allocations: 346.1 kB / 1.228 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.000126/0.3547, allocations: 80 kB / 1.228 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001177/0.3548, allocations: 76 kB / 1.228 GB, free: 6.148 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001654/0.355, allocations: 183.2 kB / 1.228 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0003229/0.3553, allocations: 377.7 kB / 1.229 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0008749/0.3562, allocations: 0.8944 MB / 1.229 GB, free: 4.699 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3562, allocations: 4 kB / 1.229 GB, free: 4.695 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3562, allocations: 0 / 1.229 GB, free: 4.695 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.278e-06/0.3563, allocations: 0 / 1.229 GB, free: 4.695 MB / 0.9825 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.002078/0.3583, allocations: 1.212 MB / 1.231 GB, free: 3.426 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.3584, allocations: 16.03 kB / 1.231 GB, free: 3.41 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000111/0.3585, allocations: 90.7 kB / 1.231 GB, free: 3.312 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001427/0.3586, allocations: 96.33 kB / 1.231 GB, free: 3.219 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009885/0.3596, allocations: 0.6304 MB / 1.231 GB, free: 2.547 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/0.3598, allocations: 96.97 kB / 1.232 GB, free: 2.441 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.77e-05/0.3599, allocations: 52.38 kB / 1.232 GB, free: 2.391 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.361, allocations: 0.604 MB / 1.232 GB, free: 1.75 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.361, allocations: 0 / 1.232 GB, free: 1.75 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.275e-05/0.3611, allocations: 23.94 kB / 1.232 GB, free: 1.727 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.3611, allocations: 12 kB / 1.232 GB, free: 1.715 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001039/0.3621, allocations: 423.6 kB / 1.233 GB, free: 1.297 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002824/0.365, allocations: 2.107 MB / 1.235 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00129/0.3663, allocations: 0.5039 MB / 1.235 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004974/0.3668, allocations: 220.7 kB / 1.235 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.596e-05/0.3668, allocations: 7.938 kB / 1.235 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006698/0.3675, allocations: 282.2 kB / 1.236 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=45): time 1.894e-06/0.3675, allocations: 0 / 1.236 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of matching and sorting (n=45): time 0.001522/0.369, allocations: 0.6141 MB / 1.236 GB, free: 13.45 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.16e-05/0.3691, allocations: 96.77 kB / 1.236 GB, free: 13.34 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007467/0.3699, allocations: 0.6178 MB / 1.237 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.438e-05/0.3699, allocations: 33.7 kB / 1.237 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002915/0.3702, allocations: 357.2 kB / 1.237 GB, free: 12.32 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.3704, allocations: 162.6 kB / 1.237 GB, free: 12.16 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.3705, allocations: 90.25 kB / 1.238 GB, free: 12.07 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.3707, allocations: 326 kB / 1.238 GB, free: 11.74 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004787/0.3712, allocations: 187 kB / 1.238 GB, free: 11.56 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005487/0.3717, allocations: 276.2 kB / 1.238 GB, free: 11.25 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009912/0.3727, allocations: 489.7 kB / 1.239 GB, free: 10.74 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.3727, allocations: 0 / 1.239 GB, free: 10.74 MB / 0.9981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001271/0.374, allocations: 0.5988 MB / 1.239 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.602e-05/0.374, allocations: 38.73 kB / 1.239 GB, free: 10.08 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.3741, allocations: 0 / 1.239 GB, free: 10.08 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/0.3741, allocations: 7.984 kB / 1.239 GB, free: 10.07 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004904/0.3746, allocations: 107.9 kB / 1.24 GB, free: 9.969 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.3746, allocations: 7.938 kB / 1.24 GB, free: 9.961 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003845/0.375, allocations: 67.53 kB / 1.24 GB, free: 9.895 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.954e-05/0.375, allocations: 24.16 kB / 1.24 GB, free: 9.871 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005748/0.3756, allocations: 305.2 kB / 1.24 GB, free: 9.57 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004941/0.3761, allocations: 272.2 kB / 1.24 GB, free: 9.27 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008822/0.377, allocations: 454 kB / 1.241 GB, free: 8.785 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.767e-06/0.377, allocations: 0 / 1.241 GB, free: 8.785 MB / 0.9981 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.00116/0.3782, allocations: 0.579 MB / 1.241 GB, free: 8.191 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.503e-05/0.3783, allocations: 37.69 kB / 1.241 GB, free: 8.148 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.196e-06/0.3783, allocations: 320 / 1.241 GB, free: 8.148 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.911e-06/0.3783, allocations: 12 kB / 1.241 GB, free: 8.137 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000455/0.3787, allocations: 99.83 kB / 1.241 GB, free: 8.039 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.3788, allocations: 7.984 kB / 1.241 GB, free: 8.031 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003546/0.3791, allocations: 47.77 kB / 1.241 GB, free: 7.984 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.524e-05/0.3792, allocations: 16 kB / 1.241 GB, free: 7.969 MB / 0.9981 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.000173/0.3793, allocations: 217 kB / 1.242 GB, free: 7.75 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.3794, allocations: 83.47 kB / 1.242 GB, free: 7.668 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000162/0.3796, allocations: 79.22 kB / 1.242 GB, free: 7.586 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.3796, allocations: 4 kB / 1.242 GB, free: 7.582 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3796, allocations: 0 / 1.242 GB, free: 7.582 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3796, allocations: 3.984 kB / 1.242 GB, free: 7.578 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007142/0.3804, allocations: 0.6296 MB / 1.242 GB, free: 6.898 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.3804, allocations: 0 / 1.242 GB, free: 6.898 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004668/0.3809, allocations: 83.88 kB / 1.242 GB, free: 6.816 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3809, allocations: 0 / 1.242 GB, free: 6.816 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.843e-05/0.3809, allocations: 20 kB / 1.242 GB, free: 6.797 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.429e-06/0.3809, allocations: 4 kB / 1.242 GB, free: 6.793 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3809, allocations: 3.938 kB / 1.242 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001609/0.3825, allocations: 0.7293 MB / 1.243 GB, free: 6.043 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002325/0.3828, allocations: 192.6 kB / 1.243 GB, free: 5.836 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.3829, allocations: 8 kB / 1.243 GB, free: 5.828 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004427/0.3834, allocations: 39.95 kB / 1.243 GB, free: 5.789 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.107e-05/0.3835, allocations: 27.95 kB / 1.243 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.917e-05/0.3835, allocations: 19.98 kB / 1.243 GB, free: 5.742 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004973/0.384, allocations: 435 kB / 1.244 GB, free: 5.32 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.384, allocations: 0 / 1.244 GB, free: 5.32 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005733/0.3846, allocations: 219.5 kB / 1.244 GB, free: 5.105 MB / 0.9981 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.001904/0.3865, allocations: 1.297 MB / 1.245 GB, free: 3.777 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001646/0.3882, allocations: 0.7855 MB / 1.246 GB, free: 2.969 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.3882, allocations: 7.938 kB / 1.246 GB, free: 2.961 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004868/0.3887, allocations: 219.8 kB / 1.246 GB, free: 2.746 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009383/0.3896, allocations: 202.7 kB / 1.247 GB, free: 2.562 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5121/0.9017, allocations: 5.362 MB / 1.252 GB, free: 28.16 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003516/0.9021, allocations: 0.9176 MB / 1.253 GB, free: 27.46 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.000414/0.9025, allocations: 89.2 kB / 1.253 GB, free: 27.46 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003028/0.9028, allocations: 261 kB / 1.253 GB, free: 27.46 MB / 0.9981 GB Notification: Performance of SimCode: time 6.51e-07/0.9028, allocations: 0 / 1.253 GB, free: 27.46 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04064/0.9435, allocations: 14.04 MB / 1.267 GB, free: 26.38 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.51/18.45, allocations: 5.219 kB / 1.267 GB, free: 26.38 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.Continuous.Examples.LimPID_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches