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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001211/0.001212, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 191.8 kB / 16.14 MB, free: 6.691 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.171/1.171, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.057/2.057, allocations: 390.2 MB / 0.6643 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 63.89 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4748/0.476, allocations: 140.4 MB / 0.949 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.003976/0.48, allocations: 4.146 MB / 0.9531 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001919/0.482, allocations: 1.283 MB / 0.9543 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004777/0.4824, allocations: 20.41 kB / 0.9544 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003073/0.4828, allocations: 100.7 kB / 0.9545 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003625/0.4831, allocations: 139.9 kB / 0.9546 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006749/0.4838, allocations: 387.6 kB / 0.955 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0007112/0.4845, allocations: 0.8752 MB / 0.9558 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000467/0.485, allocations: 434.3 kB / 0.9562 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002287/0.4853, allocations: 274.6 kB / 0.9565 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002078/0.4855, allocations: 308.2 kB / 0.9568 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.243e-05/0.4855, allocations: 41.16 kB / 0.9568 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.824e-05/0.4856, allocations: 39.78 kB / 0.9569 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.231e-05/0.4857, allocations: 124.1 kB / 0.957 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001968/0.4859, allocations: 352.7 kB / 0.9573 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005106/0.4864, allocations: 0.988 MB / 0.9583 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.4864, allocations: 1.312 kB / 0.9583 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of FrontEnd: time 5.91e-07/0.4864, allocations: 4 kB / 0.9583 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.845e-06/0.4865, allocations: 0 / 0.9583 GB, free: 1.965 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.001362/0.4878, allocations: 1.075 MB / 0.9593 GB, free: 1.094 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.4879, allocations: 10.41 kB / 0.9593 GB, free: 1.094 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.102e-05/0.4879, allocations: 101.2 kB / 0.9594 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.4881, allocations: 85.72 kB / 0.9595 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005837/0.4886, allocations: 0.5519 MB / 0.9601 GB, free: 484 kB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.05e-05/0.4887, allocations: 40.94 kB / 0.9601 GB, free: 464 kB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.579e-05/0.4888, allocations: 67.2 kB / 0.9602 GB, free: 436 kB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008741/0.4896, allocations: 0.6143 MB / 0.9608 GB, free: 28 kB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.4897, allocations: 1.062 kB / 0.9608 GB, free: 28 kB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.455e-05/0.4897, allocations: 21.53 kB / 0.9608 GB, free: 12 kB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.4897, allocations: 14.22 kB / 0.9608 GB, free: 12 kB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009167/0.4907, allocations: 462 kB / 0.9612 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002518/0.4932, allocations: 2.013 MB / 0.9632 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008191/0.494, allocations: 443.4 kB / 0.9636 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004068/0.4944, allocations: 247.5 kB / 0.9639 GB, free: 13.83 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.164e-05/0.4945, allocations: 5.938 kB / 0.9639 GB, free: 13.83 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005146/0.495, allocations: 258 kB / 0.9641 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 1.754e-06/0.495, allocations: 0 / 0.9641 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.001219/0.4962, allocations: 0.5869 MB / 0.9647 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/0.4963, allocations: 57.41 kB / 0.9647 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004483/0.4967, allocations: 444.2 kB / 0.9652 GB, free: 13.02 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.383e-05/0.4968, allocations: 36.45 kB / 0.9652 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001849/0.497, allocations: 324.6 kB / 0.9655 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.4971, allocations: 161.4 kB / 0.9657 GB, free: 12.56 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.4972, allocations: 103.8 kB / 0.9658 GB, free: 12.49 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001152/0.4973, allocations: 358.7 kB / 0.9661 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003616/0.4977, allocations: 163.5 kB / 0.9663 GB, free: 12.06 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000397/0.4981, allocations: 258.1 kB / 0.9665 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007373/0.4989, allocations: 451.9 kB / 0.9669 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.339e-06/0.4989, allocations: 5 kB / 0.9669 GB, free: 11.58 MB / 0.7325 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009725/0.4998, allocations: 0.5623 MB / 0.9675 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.4999, allocations: 36.17 kB / 0.9675 GB, free: 11.24 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.4999, allocations: 2.375 kB / 0.9675 GB, free: 11.24 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.4999, allocations: 4.312 kB / 0.9675 GB, free: 11.24 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004372/0.5004, allocations: 109.2 kB / 0.9676 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/0.5004, allocations: 9.531 kB / 0.9676 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003103/0.5007, allocations: 65.47 kB / 0.9677 GB, free: 11.17 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.415e-05/0.5007, allocations: 18.09 kB / 0.9677 GB, free: 11.16 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.0002111/0.501, allocations: 212.4 kB / 0.9679 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.471e-05/0.501, allocations: 57.53 kB / 0.968 GB, free: 10.95 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001145/0.5011, allocations: 66.94 kB / 0.968 GB, free: 10.9 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.5012, allocations: 9.281 kB / 0.9681 GB, free: 10.89 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.5012, allocations: 0 / 0.9681 GB, free: 10.89 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.5012, allocations: 7.922 kB / 0.9681 GB, free: 10.89 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001494/0.5027, allocations: 1.171 MB / 0.9692 GB, free: 10.03 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.5027, allocations: 1.625 kB / 0.9692 GB, free: 10.03 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000433/0.5031, allocations: 98.41 kB / 0.9693 GB, free: 10 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.5031, allocations: 2.188 kB / 0.9693 GB, free: 10 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.024e-05/0.5032, allocations: 10.91 kB / 0.9693 GB, free: 9.996 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.5032, allocations: 6.594 kB / 0.9693 GB, free: 9.992 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.5032, allocations: 0 / 0.9693 GB, free: 9.992 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.5044, allocations: 0.7615 MB / 0.9701 GB, free: 9.535 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001514/0.5046, allocations: 168.3 kB / 0.9702 GB, free: 9.371 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.096e-05/0.5046, allocations: 14.86 kB / 0.9702 GB, free: 9.359 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002898/0.5049, allocations: 28.97 kB / 0.9703 GB, free: 9.344 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.259e-05/0.505, allocations: 32.48 kB / 0.9703 GB, free: 9.328 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.591e-05/0.505, allocations: 14.12 kB / 0.9703 GB, free: 9.324 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002868/0.5053, allocations: 314.2 kB / 0.9706 GB, free: 9.129 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5053, allocations: 0 / 0.9706 GB, free: 9.129 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003719/0.5057, allocations: 142.8 kB / 0.9707 GB, free: 9.09 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.001421/0.5071, allocations: 1.32 MB / 0.972 GB, free: 8.094 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0008099/0.508, allocations: 484.8 kB / 0.9725 GB, free: 7.848 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.508, allocations: 5.281 kB / 0.9725 GB, free: 7.844 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003805/0.5084, allocations: 213.8 kB / 0.9727 GB, free: 7.75 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006823/0.5091, allocations: 154.5 kB / 0.9729 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006555/0.5156, allocations: 5.141 MB / 0.9779 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.516, allocations: 0.8863 MB / 0.9787 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002408/0.5162, allocations: 64.58 kB / 0.9788 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002625/0.5165, allocations: 215.4 kB / 0.979 GB, free: 2.723 MB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.5165, allocations: 4 kB / 0.979 GB, free: 2.719 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3356/0.8521, allocations: 10.66 MB / 0.9894 GB, free: 8.242 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002733/0.8524, allocations: 210.8 kB / 0.9896 GB, free: 7.98 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.763/2.615, allocations: 0 / 0.9896 GB, free: 7.98 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