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.001178/0.001178, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001116/0.001116, allocations: 189.5 kB / 16.25 MB, free: 6.621 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.165/1.165, allocations: 222.9 MB / 239.9 MB, free: 4.52 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.066/2.066, allocations: 390.2 MB / 0.6644 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001122/0.001122, allocations: 59.89 kB / 0.8121 GB, free: 14.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5137/0.5149, allocations: 140.4 MB / 0.9492 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004578/0.5195, allocations: 4.152 MB / 0.9533 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002293/0.5218, allocations: 1.269 MB / 0.9545 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006982/0.5225, allocations: 24.88 kB / 0.9545 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003275/0.5229, allocations: 92.44 kB / 0.9546 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000389/0.5233, allocations: 151.9 kB / 0.9548 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007309/0.524, allocations: 379.1 kB / 0.9551 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0007066/0.5247, allocations: 0.9562 MB / 0.9561 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004774/0.5252, allocations: 460.8 kB / 0.9565 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002619/0.5255, allocations: 327 kB / 0.9568 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002274/0.5257, allocations: 340.5 kB / 0.9571 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.4e-05/0.5258, allocations: 91.47 kB / 0.9572 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001047/0.5259, allocations: 90.66 kB / 0.9573 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.063e-05/0.526, allocations: 178.8 kB / 0.9575 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000233/0.5263, allocations: 397 kB / 0.9579 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006095/0.5269, allocations: 1.034 MB / 0.9589 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.5269, allocations: 4.719 kB / 0.9589 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.523e-06/0.5269, allocations: 0 / 0.9589 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.598e-06/0.5269, allocations: 0 / 0.9589 GB, free: 1.711 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.001482/0.5284, allocations: 1.075 MB / 0.9599 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.5285, allocations: 10.12 kB / 0.9599 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.847e-05/0.5285, allocations: 96.92 kB / 0.96 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.5287, allocations: 85.44 kB / 0.9601 GB, free: 0.7109 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000622/0.5293, allocations: 0.5478 MB / 0.9606 GB, free: 232 kB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.288e-05/0.5293, allocations: 50.22 kB / 0.9607 GB, free: 204 kB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.368e-05/0.5294, allocations: 62.62 kB / 0.9608 GB, free: 180 kB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009785/0.5304, allocations: 0.6031 MB / 0.9613 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.5305, allocations: 4.734 kB / 0.9613 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.211e-05/0.5305, allocations: 25 kB / 0.9614 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.304e-05/0.5305, allocations: 15.22 kB / 0.9614 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009353/0.5315, allocations: 457.3 kB / 0.9618 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002611/0.5341, allocations: 2.019 MB / 0.9638 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008762/0.535, allocations: 445.8 kB / 0.9642 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004825/0.5355, allocations: 239.8 kB / 0.9644 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 5.604e-05/0.5355, allocations: 9.859 kB / 0.9645 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000579/0.5361, allocations: 257.9 kB / 0.9647 GB, free: 13.42 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 2.344e-06/0.5361, allocations: 0 / 0.9647 GB, free: 13.42 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.001243/0.5374, allocations: 0.587 MB / 0.9653 GB, free: 13.11 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/0.5374, allocations: 62.22 kB / 0.9653 GB, free: 13.05 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00048/0.5379, allocations: 443.7 kB / 0.9658 GB, free: 12.77 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.109e-05/0.538, allocations: 39.8 kB / 0.9658 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002273/0.5382, allocations: 320.9 kB / 0.9661 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/0.5384, allocations: 166.1 kB / 0.9663 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001443/0.5385, allocations: 99.06 kB / 0.9664 GB, free: 12.24 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.5387, allocations: 366.1 kB / 0.9667 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003948/0.5391, allocations: 164.2 kB / 0.9669 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004455/0.5395, allocations: 253.4 kB / 0.9671 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007993/0.5403, allocations: 452.6 kB / 0.9675 GB, free: 11.33 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.5403, allocations: 0.9375 kB / 0.9675 GB, free: 11.33 MB / 0.7325 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001031/0.5414, allocations: 0.5624 MB / 0.9681 GB, free: 11.02 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.234e-05/0.5414, allocations: 32.48 kB / 0.9681 GB, free: 10.99 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.5414, allocations: 9.406 kB / 0.9681 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.5415, allocations: 5.25 kB / 0.9681 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004554/0.5419, allocations: 113.2 kB / 0.9682 GB, free: 10.96 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/0.5419, allocations: 5.531 kB / 0.9682 GB, free: 10.96 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003587/0.5423, allocations: 65.19 kB / 0.9683 GB, free: 10.91 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.823e-05/0.5423, allocations: 18.84 kB / 0.9683 GB, free: 10.91 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.0002382/0.5426, allocations: 206.2 kB / 0.9685 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.076e-05/0.5427, allocations: 57.12 kB / 0.9686 GB, free: 10.7 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000127/0.5428, allocations: 70.27 kB / 0.9686 GB, free: 10.64 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.5428, allocations: 5.438 kB / 0.9686 GB, free: 10.64 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.5428, allocations: 0 / 0.9686 GB, free: 10.64 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.5428, allocations: 5.391 kB / 0.9687 GB, free: 10.64 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001682/0.5445, allocations: 1.177 MB / 0.9698 GB, free: 9.777 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.5445, allocations: 1.406 kB / 0.9698 GB, free: 9.777 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004424/0.545, allocations: 91.08 kB / 0.9699 GB, free: 9.758 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.545, allocations: 2.5 kB / 0.9699 GB, free: 9.758 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.682e-05/0.545, allocations: 15.45 kB / 0.9699 GB, free: 9.746 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.5451, allocations: 0.9688 kB / 0.9699 GB, free: 9.746 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.5451, allocations: 1.094 kB / 0.9699 GB, free: 9.746 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001286/0.5464, allocations: 0.7615 MB / 0.9707 GB, free: 9.289 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001913/0.5466, allocations: 171.1 kB / 0.9708 GB, free: 9.121 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.074e-05/0.5466, allocations: 11.44 kB / 0.9708 GB, free: 9.113 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000307/0.5469, allocations: 25.06 kB / 0.9709 GB, free: 9.102 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.5471, allocations: 44.73 kB / 0.9709 GB, free: 9.074 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-05/0.5471, allocations: 21.23 kB / 0.9709 GB, free: 9.062 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003311/0.5474, allocations: 307.1 kB / 0.9712 GB, free: 8.875 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5474, allocations: 0 / 0.9712 GB, free: 8.875 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004535/0.5479, allocations: 149.2 kB / 0.9713 GB, free: 8.828 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.001559/0.5495, allocations: 1.321 MB / 0.9726 GB, free: 7.832 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001119/0.5506, allocations: 0.4926 MB / 0.9731 GB, free: 7.57 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.5506, allocations: 8 kB / 0.9731 GB, free: 7.562 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004199/0.551, allocations: 214 kB / 0.9733 GB, free: 7.469 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007557/0.5518, allocations: 159.4 kB / 0.9735 GB, free: 7.387 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00755/0.5594, allocations: 5.129 MB / 0.9785 GB, free: 3.383 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004228/0.5598, allocations: 0.886 MB / 0.9794 GB, free: 2.473 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002893/0.5601, allocations: 64.58 kB / 0.9794 GB, free: 2.41 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002793/0.5604, allocations: 219.4 kB / 0.9796 GB, free: 2.195 MB / 0.7325 GB Notification: Performance of SimCode: time 4.61e-07/0.5604, allocations: 0 / 0.9796 GB, free: 2.195 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06675/0.6271, allocations: 10.95 MB / 0.9903 GB, free: 7.457 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003002/0.6275, allocations: 208.9 kB / 0.9905 GB, free: 7.195 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.5/3.127, allocations: 0 / 0.9905 GB, free: 7.195 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