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.001514/0.001514, 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.001673/0.001673, allocations: 195.5 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.234/1.234, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.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.333/2.333, allocations: 437 MB / 0.7104 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 71.88 kB / 0.8693 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5017/0.5029, allocations: 151.6 MB / 1.017 GB, free: 2.504 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005019/0.5079, allocations: 4.127 MB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002217/0.5102, allocations: 1.317 MB / 1.023 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004/0.5106, allocations: 19.94 kB / 1.023 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003184/0.5109, allocations: 126.7 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003801/0.5113, allocations: 190.3 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007693/0.5121, allocations: 415.1 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0008371/0.5129, allocations: 0.9553 MB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005574/0.5135, allocations: 458.1 kB / 1.025 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003407/0.5139, allocations: 330.7 kB / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003196/0.5142, allocations: 334.4 kB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001248/0.5143, allocations: 92 kB / 1.026 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001118/0.5144, allocations: 92 kB / 1.026 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001332/0.5146, allocations: 179.4 kB / 1.026 GB, free: 9.859 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003014/0.5149, allocations: 390 kB / 1.026 GB, free: 9.477 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007607/0.5156, allocations: 1.03 MB / 1.027 GB, free: 8.445 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.5157, allocations: 3.938 kB / 1.027 GB, free: 8.441 MB / 0.7794 GB Notification: Performance of FrontEnd: time 8.21e-07/0.5157, allocations: 0 / 1.027 GB, free: 8.441 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.536e-06/0.5157, allocations: 4 kB / 1.027 GB, free: 8.438 MB / 0.7794 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.001563/0.5172, allocations: 1.077 MB / 1.028 GB, free: 7.305 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.085e-05/0.5173, allocations: 11.97 kB / 1.028 GB, free: 7.293 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.422e-05/0.5174, allocations: 102.7 kB / 1.028 GB, free: 7.184 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.5175, allocations: 91.91 kB / 1.028 GB, free: 7.094 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007103/0.5182, allocations: 0.5417 MB / 1.029 GB, free: 6.508 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.387e-05/0.5183, allocations: 45.69 kB / 1.029 GB, free: 6.465 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.855e-05/0.5184, allocations: 68.3 kB / 1.029 GB, free: 6.398 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009289/0.5193, allocations: 0.6038 MB / 1.03 GB, free: 5.77 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.5193, allocations: 0 / 1.03 GB, free: 5.77 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.843e-05/0.5194, allocations: 24 kB / 1.03 GB, free: 5.746 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.5194, allocations: 16 kB / 1.03 GB, free: 5.73 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009018/0.5203, allocations: 461 kB / 1.03 GB, free: 5.281 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002456/0.5228, allocations: 2.016 MB / 1.032 GB, free: 3.191 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00084/0.5236, allocations: 442.1 kB / 1.033 GB, free: 2.754 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004131/0.524, allocations: 242 kB / 1.033 GB, free: 2.516 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.108e-05/0.5241, allocations: 8.438 kB / 1.033 GB, free: 2.508 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005125/0.5246, allocations: 261.2 kB / 1.033 GB, free: 2.238 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=49): time 1.713e-06/0.5246, allocations: 0 / 1.033 GB, free: 2.238 MB / 0.7794 GB Notification: Performance of matching and sorting (n=49): time 0.001201/0.5258, allocations: 0.5844 MB / 1.034 GB, free: 1.648 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.59e-05/0.5259, allocations: 63.83 kB / 1.034 GB, free: 1.574 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004218/0.5263, allocations: 442 kB / 1.034 GB, free: 1.133 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.48e-05/0.5263, allocations: 37.69 kB / 1.034 GB, free: 1.09 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001971/0.5265, allocations: 321 kB / 1.034 GB, free: 0.7734 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.5267, allocations: 165.6 kB / 1.035 GB, free: 0.6094 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/0.5268, allocations: 94.16 kB / 1.035 GB, free: 0.5117 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.5269, allocations: 370.8 kB / 1.035 GB, free: 144 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003786/0.5273, allocations: 165.1 kB / 1.035 GB, free: 15.98 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004181/0.5277, allocations: 249.8 kB / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007719/0.5285, allocations: 456 kB / 1.036 GB, free: 15.23 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.5285, allocations: 0 / 1.036 GB, free: 15.23 MB / 0.795 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000972/0.5295, allocations: 0.5663 MB / 1.036 GB, free: 14.65 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.68e-05/0.5296, allocations: 33.7 kB / 1.036 GB, free: 14.61 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.5296, allocations: 4 kB / 1.036 GB, free: 14.61 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.5296, allocations: 4 kB / 1.036 GB, free: 14.6 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004781/0.5301, allocations: 111.8 kB / 1.037 GB, free: 14.49 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.597e-06/0.5301, allocations: 4 kB / 1.037 GB, free: 14.49 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002957/0.5304, allocations: 59.5 kB / 1.037 GB, free: 14.43 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.35e-05/0.5304, allocations: 24.12 kB / 1.037 GB, free: 14.41 MB / 0.795 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.0002172/0.5306, allocations: 210.5 kB / 1.037 GB, free: 14.19 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.342e-05/0.5307, allocations: 55.28 kB / 1.037 GB, free: 14.14 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001053/0.5308, allocations: 69.58 kB / 1.037 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.5308, allocations: 4 kB / 1.037 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.5308, allocations: 0 / 1.037 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.5309, allocations: 3.984 kB / 1.037 GB, free: 14.06 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001573/0.5324, allocations: 1.177 MB / 1.038 GB, free: 12.83 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.5324, allocations: 3.938 kB / 1.038 GB, free: 12.82 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004445/0.5329, allocations: 91.88 kB / 1.038 GB, free: 12.73 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.5329, allocations: 7.938 kB / 1.038 GB, free: 12.73 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.816e-05/0.5329, allocations: 12 kB / 1.038 GB, free: 12.71 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.533, allocations: 0 / 1.038 GB, free: 12.71 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.533, allocations: 4 kB / 1.038 GB, free: 12.71 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001253/0.5342, allocations: 0.7601 MB / 1.039 GB, free: 11.93 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001634/0.5344, allocations: 168.3 kB / 1.039 GB, free: 11.75 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.05e-05/0.5345, allocations: 12 kB / 1.039 GB, free: 11.74 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002736/0.5347, allocations: 27.97 kB / 1.039 GB, free: 11.71 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.072e-05/0.5348, allocations: 36.39 kB / 1.039 GB, free: 11.68 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.5349, allocations: 11.98 kB / 1.039 GB, free: 11.66 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002978/0.5352, allocations: 310.8 kB / 1.039 GB, free: 11.36 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5352, allocations: 0 / 1.039 GB, free: 11.36 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003899/0.5356, allocations: 147.4 kB / 1.04 GB, free: 11.22 MB / 0.795 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.00148/0.5371, allocations: 1.317 MB / 1.041 GB, free: 9.879 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001013/0.5381, allocations: 0.4931 MB / 1.041 GB, free: 9.375 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.5381, allocations: 4 kB / 1.041 GB, free: 9.371 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003917/0.5385, allocations: 218.3 kB / 1.042 GB, free: 9.156 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006874/0.5392, allocations: 154.3 kB / 1.042 GB, free: 9.012 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006673/0.5459, allocations: 4.878 MB / 1.047 GB, free: 3.984 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000431/0.5463, allocations: 0.8899 MB / 1.047 GB, free: 3.066 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002593/0.5466, allocations: 68.58 kB / 1.047 GB, free: 3 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002963/0.5469, allocations: 219.4 kB / 1.048 GB, free: 2.785 MB / 0.795 GB Notification: Performance of SimCode: time 2.41e-07/0.5469, allocations: 4 kB / 1.048 GB, free: 2.781 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0283/0.5752, allocations: 11.12 MB / 1.059 GB, free: 7.828 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.915/7.491, allocations: 26 kB / 1.059 GB, free: 7.812 MB / 0.8106 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