Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_10_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.00537/0.00537, allocations: 97.78 kB / 15.73 MB, free: 5.961 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.0012/0.0012, allocations: 195.3 kB / 16.67 MB, free: 5.883 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.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.382/2.382, allocations: 437 MB / 0.7105 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 63.84 kB / 1.018 GB, free: 9.93 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6959/0.6973, allocations: 151.6 MB / 1.166 GB, free: 3.785 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004905/0.7022, allocations: 4.125 MB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.002017/0.7042, allocations: 1.325 MB / 1.171 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002651/0.7045, allocations: 19.94 kB / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0002994/0.7048, allocations: 126.7 kB / 1.172 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0003192/0.7052, allocations: 186.4 kB / 1.172 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007709/0.7059, allocations: 424.9 kB / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0008092/0.7068, allocations: 0.9593 MB / 1.173 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005654/0.7073, allocations: 458.1 kB / 1.174 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000302/0.7076, allocations: 330.8 kB / 1.174 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003542/0.708, allocations: 342.3 kB / 1.174 GB, free: 11.48 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001184/0.7081, allocations: 88 kB / 1.174 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001144/0.7082, allocations: 92 kB / 1.174 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001401/0.7084, allocations: 183.4 kB / 1.175 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003977/0.7088, allocations: 390 kB / 1.175 GB, free: 10.74 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0009038/0.7097, allocations: 1.058 MB / 1.176 GB, free: 9.68 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.7097, allocations: 3.938 kB / 1.176 GB, free: 9.676 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.585e-06/0.7097, allocations: 3.984 kB / 1.176 GB, free: 9.672 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 9.017e-06/0.7097, allocations: 0 / 1.176 GB, free: 9.672 MB / 0.9044 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.001697/0.7114, allocations: 1.104 MB / 1.177 GB, free: 8.508 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.7115, allocations: 12.91 kB / 1.177 GB, free: 8.496 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001166/0.7116, allocations: 98.7 kB / 1.177 GB, free: 8.391 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001176/0.7117, allocations: 88.42 kB / 1.177 GB, free: 8.305 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008686/0.7126, allocations: 0.5655 MB / 1.178 GB, free: 7.699 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.346e-05/0.7126, allocations: 41.69 kB / 1.178 GB, free: 7.66 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.442e-05/0.7127, allocations: 64.25 kB / 1.178 GB, free: 7.598 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.7138, allocations: 0.6116 MB / 1.178 GB, free: 6.961 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.28e-05/0.7138, allocations: 7.938 kB / 1.178 GB, free: 6.953 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.084e-05/0.7138, allocations: 28 kB / 1.178 GB, free: 6.926 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.7139, allocations: 12 kB / 1.179 GB, free: 6.914 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009434/0.7148, allocations: 457 kB / 1.179 GB, free: 6.469 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00261/0.7174, allocations: 1.997 MB / 1.181 GB, free: 4.402 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000878/0.7183, allocations: 445 kB / 1.181 GB, free: 3.957 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004333/0.7188, allocations: 242.1 kB / 1.182 GB, free: 3.719 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.125e-05/0.7188, allocations: 4.438 kB / 1.182 GB, free: 3.715 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005033/0.7193, allocations: 265.2 kB / 1.182 GB, free: 3.445 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=49): time 1.974e-06/0.7193, allocations: 4 kB / 1.182 GB, free: 3.441 MB / 0.9044 GB Notification: Performance of matching and sorting (n=49): time 0.001233/0.7206, allocations: 0.5768 MB / 1.182 GB, free: 2.859 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.074e-05/0.7206, allocations: 67.83 kB / 1.182 GB, free: 2.781 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004649/0.7211, allocations: 442 kB / 1.183 GB, free: 2.34 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.292e-05/0.7212, allocations: 37.7 kB / 1.183 GB, free: 2.297 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002187/0.7214, allocations: 333.6 kB / 1.183 GB, free: 1.965 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.7215, allocations: 170.5 kB / 1.183 GB, free: 1.797 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.7217, allocations: 94.23 kB / 1.183 GB, free: 1.699 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001533/0.7218, allocations: 362.8 kB / 1.184 GB, free: 1.336 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003686/0.7222, allocations: 169 kB / 1.184 GB, free: 1.172 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004247/0.7226, allocations: 249.8 kB / 1.184 GB, free: 0.9023 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007776/0.7234, allocations: 456 kB / 1.185 GB, free: 428 kB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.7234, allocations: 3.938 kB / 1.185 GB, free: 424 kB / 0.9044 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009924/0.7244, allocations: 0.5667 MB / 1.185 GB, free: 15.84 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.154e-05/0.7245, allocations: 37.73 kB / 1.185 GB, free: 15.79 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-06/0.7245, allocations: 0 / 1.185 GB, free: 15.79 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.7245, allocations: 8 kB / 1.185 GB, free: 15.79 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004645/0.725, allocations: 115.8 kB / 1.185 GB, free: 15.67 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.725, allocations: 4 kB / 1.185 GB, free: 15.67 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002896/0.7253, allocations: 63.59 kB / 1.185 GB, free: 15.61 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.584e-05/0.7253, allocations: 16 kB / 1.185 GB, free: 15.59 MB / 0.92 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.0002396/0.7256, allocations: 212.7 kB / 1.186 GB, free: 15.38 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.671e-05/0.7257, allocations: 63.56 kB / 1.186 GB, free: 15.31 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001223/0.7258, allocations: 65.58 kB / 1.186 GB, free: 15.25 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.7258, allocations: 4 kB / 1.186 GB, free: 15.25 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.7258, allocations: 0 / 1.186 GB, free: 15.25 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.7258, allocations: 3.984 kB / 1.186 GB, free: 15.24 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001618/0.7274, allocations: 1.182 MB / 1.187 GB, free: 14 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.7275, allocations: 3.984 kB / 1.187 GB, free: 14 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004571/0.7279, allocations: 95.83 kB / 1.187 GB, free: 13.91 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.7279, allocations: 0 / 1.187 GB, free: 13.91 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.356e-05/0.728, allocations: 15.98 kB / 1.187 GB, free: 13.89 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.728, allocations: 0 / 1.187 GB, free: 13.89 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.728, allocations: 4 kB / 1.187 GB, free: 13.89 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.7292, allocations: 0.7616 MB / 1.188 GB, free: 13.11 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001901/0.7295, allocations: 172.6 kB / 1.188 GB, free: 12.92 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.461e-05/0.7295, allocations: 12 kB / 1.188 GB, free: 12.91 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002726/0.7298, allocations: 23.97 kB / 1.188 GB, free: 12.89 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.956e-05/0.7299, allocations: 36.39 kB / 1.188 GB, free: 12.85 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.719e-05/0.7299, allocations: 19.94 kB / 1.188 GB, free: 12.83 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0003174/0.7302, allocations: 310.9 kB / 1.188 GB, free: 12.53 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.11e-07/0.7302, allocations: 0 / 1.188 GB, free: 12.53 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000394/0.7306, allocations: 143.6 kB / 1.188 GB, free: 12.39 MB / 0.92 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.001627/0.7323, allocations: 1.313 MB / 1.19 GB, free: 11.05 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0008467/0.7331, allocations: 489.5 kB / 1.19 GB, free: 10.56 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.7331, allocations: 0 / 1.19 GB, free: 10.56 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0003928/0.7335, allocations: 214.4 kB / 1.19 GB, free: 10.35 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006781/0.7342, allocations: 157.4 kB / 1.191 GB, free: 10.21 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006389/0.7406, allocations: 4.816 MB / 1.195 GB, free: 5.23 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003862/0.741, allocations: 0.886 MB / 1.196 GB, free: 4.316 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0002283/0.7413, allocations: 64.59 kB / 1.196 GB, free: 4.254 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002754/0.7415, allocations: 219.4 kB / 1.196 GB, free: 4.039 MB / 0.92 GB Notification: Performance of SimCode: time 3.21e-07/0.7416, allocations: 0 / 1.196 GB, free: 4.039 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03074/0.7723, allocations: 11.32 MB / 1.207 GB, free: 8.91 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.355/9.127, allocations: 24.91 kB / 1.207 GB, free: 8.891 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches