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.001962/0.001962, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001733/0.001733, allocations: 217 kB / 23.04 MB, free: 5.074 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.472/1.472, allocations: 230.6 MB / 256.8 MB, free: 7.984 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.083/3.083, allocations: 0.5003 GB / 0.8061 GB, free: 26.77 MB / 0.6231 GB " [Timeout remaining time 177] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="cs",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.001912/0.001912, allocations: 66.88 kB / 1.171 GB, free: 19.89 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3508/0.3527, allocations: 179 MB / 1.345 GB, free: 468 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005698/0.3584, allocations: 4.184 MB / 1.349 GB, free: 12.25 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002498/0.3609, allocations: 1.36 MB / 1.351 GB, free: 10.88 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003503/0.3613, allocations: 31.75 kB / 1.351 GB, free: 10.85 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0003345/0.3616, allocations: 130.7 kB / 1.351 GB, free: 10.72 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0003481/0.362, allocations: 182.4 kB / 1.351 GB, free: 10.54 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.000885/0.3628, allocations: 439.6 kB / 1.351 GB, free: 10.11 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0009849/0.3638, allocations: 0.9515 MB / 1.352 GB, free: 9.16 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000517/0.3643, allocations: 314.6 kB / 1.353 GB, free: 8.832 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003795/0.3647, allocations: 342.7 kB / 1.353 GB, free: 8.496 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003802/0.3651, allocations: 334.3 kB / 1.353 GB, free: 8.168 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.3652, allocations: 92 kB / 1.353 GB, free: 8.078 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001123/0.3653, allocations: 92 kB / 1.354 GB, free: 7.988 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.000149/0.3655, allocations: 179.4 kB / 1.354 GB, free: 7.812 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0003409/0.3658, allocations: 390 kB / 1.354 GB, free: 7.43 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.001049/0.3669, allocations: 1.062 MB / 1.355 GB, free: 6.363 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3669, allocations: 4 kB / 1.355 GB, free: 6.359 MB / 1.045 GB Notification: Performance of FrontEnd: time 3.116e-06/0.3669, allocations: 4 kB / 1.355 GB, free: 6.355 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.198e-05/0.3669, allocations: 0 / 1.355 GB, free: 6.355 MB / 1.045 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.001895/0.3688, allocations: 1.084 MB / 1.356 GB, free: 5.227 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.3688, allocations: 8.031 kB / 1.356 GB, free: 5.219 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.127e-05/0.3688, allocations: 21.5 kB / 1.356 GB, free: 5.199 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001116/0.369, allocations: 106.7 kB / 1.356 GB, free: 5.086 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/0.3691, allocations: 84.42 kB / 1.356 GB, free: 5.004 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009166/0.37, allocations: 0.5038 MB / 1.357 GB, free: 4.473 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.205e-05/0.3701, allocations: 45.69 kB / 1.357 GB, free: 4.426 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.946e-05/0.3701, allocations: 56.38 kB / 1.357 GB, free: 4.371 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/0.3712, allocations: 0.6075 MB / 1.358 GB, free: 3.738 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.119e-05/0.3713, allocations: 7.891 kB / 1.358 GB, free: 3.73 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.256e-05/0.3713, allocations: 24 kB / 1.358 GB, free: 3.707 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.327e-05/0.3713, allocations: 19.94 kB / 1.358 GB, free: 3.688 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.3723, allocations: 457 kB / 1.358 GB, free: 3.242 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002868/0.3752, allocations: 1.943 MB / 1.36 GB, free: 1.242 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000952/0.3761, allocations: 424.6 kB / 1.36 GB, free: 0.8164 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004604/0.3766, allocations: 222.1 kB / 1.361 GB, free: 0.5977 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.422e-05/0.3766, allocations: 4.438 kB / 1.361 GB, free: 0.5938 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000563/0.3772, allocations: 269.2 kB / 1.361 GB, free: 324 kB / 1.045 GB Notification: Performance of pre-optimization done (n=49): time 2.204e-06/0.3772, allocations: 0 / 1.361 GB, free: 324 kB / 1.045 GB Notification: Performance of matching and sorting (n=49): time 0.001354/0.3786, allocations: 0.5808 MB / 1.361 GB, free: 15.73 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.3786, allocations: 59.84 kB / 1.361 GB, free: 15.66 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005533/0.3792, allocations: 442 kB / 1.362 GB, free: 15.21 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 5.145e-05/0.3792, allocations: 37.7 kB / 1.362 GB, free: 15.17 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002751/0.3795, allocations: 332.8 kB / 1.362 GB, free: 14.84 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001588/0.3796, allocations: 174.5 kB / 1.362 GB, free: 14.68 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001814/0.3798, allocations: 98.27 kB / 1.362 GB, free: 14.57 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.00018/0.38, allocations: 362.8 kB / 1.363 GB, free: 14.21 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003974/0.3804, allocations: 161.2 kB / 1.363 GB, free: 14.05 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004638/0.3809, allocations: 254.7 kB / 1.363 GB, free: 13.77 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000855/0.3817, allocations: 451 kB / 1.364 GB, free: 13.29 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.3817, allocations: 0 / 1.364 GB, free: 13.29 MB / 1.061 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001107/0.3828, allocations: 0.569 MB / 1.364 GB, free: 12.71 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.91e-05/0.3829, allocations: 33.7 kB / 1.364 GB, free: 12.68 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.3829, allocations: 0 / 1.364 GB, free: 12.68 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.3829, allocations: 7.938 kB / 1.364 GB, free: 12.67 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004958/0.3834, allocations: 116.1 kB / 1.364 GB, free: 12.55 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.3834, allocations: 8 kB / 1.364 GB, free: 12.55 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003349/0.3837, allocations: 63.59 kB / 1.364 GB, free: 12.48 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.611e-05/0.3838, allocations: 16 kB / 1.364 GB, free: 12.47 MB / 1.061 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.0002935/0.3841, allocations: 209.7 kB / 1.365 GB, free: 12.25 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.175e-05/0.3841, allocations: 67.55 kB / 1.365 GB, free: 12.19 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001388/0.3843, allocations: 61.59 kB / 1.365 GB, free: 12.12 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.3843, allocations: 8 kB / 1.365 GB, free: 12.12 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.3843, allocations: 7.938 kB / 1.365 GB, free: 12.11 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.3843, allocations: 3.984 kB / 1.365 GB, free: 12.11 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001871/0.3862, allocations: 1.146 MB / 1.366 GB, free: 10.91 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.3862, allocations: 4 kB / 1.366 GB, free: 10.91 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004782/0.3867, allocations: 95.88 kB / 1.366 GB, free: 10.82 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.3867, allocations: 4 kB / 1.366 GB, free: 10.81 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.318e-05/0.3867, allocations: 12 kB / 1.366 GB, free: 10.8 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.826e-06/0.3867, allocations: 0 / 1.366 GB, free: 10.8 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3867, allocations: 0 / 1.366 GB, free: 10.8 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001397/0.3881, allocations: 0.7652 MB / 1.367 GB, free: 10.02 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001765/0.3883, allocations: 95.58 kB / 1.367 GB, free: 9.926 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.272e-05/0.3883, allocations: 8 kB / 1.367 GB, free: 9.918 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002791/0.3886, allocations: 23.97 kB / 1.367 GB, free: 9.895 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.492e-05/0.3887, allocations: 36.38 kB / 1.367 GB, free: 9.855 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.271e-05/0.3887, allocations: 15.98 kB / 1.367 GB, free: 9.84 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0003601/0.3891, allocations: 310.9 kB / 1.367 GB, free: 9.539 MB / 1.061 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3891, allocations: 0 / 1.367 GB, free: 9.539 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004488/0.3896, allocations: 147.6 kB / 1.367 GB, free: 9.395 MB / 1.061 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.001763/0.3913, allocations: 1.317 MB / 1.369 GB, free: 8.047 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001009/0.3923, allocations: 456.7 kB / 1.369 GB, free: 7.594 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3923, allocations: 0 / 1.369 GB, free: 7.594 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0004409/0.3928, allocations: 210.8 kB / 1.369 GB, free: 7.387 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008389/0.3936, allocations: 172.6 kB / 1.369 GB, free: 7.23 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007727/0.4013, allocations: 4.798 MB / 1.374 GB, free: 2.293 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005331/0.4019, allocations: 0.89 MB / 1.375 GB, free: 1.375 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0002938/0.4022, allocations: 64.58 kB / 1.375 GB, free: 1.309 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003243/0.4025, allocations: 223.4 kB / 1.375 GB, free: 1.094 MB / 1.061 GB Notification: Performance of SimCode: time 1.312e-06/0.4025, allocations: 0 / 1.375 GB, free: 1.094 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03719/0.4397, allocations: 11.83 MB / 1.387 GB, free: 5.492 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.98, allocations: 9.547 kB / 1.387 GB, free: 5.484 MB / 1.076 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.966539786953945]