Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_10_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.006409/0.00641, allocations: 100.9 kB / 15.73 MB, free: 6.062 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.00173/0.00173, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.295/1.295, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.33/2.33, allocations: 437.1 MB / 0.7106 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 67.83 kB / 1.018 GB, free: 9.93 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6255/0.6273, allocations: 151.6 MB / 1.166 GB, free: 3.816 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004935/0.6323, allocations: 3.713 MB / 1.17 GB, free: 80 kB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002397/0.6347, allocations: 1.325 MB / 1.171 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002929/0.635, allocations: 27.81 kB / 1.171 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0003166/0.6354, allocations: 130.6 kB / 1.171 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0004539/0.6358, allocations: 170.5 kB / 1.171 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001057/0.6369, allocations: 0.5796 MB / 1.172 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0009402/0.6378, allocations: 0.9603 MB / 1.173 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004885/0.6383, allocations: 357.6 kB / 1.173 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003687/0.6387, allocations: 358.4 kB / 1.174 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003626/0.6391, allocations: 350.1 kB / 1.174 GB, free: 11.83 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.000117/0.6392, allocations: 80 kB / 1.174 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001153/0.6393, allocations: 80 kB / 1.174 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001597/0.6395, allocations: 187.2 kB / 1.174 GB, free: 11.49 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003112/0.6398, allocations: 377.7 kB / 1.175 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0008485/0.6407, allocations: 0.894 MB / 1.175 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.6407, allocations: 4 kB / 1.175 GB, free: 10.22 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.142e-06/0.6407, allocations: 0 / 1.175 GB, free: 10.22 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.995e-06/0.6407, allocations: 0 / 1.175 GB, free: 10.22 MB / 0.9044 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.00196/0.6427, allocations: 1.206 MB / 1.177 GB, free: 8.957 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.6427, allocations: 20.8 kB / 1.177 GB, free: 8.938 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001063/0.6428, allocations: 90.7 kB / 1.177 GB, free: 8.84 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001369/0.643, allocations: 96.33 kB / 1.177 GB, free: 8.746 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009709/0.6439, allocations: 0.6189 MB / 1.177 GB, free: 8.086 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/0.6441, allocations: 101 kB / 1.178 GB, free: 7.973 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.866e-05/0.6442, allocations: 60.31 kB / 1.178 GB, free: 7.914 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.6452, allocations: 0.6001 MB / 1.178 GB, free: 7.273 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.6452, allocations: 4 kB / 1.178 GB, free: 7.27 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.01e-05/0.6453, allocations: 20 kB / 1.178 GB, free: 7.25 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.6453, allocations: 12 kB / 1.178 GB, free: 7.238 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009742/0.6463, allocations: 427.6 kB / 1.179 GB, free: 6.82 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002644/0.6489, allocations: 2.103 MB / 1.181 GB, free: 4.633 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/0.6502, allocations: 0.5035 MB / 1.181 GB, free: 4.117 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004717/0.6506, allocations: 212.8 kB / 1.181 GB, free: 3.906 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.684e-05/0.6507, allocations: 4 kB / 1.181 GB, free: 3.902 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006362/0.6513, allocations: 286 kB / 1.182 GB, free: 3.609 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=45): time 1.803e-06/0.6513, allocations: 0 / 1.182 GB, free: 3.609 MB / 0.9044 GB Notification: Performance of matching and sorting (n=45): time 0.001441/0.6528, allocations: 0.6116 MB / 1.182 GB, free: 2.992 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.172e-05/0.6529, allocations: 92.86 kB / 1.182 GB, free: 2.883 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006864/0.6536, allocations: 0.614 MB / 1.183 GB, free: 2.262 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.603e-05/0.6536, allocations: 37.7 kB / 1.183 GB, free: 2.219 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002731/0.6539, allocations: 361.1 kB / 1.183 GB, free: 1.859 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/0.654, allocations: 158.7 kB / 1.183 GB, free: 1.703 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001454/0.6542, allocations: 90.25 kB / 1.184 GB, free: 1.609 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.6543, allocations: 334 kB / 1.184 GB, free: 1.277 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004529/0.6548, allocations: 183 kB / 1.184 GB, free: 1.098 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005203/0.6553, allocations: 280.2 kB / 1.184 GB, free: 0.7891 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00094/0.6562, allocations: 481.9 kB / 1.185 GB, free: 280 kB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.6563, allocations: 0 / 1.185 GB, free: 280 kB / 0.9044 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001204/0.6575, allocations: 0.6026 MB / 1.185 GB, free: 15.66 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.108e-05/0.6575, allocations: 33.69 kB / 1.185 GB, free: 15.62 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.6575, allocations: 4 kB / 1.185 GB, free: 15.62 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.6575, allocations: 5.094 kB / 1.185 GB, free: 15.61 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004673/0.658, allocations: 107.8 kB / 1.186 GB, free: 15.51 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.658, allocations: 8.25 kB / 1.186 GB, free: 15.5 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003607/0.6584, allocations: 71.53 kB / 1.186 GB, free: 15.43 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.57e-05/0.6584, allocations: 20 kB / 1.186 GB, free: 15.41 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005483/0.659, allocations: 309.2 kB / 1.186 GB, free: 15.11 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004765/0.6595, allocations: 264.3 kB / 1.186 GB, free: 14.81 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008349/0.6603, allocations: 465.8 kB / 1.187 GB, free: 14.32 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.709e-06/0.6603, allocations: 4 kB / 1.187 GB, free: 14.31 MB / 0.92 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.00108/0.6614, allocations: 0.5793 MB / 1.187 GB, free: 13.72 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/0.6615, allocations: 37.64 kB / 1.187 GB, free: 13.68 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.856e-06/0.6615, allocations: 0 / 1.187 GB, free: 13.68 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.124e-06/0.6615, allocations: 8 kB / 1.187 GB, free: 13.67 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004281/0.6619, allocations: 99.88 kB / 1.187 GB, free: 13.57 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.6619, allocations: 7.938 kB / 1.187 GB, free: 13.56 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003345/0.6623, allocations: 51.77 kB / 1.187 GB, free: 13.51 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.617e-05/0.6623, allocations: 19.98 kB / 1.187 GB, free: 13.49 MB / 0.92 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.0001501/0.6625, allocations: 214.3 kB / 1.188 GB, free: 13.28 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.817e-05/0.6626, allocations: 79.48 kB / 1.188 GB, free: 13.2 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001509/0.6627, allocations: 79.22 kB / 1.188 GB, free: 13.12 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.6628, allocations: 7.938 kB / 1.188 GB, free: 13.11 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.6628, allocations: 0 / 1.188 GB, free: 13.11 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.355e-06/0.6628, allocations: 3.984 kB / 1.188 GB, free: 13.11 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006609/0.6634, allocations: 0.6258 MB / 1.188 GB, free: 12.43 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.6634, allocations: 0 / 1.188 GB, free: 12.43 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004456/0.6639, allocations: 87.88 kB / 1.188 GB, free: 12.35 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.6639, allocations: 0 / 1.188 GB, free: 12.35 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.411e-05/0.6639, allocations: 12 kB / 1.188 GB, free: 12.34 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.664, allocations: 0 / 1.188 GB, free: 12.34 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.664, allocations: 4 kB / 1.188 GB, free: 12.33 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0015/0.6655, allocations: 0.7318 MB / 1.189 GB, free: 11.58 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002075/0.6657, allocations: 192.5 kB / 1.189 GB, free: 11.37 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.828e-05/0.6658, allocations: 8 kB / 1.189 GB, free: 11.36 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003942/0.6662, allocations: 43.94 kB / 1.189 GB, free: 11.32 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.406e-05/0.6663, allocations: 31.95 kB / 1.189 GB, free: 11.29 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.915e-05/0.6663, allocations: 19.98 kB / 1.189 GB, free: 11.27 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0004803/0.6668, allocations: 431 kB / 1.19 GB, free: 10.85 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6668, allocations: 0 / 1.19 GB, free: 10.85 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0005365/0.6673, allocations: 219.5 kB / 1.19 GB, free: 10.64 MB / 0.92 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.001786/0.6691, allocations: 1.284 MB / 1.191 GB, free: 9.328 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001542/0.6707, allocations: 0.7894 MB / 1.192 GB, free: 8.512 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.6707, allocations: 0 / 1.192 GB, free: 8.512 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0004733/0.6712, allocations: 215.5 kB / 1.192 GB, free: 8.301 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008309/0.672, allocations: 205.8 kB / 1.193 GB, free: 8.109 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00757/0.6796, allocations: 5.389 MB / 1.198 GB, free: 2.559 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004932/0.6801, allocations: 0.918 MB / 1.199 GB, free: 1.613 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0003207/0.6804, allocations: 85.12 kB / 1.199 GB, free: 1.527 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003479/0.6808, allocations: 259.3 kB / 1.199 GB, free: 1.273 MB / 0.92 GB Notification: Performance of SimCode: time 3.41e-07/0.6808, allocations: 0 / 1.199 GB, free: 1.273 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.482/2.163, allocations: 14.06 MB / 1.213 GB, free: 3.383 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.44/23.61, allocations: 9.953 kB / 1.213 GB, free: 3.375 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.Continuous.Examples.LimPID_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches