Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_latest_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.001207/0.001207, allocations: 108 kB / 15.61 MB, free: 148 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.001209/0.001209, allocations: 193.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.224/1.224, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.484/2.484, allocations: 469.4 MB / 0.742 GB, free: 7.676 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 62.33 kB / 0.9083 GB, free: 34.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2497, allocations: 159.1 MB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004507/0.2542, allocations: 4.13 MB / 1.068 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00176/0.256, allocations: 1.328 MB / 1.069 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002489/0.2562, allocations: 23.88 kB / 1.069 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002689/0.2565, allocations: 122.8 kB / 1.069 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002845/0.2568, allocations: 178.4 kB / 1.069 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006848/0.2575, allocations: 420.2 kB / 1.07 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006869/0.2582, allocations: 0.9594 MB / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005244/0.2587, allocations: 454.1 kB / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002768/0.259, allocations: 330.7 kB / 1.071 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002775/0.2593, allocations: 338.3 kB / 1.072 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.678e-05/0.2594, allocations: 92 kB / 1.072 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.862e-05/0.2595, allocations: 88 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.2596, allocations: 179.4 kB / 1.072 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002666/0.2599, allocations: 390.1 kB / 1.072 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007073/0.2606, allocations: 1.032 MB / 1.073 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2606, allocations: 0 / 1.073 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2606, allocations: 4 kB / 1.073 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.279e-05/0.2607, allocations: 0 / 1.073 GB, free: 4.43 MB / 0.8262 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.001544/0.2622, allocations: 1.077 MB / 1.074 GB, free: 3.293 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.2622, allocations: 8.031 kB / 1.074 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.943e-05/0.2624, allocations: 102.7 kB / 1.075 GB, free: 3.176 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.2625, allocations: 83.91 kB / 1.075 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006787/0.2632, allocations: 0.5611 MB / 1.075 GB, free: 2.496 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.029e-05/0.2632, allocations: 41.69 kB / 1.075 GB, free: 2.457 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.826e-05/0.2633, allocations: 60.38 kB / 1.075 GB, free: 2.398 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008999/0.2642, allocations: 0.5999 MB / 1.076 GB, free: 1.773 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.2642, allocations: 8 kB / 1.076 GB, free: 1.766 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.661e-05/0.2643, allocations: 27.88 kB / 1.076 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.2643, allocations: 16 kB / 1.076 GB, free: 1.723 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008801/0.2652, allocations: 453 kB / 1.076 GB, free: 1.281 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002332/0.2675, allocations: 2.02 MB / 1.078 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000814/0.2683, allocations: 438 kB / 1.079 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004015/0.2688, allocations: 246.5 kB / 1.079 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.63e-05/0.2688, allocations: 16.42 kB / 1.079 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005506/0.2694, allocations: 257.2 kB / 1.079 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=49): time 1.703e-06/0.2694, allocations: 0 / 1.079 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of matching and sorting (n=49): time 0.001151/0.2705, allocations: 0.5882 MB / 1.08 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/0.2706, allocations: 55.84 kB / 1.08 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004081/0.271, allocations: 446.1 kB / 1.08 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.11e-05/0.271, allocations: 37.7 kB / 1.08 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001853/0.2712, allocations: 320.3 kB / 1.081 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.2713, allocations: 169.5 kB / 1.081 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/0.2715, allocations: 90.25 kB / 1.081 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001144/0.2716, allocations: 366.8 kB / 1.081 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003498/0.2719, allocations: 169 kB / 1.081 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003767/0.2723, allocations: 253.8 kB / 1.082 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000733/0.2731, allocations: 448 kB / 1.082 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.2731, allocations: 0 / 1.082 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009175/0.274, allocations: 0.5623 MB / 1.083 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.046e-05/0.274, allocations: 37.7 kB / 1.083 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.274, allocations: 7.984 kB / 1.083 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.2741, allocations: 4 kB / 1.083 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004362/0.2745, allocations: 107.8 kB / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.2745, allocations: 12.23 kB / 1.083 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002765/0.2748, allocations: 55.52 kB / 1.083 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.368e-05/0.2748, allocations: 16 kB / 1.083 GB, free: 10.41 MB / 0.8419 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.000205/0.2751, allocations: 216.6 kB / 1.083 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.336e-05/0.2751, allocations: 63.19 kB / 1.083 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001127/0.2752, allocations: 57.59 kB / 1.083 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.2753, allocations: 11.94 kB / 1.083 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.2753, allocations: 7.984 kB / 1.083 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.2753, allocations: 0 / 1.083 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001472/0.2768, allocations: 1.177 MB / 1.084 GB, free: 8.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.2768, allocations: 0 / 1.084 GB, free: 8.82 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004344/0.2772, allocations: 95.88 kB / 1.084 GB, free: 8.727 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.2772, allocations: 8 kB / 1.084 GB, free: 8.719 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.741e-05/0.2773, allocations: 8 kB / 1.084 GB, free: 8.711 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.2773, allocations: 4 kB / 1.084 GB, free: 8.707 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.2773, allocations: 0 / 1.084 GB, free: 8.707 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001157/0.2784, allocations: 0.7524 MB / 1.085 GB, free: 7.945 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001439/0.2786, allocations: 172.4 kB / 1.085 GB, free: 7.758 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.086e-05/0.2786, allocations: 12 kB / 1.085 GB, free: 7.746 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002625/0.2789, allocations: 31.86 kB / 1.085 GB, free: 7.715 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.09e-05/0.279, allocations: 36.38 kB / 1.085 GB, free: 7.676 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.431e-05/0.279, allocations: 15.98 kB / 1.085 GB, free: 7.66 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000277/0.2793, allocations: 306.9 kB / 1.086 GB, free: 7.363 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2793, allocations: 0 / 1.086 GB, free: 7.363 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003711/0.2797, allocations: 151.4 kB / 1.086 GB, free: 7.215 MB / 0.8419 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.001406/0.2811, allocations: 1.317 MB / 1.087 GB, free: 5.871 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000958/0.2821, allocations: 0.4892 MB / 1.088 GB, free: 5.367 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2821, allocations: 0 / 1.088 GB, free: 5.367 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003765/0.2825, allocations: 218.9 kB / 1.088 GB, free: 5.148 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000677/0.2832, allocations: 161.8 kB / 1.088 GB, free: 5 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006321/0.2895, allocations: 4.882 MB / 1.093 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.2899, allocations: 0.8899 MB / 1.094 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0002499/0.2901, allocations: 60.59 kB / 1.094 GB, free: 15 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002617/0.2904, allocations: 223.4 kB / 1.094 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of SimCode: time 5.91e-07/0.2904, allocations: 3.938 kB / 1.094 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02853/0.3189, allocations: 11.12 MB / 1.105 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.745/7.064, allocations: 1.719 kB / 1.105 GB, free: 3.82 MB / 0.8575 GB (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches