Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001523/0.001523, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001809/0.001809, allocations: 217.8 kB / 23.03 MB, free: 4.922 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.475/1.475, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.266/3.266, allocations: 0.49 GB / 0.7959 GB, free: 35.34 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_12_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.002532/0.002532, allocations: 61.55 kB / 1.155 GB, free: 25.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4018/0.4043, allocations: 176.1 MB / 1.327 GB, free: 1.508 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005813/0.4101, allocations: 3.748 MB / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002729/0.4128, allocations: 1.313 MB / 1.332 GB, free: 12.42 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003401/0.4132, allocations: 31.75 kB / 1.332 GB, free: 12.39 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0003654/0.4136, allocations: 122.8 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0003533/0.4139, allocations: 190.3 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008681/0.4148, allocations: 424.8 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000992/0.4158, allocations: 0.9514 MB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005398/0.4163, allocations: 314.6 kB / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004002/0.4167, allocations: 346.7 kB / 1.334 GB, free: 10.05 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003931/0.4171, allocations: 338.3 kB / 1.334 GB, free: 9.715 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001173/0.4172, allocations: 91.94 kB / 1.334 GB, free: 9.625 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001176/0.4173, allocations: 92 kB / 1.334 GB, free: 9.535 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001608/0.4175, allocations: 175.5 kB / 1.334 GB, free: 9.363 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000307/0.4178, allocations: 310.5 kB / 1.335 GB, free: 9.059 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.001056/0.4189, allocations: 1.062 MB / 1.336 GB, free: 7.992 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.4189, allocations: 0 / 1.336 GB, free: 7.992 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.134e-06/0.4189, allocations: 3.938 kB / 1.336 GB, free: 7.988 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.048e-05/0.4189, allocations: 0 / 1.336 GB, free: 7.988 MB / 1.029 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.001894/0.4208, allocations: 1.093 MB / 1.337 GB, free: 6.852 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.4208, allocations: 12.03 kB / 1.337 GB, free: 6.84 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.993e-05/0.4208, allocations: 17.5 kB / 1.337 GB, free: 6.824 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001098/0.421, allocations: 102.7 kB / 1.337 GB, free: 6.715 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001342/0.4211, allocations: 88.42 kB / 1.337 GB, free: 6.629 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009446/0.422, allocations: 0.5077 MB / 1.338 GB, free: 6.102 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.359e-05/0.4221, allocations: 41.69 kB / 1.338 GB, free: 6.059 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.279e-05/0.4222, allocations: 60.38 kB / 1.338 GB, free: 6 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.4233, allocations: 0.6577 MB / 1.338 GB, free: 5.305 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.242e-05/0.4233, allocations: 0 / 1.338 GB, free: 5.305 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.8e-05/0.4234, allocations: 31.94 kB / 1.338 GB, free: 5.273 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.598e-05/0.4234, allocations: 16 kB / 1.338 GB, free: 5.258 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/0.4244, allocations: 453 kB / 1.339 GB, free: 4.816 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002845/0.4273, allocations: 1.775 MB / 1.341 GB, free: 2.977 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009187/0.4282, allocations: 430.7 kB / 1.341 GB, free: 2.547 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004405/0.4286, allocations: 222.6 kB / 1.341 GB, free: 2.328 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.158e-05/0.4287, allocations: 8.438 kB / 1.341 GB, free: 2.32 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005729/0.4292, allocations: 277.2 kB / 1.341 GB, free: 2.039 MB / 1.029 GB Notification: Performance of pre-optimization done (n=49): time 2.265e-06/0.4292, allocations: 0 / 1.341 GB, free: 2.039 MB / 1.029 GB Notification: Performance of matching and sorting (n=49): time 0.00131/0.4306, allocations: 0.573 MB / 1.342 GB, free: 1.461 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.042e-05/0.4306, allocations: 59.84 kB / 1.342 GB, free: 1.387 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005132/0.4311, allocations: 449.9 kB / 1.342 GB, free: 0.9375 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.132e-05/0.4312, allocations: 37.7 kB / 1.343 GB, free: 0.8945 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002592/0.4314, allocations: 328.8 kB / 1.343 GB, free: 0.5664 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001423/0.4316, allocations: 174.5 kB / 1.343 GB, free: 404 kB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001527/0.4317, allocations: 90.34 kB / 1.343 GB, free: 308 kB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001883/0.4319, allocations: 366.8 kB / 1.343 GB, free: 15.93 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004053/0.4323, allocations: 194.9 kB / 1.344 GB, free: 15.74 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004552/0.4328, allocations: 280.3 kB / 1.344 GB, free: 15.43 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008187/0.4336, allocations: 455 kB / 1.344 GB, free: 14.95 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.4336, allocations: 3.938 kB / 1.344 GB, free: 14.95 MB / 1.045 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001111/0.4347, allocations: 0.598 MB / 1.345 GB, free: 14.33 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.719e-05/0.4347, allocations: 33.64 kB / 1.345 GB, free: 14.29 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.4348, allocations: 4 kB / 1.345 GB, free: 14.29 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.4348, allocations: 4 kB / 1.345 GB, free: 14.29 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005087/0.4353, allocations: 115.8 kB / 1.345 GB, free: 14.17 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.4353, allocations: 7.984 kB / 1.345 GB, free: 14.16 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003267/0.4356, allocations: 63.84 kB / 1.345 GB, free: 14.1 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.711e-05/0.4357, allocations: 20 kB / 1.345 GB, free: 14.08 MB / 1.045 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.0002628/0.4359, allocations: 210.5 kB / 1.345 GB, free: 13.87 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.571e-05/0.436, allocations: 59.61 kB / 1.345 GB, free: 13.81 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001338/0.4361, allocations: 61.59 kB / 1.345 GB, free: 13.75 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.4361, allocations: 4 kB / 1.345 GB, free: 13.74 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.4361, allocations: 0 / 1.345 GB, free: 13.74 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.383e-06/0.4362, allocations: 3.984 kB / 1.345 GB, free: 13.74 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001804/0.438, allocations: 1.087 MB / 1.347 GB, free: 12.6 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.438, allocations: 4 kB / 1.347 GB, free: 12.6 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004866/0.4385, allocations: 95.88 kB / 1.347 GB, free: 12.5 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.4385, allocations: 0 / 1.347 GB, free: 12.5 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.305e-05/0.4385, allocations: 8 kB / 1.347 GB, free: 12.5 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.4385, allocations: 4 kB / 1.347 GB, free: 12.49 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.4385, allocations: 0 / 1.347 GB, free: 12.49 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001362/0.4399, allocations: 0.7613 MB / 1.347 GB, free: 11.72 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001716/0.44, allocations: 95.58 kB / 1.347 GB, free: 11.62 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.741e-05/0.4401, allocations: 12 kB / 1.347 GB, free: 11.61 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000278/0.4404, allocations: 23.97 kB / 1.348 GB, free: 11.59 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.572e-05/0.4405, allocations: 44.3 kB / 1.348 GB, free: 11.55 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.727e-05/0.4405, allocations: 8 kB / 1.348 GB, free: 11.54 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.000353/0.4408, allocations: 310.9 kB / 1.348 GB, free: 11.24 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/0.4408, allocations: 0 / 1.348 GB, free: 11.24 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004629/0.4413, allocations: 147.6 kB / 1.348 GB, free: 11.09 MB / 1.045 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.001706/0.443, allocations: 1.324 MB / 1.349 GB, free: 9.742 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001006/0.444, allocations: 490.4 kB / 1.35 GB, free: 9.242 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.444, allocations: 0 / 1.35 GB, free: 9.242 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0004413/0.4445, allocations: 202.4 kB / 1.35 GB, free: 9.043 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007618/0.4452, allocations: 160.4 kB / 1.35 GB, free: 8.895 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00773/0.453, allocations: 4.911 MB / 1.355 GB, free: 3.816 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003382/0.4533, allocations: 292.5 kB / 1.355 GB, free: 3.5 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0003017/0.4536, allocations: 64.58 kB / 1.355 GB, free: 3.438 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003445/0.4539, allocations: 215.4 kB / 1.355 GB, free: 3.227 MB / 1.045 GB Notification: Performance of SimCode: time 1.142e-06/0.4539, allocations: 0 / 1.355 GB, free: 3.227 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03755/0.4915, allocations: 12.18 MB / 1.367 GB, free: 7.371 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.3, allocations: 9.891 kB / 1.367 GB, free: 7.363 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --stepSize=0.119713 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 19.667242243071087]