Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_9_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.001099/0.001099, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 197 kB / 16.53 MB, free: 6.664 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.195/1.195, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.042/2.042, allocations: 390.2 MB / 0.6647 GB, free: 464 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 59.91 kB / 0.8126 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4869/0.4881, allocations: 140.4 MB / 0.9497 GB, free: 9.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.00372/0.4918, allocations: 4.127 MB / 0.9537 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001509/0.4934, allocations: 1.319 MB / 0.955 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002403/0.4936, allocations: 21.69 kB / 0.955 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002302/0.4938, allocations: 132 kB / 0.9552 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002457/0.4941, allocations: 175.2 kB / 0.9553 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005809/0.4947, allocations: 418.4 kB / 0.9557 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000564/0.4953, allocations: 0.9565 MB / 0.9567 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004369/0.4957, allocations: 460.5 kB / 0.9571 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002249/0.4959, allocations: 323.8 kB / 0.9574 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002261/0.4962, allocations: 336.9 kB / 0.9577 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.691e-05/0.4963, allocations: 90.62 kB / 0.9578 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.4964, allocations: 90.31 kB / 0.9579 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.862e-05/0.4965, allocations: 183.2 kB / 0.9581 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002153/0.4967, allocations: 397.2 kB / 0.9585 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005252/0.4972, allocations: 1.03 MB / 0.9595 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.4972, allocations: 1.062 kB / 0.9595 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.082e-06/0.4972, allocations: 0 / 0.9595 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.566e-06/0.4973, allocations: 0 / 0.9595 GB, free: 1.496 MB / 0.7169 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.001343/0.4986, allocations: 1.079 MB / 0.9605 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.016e-05/0.4986, allocations: 13.69 kB / 0.9605 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.875e-05/0.4987, allocations: 105.2 kB / 0.9606 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.4988, allocations: 81.31 kB / 0.9607 GB, free: 496 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000571/0.4994, allocations: 0.5484 MB / 0.9613 GB, free: 0 / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.139e-05/0.4995, allocations: 41.23 kB / 0.9613 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.357e-05/0.4996, allocations: 67.42 kB / 0.9614 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009016/0.5005, allocations: 0.6103 MB / 0.962 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.5005, allocations: 1.062 kB / 0.962 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.669e-05/0.5005, allocations: 21.47 kB / 0.962 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.388e-05/0.5006, allocations: 13.62 kB / 0.962 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008714/0.5014, allocations: 465.6 kB / 0.9624 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002297/0.5037, allocations: 2.013 MB / 0.9644 GB, free: 13.72 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007982/0.5046, allocations: 450.6 kB / 0.9648 GB, free: 13.49 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000414/0.505, allocations: 241.9 kB / 0.9651 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.073e-05/0.505, allocations: 4.875 kB / 0.9651 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004874/0.5055, allocations: 266 kB / 0.9653 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 1.883e-06/0.5055, allocations: 0 / 0.9653 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.001136/0.5067, allocations: 0.5799 MB / 0.9659 GB, free: 12.89 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.967e-05/0.5067, allocations: 57.28 kB / 0.9659 GB, free: 12.83 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000425/0.5071, allocations: 451.1 kB / 0.9664 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.297e-05/0.5072, allocations: 40.58 kB / 0.9664 GB, free: 12.51 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001956/0.5074, allocations: 321 kB / 0.9667 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/0.5075, allocations: 166.2 kB / 0.9669 GB, free: 12.08 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000127/0.5076, allocations: 94.47 kB / 0.967 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.5078, allocations: 363.5 kB / 0.9673 GB, free: 11.67 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000348/0.5081, allocations: 163.2 kB / 0.9675 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000399/0.5085, allocations: 257.9 kB / 0.9677 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007403/0.5093, allocations: 452 kB / 0.9681 GB, free: 11.11 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.5093, allocations: 1.312 kB / 0.9681 GB, free: 11.11 MB / 0.7325 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009085/0.5102, allocations: 0.5588 MB / 0.9687 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.04e-05/0.5103, allocations: 37.77 kB / 0.9687 GB, free: 10.77 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.5103, allocations: 9.359 kB / 0.9687 GB, free: 10.77 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.5103, allocations: 4.5 kB / 0.9687 GB, free: 10.77 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000446/0.5107, allocations: 117.7 kB / 0.9688 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.5108, allocations: 5.625 kB / 0.9689 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000281/0.511, allocations: 57.09 kB / 0.9689 GB, free: 10.7 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.196e-05/0.5111, allocations: 18.16 kB / 0.9689 GB, free: 10.69 MB / 0.7325 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.0002126/0.5113, allocations: 206.3 kB / 0.9691 GB, free: 10.52 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.726e-05/0.5114, allocations: 66.39 kB / 0.9692 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001034/0.5115, allocations: 61.91 kB / 0.9692 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.5115, allocations: 5.469 kB / 0.9692 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.5115, allocations: 0 / 0.9692 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.5115, allocations: 3.984 kB / 0.9693 GB, free: 10.42 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001522/0.513, allocations: 1.174 MB / 0.9704 GB, free: 9.562 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.5131, allocations: 1.188 kB / 0.9704 GB, free: 9.562 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004263/0.5135, allocations: 99.44 kB / 0.9705 GB, free: 9.535 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.5135, allocations: 1.438 kB / 0.9705 GB, free: 9.535 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.865e-05/0.5135, allocations: 11.38 kB / 0.9705 GB, free: 9.527 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.5135, allocations: 2.281 kB / 0.9705 GB, free: 9.527 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.5135, allocations: 0 / 0.9705 GB, free: 9.527 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001185/0.5147, allocations: 0.7618 MB / 0.9713 GB, free: 9.07 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001541/0.5149, allocations: 167.9 kB / 0.9714 GB, free: 8.906 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.893e-05/0.515, allocations: 14.31 kB / 0.9714 GB, free: 8.895 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002617/0.5152, allocations: 27.59 kB / 0.9715 GB, free: 8.879 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.901e-05/0.5153, allocations: 31.92 kB / 0.9715 GB, free: 8.863 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.63e-05/0.5153, allocations: 25.36 kB / 0.9715 GB, free: 8.848 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002959/0.5156, allocations: 311 kB / 0.9718 GB, free: 8.656 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5157, allocations: 0 / 0.9718 GB, free: 8.656 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003809/0.516, allocations: 141.8 kB / 0.9719 GB, free: 8.617 MB / 0.7325 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.001463/0.5175, allocations: 1.318 MB / 0.9732 GB, free: 7.621 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0009533/0.5185, allocations: 0.4953 MB / 0.9737 GB, free: 7.352 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.5185, allocations: 0 / 0.9737 GB, free: 7.352 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.00038/0.5189, allocations: 215.6 kB / 0.9739 GB, free: 7.258 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006726/0.5195, allocations: 156.8 kB / 0.9741 GB, free: 7.18 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006334/0.5259, allocations: 4.881 MB / 0.9788 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000391/0.5263, allocations: 0.8899 MB / 0.9797 GB, free: 2.457 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002457/0.5265, allocations: 68.58 kB / 0.9798 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002611/0.5268, allocations: 219.4 kB / 0.98 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of SimCode: time 3.41e-07/0.5268, allocations: 0 / 0.98 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5137/1.041, allocations: 11.13 MB / 0.9908 GB, free: 7.207 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.559/8.599, allocations: 7.531 kB / 0.9909 GB, free: 7.199 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches