Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.OBC.CDL.Continuous.Validation.PID,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.PID,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PID",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.0008287/0.0008287, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.00507/0.00507, allocations: 171.2 kB / 16.27 MB, free: 6.648 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.292/1.292, allocations: 223.3 MB / 240.3 MB, free: 5.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.135/2.135, allocations: 390.9 MB / 0.6664 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000318/0.000318, allocations: 12 kB / 0.8161 GB, free: 13.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5393/0.5397, allocations: 142.4 MB / 0.9552 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.PID): time 0.002721/0.5424, allocations: 3.137 MB / 0.9582 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002841/0.5453, allocations: 2.065 MB / 0.9603 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004885/0.5458, allocations: 20.84 kB / 0.9603 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002761/0.5461, allocations: 126.7 kB / 0.9604 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002751/0.5464, allocations: 100.9 kB / 0.9605 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007671/0.5471, allocations: 446.2 kB / 0.9609 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006843/0.5478, allocations: 1.14 MB / 0.962 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006221/0.5485, allocations: 0.5607 MB / 0.9626 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002227/0.5487, allocations: 296.2 kB / 0.9629 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002425/0.5489, allocations: 351.3 kB / 0.9632 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.919e-05/0.549, allocations: 29.91 kB / 0.9632 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001036/0.5491, allocations: 44.89 kB / 0.9633 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.497e-05/0.5492, allocations: 141.5 kB / 0.9634 GB, free: 1.16 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002113/0.5494, allocations: 408.5 kB / 0.9638 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0007295/0.5502, allocations: 1.266 MB / 0.965 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.5502, allocations: 1.094 kB / 0.965 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.543e-06/0.5502, allocations: 4 kB / 0.965 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.091e-05/0.5502, allocations: 0 / 0.965 GB, free: 15.78 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.001967/0.5522, allocations: 1.21 MB / 0.9662 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.5522, allocations: 9.75 kB / 0.9662 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001297/0.5524, allocations: 143.8 kB / 0.9664 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001436/0.5525, allocations: 123.7 kB / 0.9665 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006619/0.5532, allocations: 0.5899 MB / 0.9671 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.823e-05/0.5533, allocations: 68.88 kB / 0.9671 GB, free: 14.13 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001173/0.5534, allocations: 99.03 kB / 0.9672 GB, free: 14.09 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.5548, allocations: 0.879 MB / 0.9681 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.586e-05/0.5548, allocations: 5.062 kB / 0.9681 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.124e-05/0.5549, allocations: 36.38 kB / 0.9681 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.973e-05/0.5549, allocations: 25.12 kB / 0.9681 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001289/0.5562, allocations: 0.6798 MB / 0.9688 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003897/0.5601, allocations: 3.018 MB / 0.9718 GB, free: 10.88 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001395/0.5615, allocations: 0.7519 MB / 0.9725 GB, free: 10.52 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000635/0.5622, allocations: 401.1 kB / 0.9729 GB, free: 10.34 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.587e-05/0.5622, allocations: 7.875 kB / 0.9729 GB, free: 10.34 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006464/0.5629, allocations: 372.5 kB / 0.9732 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=68): time 1.914e-06/0.5629, allocations: 0 / 0.9732 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of matching and sorting (n=68): time 0.001678/0.5646, allocations: 0.8913 MB / 0.9741 GB, free: 9.715 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.964e-05/0.5647, allocations: 191.6 kB / 0.9743 GB, free: 9.492 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007489/0.5654, allocations: 0.6738 MB / 0.9749 GB, free: 9.105 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.664e-05/0.5655, allocations: 42.64 kB / 0.975 GB, free: 9.062 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002999/0.5658, allocations: 435.2 kB / 0.9754 GB, free: 8.684 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001563/0.566, allocations: 230.9 kB / 0.9756 GB, free: 8.48 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.195e-05/0.5661, allocations: 70.45 kB / 0.9757 GB, free: 8.43 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.5662, allocations: 341 kB / 0.976 GB, free: 8.098 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006486/0.5668, allocations: 307.3 kB / 0.9763 GB, free: 7.957 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007512/0.5676, allocations: 0.494 MB / 0.9768 GB, free: 7.586 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001211/0.5688, allocations: 0.7139 MB / 0.9775 GB, free: 7.152 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.5688, allocations: 1.344 kB / 0.9775 GB, free: 7.152 MB / 0.7325 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001642/0.5705, allocations: 0.9207 MB / 0.9784 GB, free: 6.691 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001165/0.5706, allocations: 211.9 kB / 0.9786 GB, free: 6.449 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.5706, allocations: 2.75 kB / 0.9786 GB, free: 6.449 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.5706, allocations: 6.688 kB / 0.9786 GB, free: 6.449 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005894/0.5712, allocations: 170.9 kB / 0.9788 GB, free: 6.41 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.437e-05/0.5712, allocations: 14.25 kB / 0.9788 GB, free: 6.402 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006368/0.5719, allocations: 174.7 kB / 0.9789 GB, free: 6.316 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.221e-05/0.5719, allocations: 34.77 kB / 0.979 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.901e-06/0.572, allocations: 4.469 kB / 0.979 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001065/0.573, allocations: 0.6828 MB / 0.9796 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.573, allocations: 4 kB / 0.9797 GB, free: 5.668 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.35e-06/0.5731, allocations: 4 kB / 0.9797 GB, free: 5.664 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004533/0.5735, allocations: 139.8 kB / 0.9798 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.555e-05/0.5735, allocations: 11.98 kB / 0.9798 GB, free: 5.516 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005108/0.574, allocations: 135.5 kB / 0.9799 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.993e-05/0.5741, allocations: 24 kB / 0.98 GB, free: 5.359 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,noLimPID.con1.y,limPI.con1.y,limPID.con1.y,pulse.booPul.y,$PRE.pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0003008/0.5744, allocations: 317.8 kB / 0.9803 GB, free: 5.043 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.974e-05/0.5745, allocations: 75.06 kB / 0.9803 GB, free: 4.969 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001251/0.5758, allocations: 0.7022 MB / 0.981 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.5758, allocations: 4 kB / 0.981 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.5758, allocations: 0 / 0.981 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.806e-06/0.5758, allocations: 3.984 kB / 0.981 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002274/0.5781, allocations: 1.71 MB / 0.9827 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.5781, allocations: 4 kB / 0.9827 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005154/0.5786, allocations: 148.1 kB / 0.9828 GB, free: 2.301 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.652e-06/0.5786, allocations: 7.938 kB / 0.9828 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.4e-05/0.5787, allocations: 16 kB / 0.9829 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.5787, allocations: 4 kB / 0.9829 GB, free: 2.273 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.5787, allocations: 3.938 kB / 0.9829 GB, free: 2.27 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001726/0.5804, allocations: 1.155 MB / 0.984 GB, free: 1.07 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001274/0.5806, allocations: 179.9 kB / 0.9842 GB, free: 0.875 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.923e-05/0.5806, allocations: 12 kB / 0.9842 GB, free: 0.8633 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003699/0.581, allocations: 63.95 kB / 0.9842 GB, free: 0.8008 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.817e-05/0.5811, allocations: 40.52 kB / 0.9843 GB, free: 0.7617 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.199e-05/0.5811, allocations: 24.08 kB / 0.9843 GB, free: 0.7383 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004752/0.5816, allocations: 487 kB / 0.9848 GB, free: 276 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5816, allocations: 0 / 0.9848 GB, free: 276 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006823/0.5823, allocations: 318.9 kB / 0.9851 GB, free: 15.95 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (limPID.I.y,limPID.D.x,limPI.I.y,limPD.D.x,noLimPID.I.y,noLimPID.D.x) * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.002/0.5843, allocations: 1.735 MB / 0.9868 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001828/0.5861, allocations: 1.187 MB / 0.9879 GB, free: 12.95 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.5861, allocations: 0 / 0.9879 GB, free: 12.95 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0005336/0.5867, allocations: 323.7 kB / 0.9882 GB, free: 12.63 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/0.5877, allocations: 183.4 kB / 0.9884 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009168/0.5969, allocations: 7.378 MB / 0.9956 GB, free: 4.793 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004846/0.5974, allocations: 0.982 MB / 0.9966 GB, free: 3.785 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0003361/0.5977, allocations: 97.89 kB / 0.9967 GB, free: 3.688 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004394/0.5982, allocations: 351.3 kB / 0.997 GB, free: 3.344 MB / 0.7481 GB Notification: Performance of SimCode: time 4.71e-07/0.5982, allocations: 0 / 0.997 GB, free: 3.344 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.74/2.339, allocations: 15.39 MB / 1.012 GB, free: 4.188 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000225/2.339, allocations: 204.7 kB / 1.012 GB, free: 3.93 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.343/4.682, allocations: 4 kB / 1.012 GB, free: 3.926 MB / 0.7637 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PID.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_PID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches