Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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.LimPIDWithReset,fileNamePrefix="Buildings_11_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_11_Buildings_Controls_Continuous_Examples_LimPIDWithReset",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.006703/0.006703, allocations: 101.2 kB / 15.73 MB, free: 6.004 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.001771/0.001772, allocations: 187.2 kB / 16.67 MB, free: 5.922 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.321/1.321, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.528/2.528, allocations: 469.8 MB / 0.7425 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 63.91 kB / 1.065 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6086/0.6104, allocations: 159.1 MB / 1.22 GB, free: 2.051 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004943/0.6154, allocations: 4.128 MB / 1.224 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001843/0.6172, allocations: 1.317 MB / 1.225 GB, free: 12.58 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000218/0.6174, allocations: 19.94 kB / 1.225 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0002696/0.6177, allocations: 126.7 kB / 1.226 GB, free: 12.44 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0003064/0.618, allocations: 182.4 kB / 1.226 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007196/0.6188, allocations: 417.6 kB / 1.226 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0008576/0.6196, allocations: 0.9671 MB / 1.227 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00056/0.6202, allocations: 462.1 kB / 1.228 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003017/0.6205, allocations: 326.8 kB / 1.228 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003286/0.6208, allocations: 334.3 kB / 1.228 GB, free: 9.762 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.000106/0.621, allocations: 92 kB / 1.228 GB, free: 9.672 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001119/0.6211, allocations: 88 kB / 1.228 GB, free: 9.586 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.6212, allocations: 183.4 kB / 1.229 GB, free: 9.406 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0003129/0.6215, allocations: 394 kB / 1.229 GB, free: 9.02 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0009085/0.6225, allocations: 1.066 MB / 1.23 GB, free: 7.953 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.6225, allocations: 0 / 1.23 GB, free: 7.953 MB / 0.9512 GB Notification: Performance of FrontEnd: time 3.116e-06/0.6225, allocations: 3.938 kB / 1.23 GB, free: 7.949 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.385e-06/0.6225, allocations: 3.938 kB / 1.23 GB, free: 7.945 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001664/0.6242, allocations: 1.1 MB / 1.231 GB, free: 6.785 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.6242, allocations: 12.03 kB / 1.231 GB, free: 6.773 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001043/0.6243, allocations: 98.7 kB / 1.231 GB, free: 6.668 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.6244, allocations: 88.42 kB / 1.231 GB, free: 6.582 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007824/0.6252, allocations: 0.5654 MB / 1.232 GB, free: 5.98 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.943e-05/0.6253, allocations: 45.69 kB / 1.232 GB, free: 5.938 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.299e-05/0.6254, allocations: 68.31 kB / 1.232 GB, free: 5.871 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009967/0.6264, allocations: 0.5999 MB / 1.232 GB, free: 5.246 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/0.6264, allocations: 7.938 kB / 1.232 GB, free: 5.238 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.769e-05/0.6264, allocations: 24 kB / 1.232 GB, free: 5.215 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.616e-05/0.6265, allocations: 16 kB / 1.233 GB, free: 5.199 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000956/0.6274, allocations: 464.9 kB / 1.233 GB, free: 4.742 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002543/0.63, allocations: 1.993 MB / 1.235 GB, free: 2.676 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008782/0.6309, allocations: 441.5 kB / 1.235 GB, free: 2.238 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004365/0.6313, allocations: 238.6 kB / 1.236 GB, free: 2.004 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.184e-05/0.6313, allocations: 8.438 kB / 1.236 GB, free: 1.996 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004944/0.6318, allocations: 265.2 kB / 1.236 GB, free: 1.723 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=49): time 1.824e-06/0.6319, allocations: 0 / 1.236 GB, free: 1.723 MB / 0.9512 GB Notification: Performance of matching and sorting (n=49): time 0.001208/0.6331, allocations: 0.5846 MB / 1.236 GB, free: 1.133 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.397e-05/0.6331, allocations: 63.84 kB / 1.236 GB, free: 1.059 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004488/0.6336, allocations: 438 kB / 1.237 GB, free: 0.6211 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.668e-05/0.6336, allocations: 41.69 kB / 1.237 GB, free: 0.5742 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002255/0.6339, allocations: 329.6 kB / 1.237 GB, free: 252 kB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.634, allocations: 174.5 kB / 1.237 GB, free: 76 kB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001496/0.6341, allocations: 98.22 kB / 1.237 GB, free: 15.97 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.6343, allocations: 362.8 kB / 1.238 GB, free: 15.61 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003761/0.6347, allocations: 173 kB / 1.238 GB, free: 15.44 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004455/0.6351, allocations: 245.8 kB / 1.238 GB, free: 15.17 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007927/0.6359, allocations: 452 kB / 1.239 GB, free: 14.7 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.636, allocations: 0 / 1.239 GB, free: 14.7 MB / 0.9669 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009967/0.637, allocations: 0.5706 MB / 1.239 GB, free: 14.12 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.248e-05/0.637, allocations: 37.73 kB / 1.239 GB, free: 14.07 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.637, allocations: 4 kB / 1.239 GB, free: 14.07 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.637, allocations: 4 kB / 1.239 GB, free: 14.07 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004505/0.6375, allocations: 111.8 kB / 1.239 GB, free: 13.96 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.6375, allocations: 4 kB / 1.239 GB, free: 13.95 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000288/0.6378, allocations: 59.64 kB / 1.239 GB, free: 13.89 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.484e-05/0.6378, allocations: 16 kB / 1.239 GB, free: 13.88 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * 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.0002219/0.6381, allocations: 209.7 kB / 1.24 GB, free: 13.66 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.867e-05/0.6381, allocations: 63.56 kB / 1.24 GB, free: 13.6 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001249/0.6383, allocations: 69.52 kB / 1.24 GB, free: 13.53 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.6383, allocations: 8 kB / 1.24 GB, free: 13.52 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.6383, allocations: 4 kB / 1.24 GB, free: 13.52 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.6383, allocations: 3.984 kB / 1.24 GB, free: 13.52 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00164/0.6399, allocations: 1.182 MB / 1.241 GB, free: 12.28 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.64, allocations: 0 / 1.241 GB, free: 12.28 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004423/0.6404, allocations: 91.88 kB / 1.241 GB, free: 12.19 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.6404, allocations: 4 kB / 1.241 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.813e-05/0.6405, allocations: 8 kB / 1.241 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.6405, allocations: 4 kB / 1.241 GB, free: 12.17 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.6405, allocations: 0 / 1.241 GB, free: 12.17 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00128/0.6418, allocations: 0.7693 MB / 1.242 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001695/0.6419, allocations: 176.6 kB / 1.242 GB, free: 11.2 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.749e-05/0.642, allocations: 12 kB / 1.242 GB, free: 11.18 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000269/0.6423, allocations: 23.97 kB / 1.242 GB, free: 11.16 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.09e-05/0.6424, allocations: 40.39 kB / 1.242 GB, free: 11.12 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.51e-05/0.6424, allocations: 12 kB / 1.242 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0003159/0.6427, allocations: 310.9 kB / 1.242 GB, free: 10.81 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6427, allocations: 0 / 1.242 GB, free: 10.81 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000388/0.6431, allocations: 143.6 kB / 1.242 GB, free: 10.67 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * 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.001564/0.6447, allocations: 1.321 MB / 1.244 GB, free: 9.32 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0008593/0.6456, allocations: 481.5 kB / 1.244 GB, free: 8.84 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.6456, allocations: 0 / 1.244 GB, free: 8.84 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0004014/0.646, allocations: 214.4 kB / 1.244 GB, free: 8.633 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006716/0.6466, allocations: 154.7 kB / 1.245 GB, free: 8.492 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006596/0.6533, allocations: 4.821 MB / 1.249 GB, free: 3.52 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004483/0.6537, allocations: 0.8899 MB / 1.25 GB, free: 2.605 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0002154/0.6539, allocations: 64.53 kB / 1.25 GB, free: 2.543 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002884/0.6542, allocations: 223.4 kB / 1.25 GB, free: 2.324 MB / 0.9669 GB Notification: Performance of SimCode: time 2.31e-07/0.6542, allocations: 0 / 1.25 GB, free: 2.324 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.98/4.634, allocations: 11.31 MB / 1.261 GB, free: 7.195 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 13/17.64, allocations: 7.312 kB / 1.261 GB, free: 7.191 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches