Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 215.7 kB / 22.25 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.44/1.44, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.18/3.18, allocations: 0.5107 GB / 0.8158 GB, free: 17.84 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003443/0.003443, allocations: 67.45 kB / 1.186 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3859/0.3894, allocations: 181.9 MB / 1.363 GB, free: 14.12 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.006196/0.3956, allocations: 3.75 MB / 1.367 GB, free: 10.35 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.003228/0.3988, allocations: 1.329 MB / 1.368 GB, free: 9.016 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004817/0.3993, allocations: 27.81 kB / 1.368 GB, free: 8.988 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0003962/0.3997, allocations: 126.7 kB / 1.368 GB, free: 8.863 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0003942/0.4001, allocations: 186.4 kB / 1.369 GB, free: 8.68 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009047/0.401, allocations: 416.7 kB / 1.369 GB, free: 8.277 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0009654/0.402, allocations: 0.9554 MB / 1.37 GB, free: 7.316 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005125/0.4025, allocations: 290.6 kB / 1.37 GB, free: 7.012 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003796/0.4028, allocations: 342.7 kB / 1.371 GB, free: 6.676 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003518/0.4032, allocations: 298.4 kB / 1.371 GB, free: 6.383 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0001144/0.4033, allocations: 92 kB / 1.371 GB, free: 6.293 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001257/0.4034, allocations: 88 kB / 1.371 GB, free: 6.207 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001589/0.4036, allocations: 179.4 kB / 1.371 GB, free: 6.031 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0002842/0.4039, allocations: 306.5 kB / 1.372 GB, free: 5.73 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.001069/0.4049, allocations: 1.078 MB / 1.373 GB, free: 4.648 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.405, allocations: 0 / 1.373 GB, free: 4.648 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.613e-06/0.405, allocations: 0 / 1.373 GB, free: 4.648 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.069e-05/0.405, allocations: 0 / 1.373 GB, free: 4.648 MB / 1.061 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.001888/0.4069, allocations: 1.076 MB / 1.374 GB, free: 3.527 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.4069, allocations: 12.03 kB / 1.374 GB, free: 3.516 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001154/0.407, allocations: 94.7 kB / 1.374 GB, free: 3.414 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001352/0.4072, allocations: 92.38 kB / 1.374 GB, free: 3.324 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009811/0.4081, allocations: 0.5077 MB / 1.374 GB, free: 2.797 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.545e-05/0.4082, allocations: 45.69 kB / 1.374 GB, free: 2.754 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.594e-05/0.4083, allocations: 60.33 kB / 1.374 GB, free: 2.695 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.4094, allocations: 0.6656 MB / 1.375 GB, free: 1.992 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.223e-05/0.4094, allocations: 0 / 1.375 GB, free: 1.992 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.627e-05/0.4095, allocations: 32 kB / 1.375 GB, free: 1.961 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.355e-05/0.4095, allocations: 16 kB / 1.375 GB, free: 1.945 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009804/0.4105, allocations: 457 kB / 1.376 GB, free: 1.5 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002824/0.4133, allocations: 1.775 MB / 1.377 GB, free: 15.66 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009182/0.4142, allocations: 419.3 kB / 1.378 GB, free: 15.24 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004453/0.4146, allocations: 230 kB / 1.378 GB, free: 15.01 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 3.836e-05/0.4147, allocations: 4.438 kB / 1.378 GB, free: 15.01 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005603/0.4152, allocations: 257.3 kB / 1.378 GB, free: 14.74 MB / 1.076 GB Notification: Performance of pre-optimization done (n=49): time 2.495e-06/0.4152, allocations: 4 kB / 1.378 GB, free: 14.74 MB / 1.076 GB Notification: Performance of matching and sorting (n=49): time 0.00134/0.4166, allocations: 0.5807 MB / 1.379 GB, free: 14.16 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.806e-05/0.4166, allocations: 67.78 kB / 1.379 GB, free: 14.08 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005149/0.4172, allocations: 445.9 kB / 1.379 GB, free: 13.63 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 4.788e-05/0.4172, allocations: 37.7 kB / 1.379 GB, free: 13.59 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002684/0.4175, allocations: 324.9 kB / 1.38 GB, free: 13.27 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001484/0.4176, allocations: 178.5 kB / 1.38 GB, free: 13.09 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.4178, allocations: 90.34 kB / 1.38 GB, free: 13 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001773/0.4179, allocations: 366.7 kB / 1.38 GB, free: 12.63 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004125/0.4184, allocations: 198.9 kB / 1.38 GB, free: 12.43 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004691/0.4188, allocations: 280.4 kB / 1.381 GB, free: 12.12 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008403/0.4197, allocations: 451 kB / 1.381 GB, free: 11.64 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.4197, allocations: 0 / 1.381 GB, free: 11.64 MB / 1.076 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001092/0.4208, allocations: 0.598 MB / 1.382 GB, free: 11.02 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 4.531e-05/0.4208, allocations: 36.2 kB / 1.382 GB, free: 10.98 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.4208, allocations: 0 / 1.382 GB, free: 10.98 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.4208, allocations: 4 kB / 1.382 GB, free: 10.98 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005008/0.4213, allocations: 115.8 kB / 1.382 GB, free: 10.87 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.4214, allocations: 7.984 kB / 1.382 GB, free: 10.86 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003205/0.4217, allocations: 63.64 kB / 1.382 GB, free: 10.8 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.545e-05/0.4217, allocations: 20.22 kB / 1.382 GB, free: 10.78 MB / 1.076 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 (conWitRes.trigger.y,conNoRes.trigger.y,TSet.T_start,$PRE.TSet.T_start,TSet.count,$PRE.TSet.count,$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.0002655/0.422, allocations: 205.7 kB / 1.382 GB, free: 10.57 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.985e-05/0.4221, allocations: 63.56 kB / 1.382 GB, free: 10.5 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001273/0.4222, allocations: 61.58 kB / 1.382 GB, free: 10.44 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.4222, allocations: 4 kB / 1.382 GB, free: 10.44 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.4222, allocations: 4 kB / 1.382 GB, free: 10.43 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.4222, allocations: 7.969 kB / 1.382 GB, free: 10.43 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00181/0.424, allocations: 1.084 MB / 1.383 GB, free: 9.293 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.424, allocations: 0 / 1.383 GB, free: 9.293 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004605/0.4245, allocations: 91.89 kB / 1.383 GB, free: 9.203 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.4245, allocations: 0 / 1.383 GB, free: 9.203 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.398e-05/0.4245, allocations: 15.98 kB / 1.383 GB, free: 9.188 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.4245, allocations: 4 kB / 1.383 GB, free: 9.184 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.4245, allocations: 0 / 1.383 GB, free: 9.184 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001387/0.4259, allocations: 0.7612 MB / 1.384 GB, free: 8.41 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001865/0.4261, allocations: 99.64 kB / 1.384 GB, free: 8.312 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.631e-05/0.4262, allocations: 19.94 kB / 1.384 GB, free: 8.293 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002753/0.4264, allocations: 23.97 kB / 1.384 GB, free: 8.27 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.4265, allocations: 36.38 kB / 1.384 GB, free: 8.234 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.498e-05/0.4266, allocations: 15.98 kB / 1.384 GB, free: 8.219 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0003677/0.4269, allocations: 306.9 kB / 1.385 GB, free: 7.922 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.01e-07/0.4269, allocations: 4 kB / 1.385 GB, free: 7.918 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0004669/0.4274, allocations: 139.7 kB / 1.385 GB, free: 7.781 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (conNoRes.conPID.I.y,plaNoRes.cap1.T,plaNoRes.cap.T,conWitRes.conPID.I.y,plaWitRes.cap1.T,plaWitRes.cap.T) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,TSet.count,TSet.T_start,conNoRes.trigger.y) * 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.001716/0.4291, allocations: 1.327 MB / 1.386 GB, free: 6.434 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0009735/0.4301, allocations: 482.4 kB / 1.386 GB, free: 5.945 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.4301, allocations: 7.938 kB / 1.386 GB, free: 5.938 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0004217/0.4305, allocations: 206.4 kB / 1.387 GB, free: 5.734 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007715/0.4313, allocations: 149.8 kB / 1.387 GB, free: 5.594 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007642/0.4389, allocations: 4.911 MB / 1.392 GB, free: 0.5195 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003218/0.4393, allocations: 300.5 kB / 1.392 GB, free: 200 kB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0003162/0.4396, allocations: 68.58 kB / 1.392 GB, free: 132 kB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003493/0.4399, allocations: 223.4 kB / 1.392 GB, free: 15.91 MB / 1.092 GB Notification: Performance of SimCode: time 1.583e-06/0.4399, allocations: 0 / 1.392 GB, free: 15.91 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04821/0.4881, allocations: 12.41 MB / 1.404 GB, free: 3.773 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.46, allocations: 8.234 kB / 1.404 GB, free: 3.77 MB / 1.092 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --stepSize=0.119713 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.63851750968024]