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.001203/0.001203, 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.001195/0.001195, allocations: 197.7 kB / 16.53 MB, free: 6.66 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.199/1.199, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.091/2.091, allocations: 390.2 MB / 0.6647 GB, free: 420 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 71.84 kB / 0.8126 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5044/0.5056, allocations: 140.3 MB / 0.9497 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.003921/0.5095, allocations: 4.133 MB / 0.9537 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001567/0.5111, allocations: 1.32 MB / 0.955 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002526/0.5114, allocations: 25.78 kB / 0.9551 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002391/0.5116, allocations: 122.9 kB / 0.9552 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002505/0.5119, allocations: 180 kB / 0.9553 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006014/0.5125, allocations: 411.9 kB / 0.9557 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005843/0.5131, allocations: 0.9568 MB / 0.9567 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004639/0.5136, allocations: 463.9 kB / 0.9571 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002351/0.5138, allocations: 332.8 kB / 0.9574 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000233/0.514, allocations: 325.1 kB / 0.9577 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.972e-05/0.5142, allocations: 89.81 kB / 0.9578 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.5143, allocations: 90.75 kB / 0.9579 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.488e-05/0.5144, allocations: 182.6 kB / 0.9581 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002247/0.5146, allocations: 396.6 kB / 0.9585 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006047/0.5152, allocations: 1.031 MB / 0.9595 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.5152, allocations: 3.938 kB / 0.9595 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.132e-06/0.5152, allocations: 0 / 0.9595 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.043e-05/0.5152, allocations: 4.812 kB / 0.9595 GB, free: 1.539 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.001481/0.5167, allocations: 1.079 MB / 0.9605 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.5168, allocations: 9.156 kB / 0.9605 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.489e-05/0.5168, allocations: 101.5 kB / 0.9606 GB, free: 0.5742 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.517, allocations: 82.53 kB / 0.9607 GB, free: 0.5352 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006077/0.5176, allocations: 0.5552 MB / 0.9613 GB, free: 44 kB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.153e-05/0.5176, allocations: 49.34 kB / 0.9613 GB, free: 16 kB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.634e-05/0.5177, allocations: 59.2 kB / 0.9614 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009498/0.5187, allocations: 0.6103 MB / 0.962 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.5187, allocations: 1.312 kB / 0.962 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.931e-05/0.5188, allocations: 29.25 kB / 0.962 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.5188, allocations: 14.03 kB / 0.962 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008969/0.5197, allocations: 458.2 kB / 0.9624 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002504/0.5222, allocations: 2.012 MB / 0.9644 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008429/0.5231, allocations: 442.7 kB / 0.9648 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004156/0.5235, allocations: 240.5 kB / 0.9651 GB, free: 13.42 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.21e-05/0.5235, allocations: 10.33 kB / 0.9651 GB, free: 13.41 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005348/0.5241, allocations: 261.3 kB / 0.9653 GB, free: 13.24 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 1.974e-06/0.5241, allocations: 0 / 0.9653 GB, free: 13.24 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.001193/0.5253, allocations: 0.5796 MB / 0.9659 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.963e-05/0.5253, allocations: 61.45 kB / 0.9659 GB, free: 12.88 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004383/0.5258, allocations: 447.2 kB / 0.9664 GB, free: 12.6 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.369e-05/0.5258, allocations: 36.95 kB / 0.9664 GB, free: 12.56 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002062/0.526, allocations: 332.8 kB / 0.9667 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.5262, allocations: 160.9 kB / 0.9669 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/0.5263, allocations: 98.84 kB / 0.967 GB, free: 12.06 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.5264, allocations: 368 kB / 0.9673 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003698/0.5268, allocations: 163.2 kB / 0.9675 GB, free: 11.63 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003995/0.5272, allocations: 250 kB / 0.9677 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007622/0.528, allocations: 452 kB / 0.9681 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.528, allocations: 1.094 kB / 0.9681 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009509/0.529, allocations: 0.5702 MB / 0.9687 GB, free: 10.84 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.97e-05/0.529, allocations: 32.36 kB / 0.9687 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.529, allocations: 2.625 kB / 0.9687 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.529, allocations: 3.719 kB / 0.9687 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004429/0.5295, allocations: 114.5 kB / 0.9688 GB, free: 10.79 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.5295, allocations: 4.031 kB / 0.9689 GB, free: 10.79 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003047/0.5298, allocations: 62.72 kB / 0.9689 GB, free: 10.74 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.26e-05/0.5298, allocations: 17.47 kB / 0.9689 GB, free: 10.74 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.0002156/0.5301, allocations: 206.3 kB / 0.9691 GB, free: 10.56 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.486e-05/0.5301, allocations: 58.31 kB / 0.9692 GB, free: 10.53 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001193/0.5303, allocations: 65.73 kB / 0.9692 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.5303, allocations: 5.5 kB / 0.9693 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.5303, allocations: 0 / 0.9693 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.5303, allocations: 7.984 kB / 0.9693 GB, free: 10.47 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001544/0.5318, allocations: 1.174 MB / 0.9704 GB, free: 9.609 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.5319, allocations: 1.062 kB / 0.9704 GB, free: 9.609 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004462/0.5323, allocations: 91.52 kB / 0.9705 GB, free: 9.59 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.5323, allocations: 2.094 kB / 0.9705 GB, free: 9.59 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.974e-05/0.5324, allocations: 19.52 kB / 0.9705 GB, free: 9.574 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/0.5324, allocations: 1.156 kB / 0.9705 GB, free: 9.574 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.5324, allocations: 1.188 kB / 0.9705 GB, free: 9.574 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001218/0.5336, allocations: 0.7656 MB / 0.9713 GB, free: 9.113 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001523/0.5338, allocations: 171.7 kB / 0.9714 GB, free: 8.945 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.006e-05/0.5338, allocations: 6.469 kB / 0.9714 GB, free: 8.941 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002869/0.5341, allocations: 31.44 kB / 0.9715 GB, free: 8.922 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.708e-05/0.5342, allocations: 32.3 kB / 0.9715 GB, free: 8.906 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.252e-05/0.5342, allocations: 13.59 kB / 0.9715 GB, free: 8.902 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002916/0.5345, allocations: 314.6 kB / 0.9718 GB, free: 8.707 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5345, allocations: 0 / 0.9718 GB, free: 8.707 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004028/0.5349, allocations: 141.5 kB / 0.9719 GB, free: 8.668 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.5364, allocations: 1.332 MB / 0.9732 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00099/0.5374, allocations: 496.2 kB / 0.9737 GB, free: 7.398 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.5374, allocations: 3.938 kB / 0.9737 GB, free: 7.395 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003806/0.5378, allocations: 215.8 kB / 0.9739 GB, free: 7.301 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007265/0.5386, allocations: 155.3 kB / 0.9741 GB, free: 7.223 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006786/0.5454, allocations: 4.882 MB / 0.9788 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003968/0.5458, allocations: 0.8938 MB / 0.9797 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002933/0.5461, allocations: 64.58 kB / 0.9798 GB, free: 2.359 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002585/0.5463, allocations: 215.4 kB / 0.98 GB, free: 2.148 MB / 0.7325 GB Notification: Performance of SimCode: time 5.81e-07/0.5464, allocations: 0 / 0.98 GB, free: 2.148 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02718/0.5735, allocations: 11.12 MB / 0.9908 GB, free: 7.188 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.778/7.351, allocations: 16.97 kB / 0.9909 GB, free: 7.176 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 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.csv","/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