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.001679/0.001679, allocations: 103 kB / 16.45 MB, free: 6.5 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.002033/0.002033, allocations: 212.9 kB / 19.43 MB, free: 3.656 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.445/1.445, allocations: 230.6 MB / 252.8 MB, free: 8.969 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.272/3.272, allocations: 0.49 GB / 0.7916 GB, free: 33.3 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_12_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.002565/0.002565, allocations: 74.92 kB / 1.149 GB, free: 26.36 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3538/0.3564, allocations: 176.1 MB / 1.321 GB, free: 3.371 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.006371/0.3627, allocations: 4.156 MB / 1.325 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002972/0.3657, allocations: 1.367 MB / 1.326 GB, free: 13.82 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007559/0.3665, allocations: 27.81 kB / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0005082/0.367, allocations: 130.7 kB / 1.326 GB, free: 13.66 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0006895/0.3677, allocations: 178.4 kB / 1.326 GB, free: 13.49 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001131/0.3688, allocations: 414.9 kB / 1.327 GB, free: 13.09 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.001353/0.3701, allocations: 0.9515 MB / 1.328 GB, free: 12.13 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006507/0.3708, allocations: 314.5 kB / 1.328 GB, free: 11.8 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005238/0.3713, allocations: 346.7 kB / 1.328 GB, free: 11.46 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005277/0.3718, allocations: 334.4 kB / 1.329 GB, free: 11.13 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0002001/0.372, allocations: 92 kB / 1.329 GB, free: 11.04 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001505/0.3722, allocations: 88 kB / 1.329 GB, free: 10.96 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001549/0.3723, allocations: 171.4 kB / 1.329 GB, free: 10.79 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0003779/0.3727, allocations: 398.1 kB / 1.329 GB, free: 10.4 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.001189/0.3739, allocations: 1.062 MB / 1.331 GB, free: 9.332 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3739, allocations: 0 / 1.331 GB, free: 9.332 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.884e-06/0.3739, allocations: 0 / 1.331 GB, free: 9.332 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.18e-05/0.3739, allocations: 4 kB / 1.331 GB, free: 9.328 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.001938/0.3759, allocations: 1.101 MB / 1.332 GB, free: 8.168 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.3759, allocations: 15.97 kB / 1.332 GB, free: 8.152 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001223/0.376, allocations: 98.7 kB / 1.332 GB, free: 8.047 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001338/0.3762, allocations: 84.42 kB / 1.332 GB, free: 7.965 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009586/0.3771, allocations: 0.5733 MB / 1.332 GB, free: 7.355 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.079e-05/0.3772, allocations: 41.69 kB / 1.332 GB, free: 7.316 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.735e-05/0.3773, allocations: 56.38 kB / 1.332 GB, free: 7.262 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/0.3784, allocations: 0.6154 MB / 1.333 GB, free: 6.621 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.954e-05/0.3784, allocations: 0 / 1.333 GB, free: 6.621 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.516e-05/0.3784, allocations: 27.98 kB / 1.333 GB, free: 6.594 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.3785, allocations: 19.94 kB / 1.333 GB, free: 6.574 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001027/0.3795, allocations: 461 kB / 1.334 GB, free: 6.125 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002881/0.3824, allocations: 1.997 MB / 1.335 GB, free: 4.055 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009487/0.3833, allocations: 429.5 kB / 1.336 GB, free: 3.621 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004633/0.3838, allocations: 230.1 kB / 1.336 GB, free: 3.395 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.886e-05/0.3838, allocations: 12.42 kB / 1.336 GB, free: 3.383 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005536/0.3844, allocations: 261.2 kB / 1.336 GB, free: 3.117 MB / 1.029 GB Notification: Performance of pre-optimization done (n=49): time 1.773e-06/0.3844, allocations: 0 / 1.336 GB, free: 3.117 MB / 1.029 GB Notification: Performance of matching and sorting (n=49): time 0.001358/0.3857, allocations: 0.5924 MB / 1.337 GB, free: 2.52 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.3858, allocations: 55.84 kB / 1.337 GB, free: 2.449 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005096/0.3863, allocations: 442.8 kB / 1.337 GB, free: 2.008 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.984e-05/0.3863, allocations: 37.7 kB / 1.337 GB, free: 1.965 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002529/0.3866, allocations: 328.8 kB / 1.338 GB, free: 1.637 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.3867, allocations: 174.5 kB / 1.338 GB, free: 1.465 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001559/0.3869, allocations: 90.25 kB / 1.338 GB, free: 1.371 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001983/0.3871, allocations: 370.8 kB / 1.338 GB, free: 1 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004127/0.3875, allocations: 161 kB / 1.339 GB, free: 0.8438 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004705/0.388, allocations: 249.8 kB / 1.339 GB, free: 0.5703 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008621/0.3888, allocations: 456 kB / 1.339 GB, free: 96 kB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3888, allocations: 0 / 1.339 GB, free: 96 kB / 1.029 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001124/0.39, allocations: 0.5628 MB / 1.34 GB, free: 15.52 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.735e-05/0.39, allocations: 41.69 kB / 1.34 GB, free: 15.47 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.39, allocations: 0 / 1.34 GB, free: 15.47 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.39, allocations: 8 kB / 1.34 GB, free: 15.46 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000511/0.3905, allocations: 111.8 kB / 1.34 GB, free: 15.35 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.3906, allocations: 4 kB / 1.34 GB, free: 15.35 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003219/0.3909, allocations: 59.61 kB / 1.34 GB, free: 15.29 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.778e-05/0.3909, allocations: 24.17 kB / 1.34 GB, free: 15.27 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 (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.0002876/0.3912, allocations: 213.7 kB / 1.34 GB, free: 15.05 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.404e-05/0.3913, allocations: 55.61 kB / 1.34 GB, free: 14.99 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000149/0.3914, allocations: 65.58 kB / 1.34 GB, free: 14.93 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.3914, allocations: 8 kB / 1.34 GB, free: 14.92 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3914, allocations: 3.938 kB / 1.34 GB, free: 14.92 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.3914, allocations: 0 / 1.34 GB, free: 14.92 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001801/0.3932, allocations: 1.178 MB / 1.341 GB, free: 13.69 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.3933, allocations: 3.984 kB / 1.341 GB, free: 13.69 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004833/0.3937, allocations: 91.89 kB / 1.342 GB, free: 13.6 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.3937, allocations: 3.984 kB / 1.342 GB, free: 13.59 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.695e-05/0.3938, allocations: 15.98 kB / 1.342 GB, free: 13.58 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.3938, allocations: 4 kB / 1.342 GB, free: 13.57 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3938, allocations: 4 kB / 1.342 GB, free: 13.57 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001412/0.3952, allocations: 0.7615 MB / 1.342 GB, free: 12.79 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001844/0.3954, allocations: 172.6 kB / 1.342 GB, free: 12.6 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.367e-05/0.3954, allocations: 12 kB / 1.343 GB, free: 12.59 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002888/0.3957, allocations: 31.97 kB / 1.343 GB, free: 12.55 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.818e-05/0.3958, allocations: 32.52 kB / 1.343 GB, free: 12.52 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-05/0.3958, allocations: 16 kB / 1.343 GB, free: 12.51 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0003528/0.3962, allocations: 314.8 kB / 1.343 GB, free: 12.2 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3962, allocations: 0 / 1.343 GB, free: 12.2 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004456/0.3966, allocations: 139.7 kB / 1.343 GB, free: 12.07 MB / 1.045 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.001726/0.3984, allocations: 1.321 MB / 1.344 GB, free: 10.72 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0009696/0.3993, allocations: 469 kB / 1.345 GB, free: 10.25 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3993, allocations: 0 / 1.345 GB, free: 10.25 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0004343/0.3998, allocations: 202.4 kB / 1.345 GB, free: 10.05 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007536/0.4005, allocations: 148.3 kB / 1.345 GB, free: 9.91 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007483/0.408, allocations: 4.81 MB / 1.35 GB, free: 4.953 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005106/0.4085, allocations: 0.8898 MB / 1.351 GB, free: 4.039 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0002602/0.4088, allocations: 68.58 kB / 1.351 GB, free: 3.973 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003247/0.4091, allocations: 219.4 kB / 1.351 GB, free: 3.758 MB / 1.045 GB Notification: Performance of SimCode: time 5.61e-07/0.4091, allocations: 0 / 1.351 GB, free: 3.758 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0379/0.447, allocations: 11.39 MB / 1.362 GB, free: 8.559 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.301/8.748, allocations: 2.531 kB / 1.362 GB, free: 8.559 MB / 1.061 GB " [Timeout remaining time 291] (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: 15.692868934944272]