Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPIDPar.u_s|limPIDPar.u_m|limPIDPar.y|limPIDInp.u_s|limPIDInp.u_m|limPIDInp.y|limPIPar.u_s|limPIPar.u_m|limPIPar.y|limPIInp.u_s|limPIInp.u_m|limPIInp.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPIDPar.u_s|limPIDPar.u_m|limPIDPar.y|limPIDInp.u_s|limPIDInp.u_m|limPIDInp.y|limPIPar.u_s|limPIPar.u_m|limPIPar.y|limPIInp.u_s|limPIInp.u_m|limPIInp.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001158, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001357/0.001357, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 223.2 MB / 239.9 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.777/2.777, allocations: 436.5 MB / 0.7104 GB, free: 7.816 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005118/0.0005123, allocations: 12 kB / 0.8708 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.875/0.8756, allocations: 153.7 MB / 1.021 GB, free: 1.066 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset): time 0.003495/0.8791, allocations: 2.645 MB / 1.023 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002775/0.8819, allocations: 1.676 MB / 1.025 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004007/0.8824, allocations: 16 kB / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001364/0.8825, allocations: 71.11 kB / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004254/0.8829, allocations: 135.5 kB / 1.025 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005951/0.8835, allocations: 255.7 kB / 1.026 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007887/0.8843, allocations: 0.6049 MB / 1.026 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006641/0.885, allocations: 453.8 kB / 1.027 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002726/0.8853, allocations: 242.7 kB / 1.027 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003358/0.8856, allocations: 290.1 kB / 1.027 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.825e-05/0.8857, allocations: 28 kB / 1.027 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.764e-05/0.8858, allocations: 24 kB / 1.027 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001124/0.8859, allocations: 131.3 kB / 1.027 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001306/0.886, allocations: 165.1 kB / 1.027 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000878/0.8869, allocations: 0.9564 MB / 1.028 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.8869, allocations: 0 / 1.028 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.914e-06/0.887, allocations: 4 kB / 1.028 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.363e-05/0.887, allocations: 0 / 1.028 GB, free: 9.359 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: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.002211/0.8892, allocations: 1.154 MB / 1.029 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/0.8893, allocations: 11.98 kB / 1.029 GB, free: 8.145 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001911/0.8894, allocations: 118.6 kB / 1.03 GB, free: 8.027 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008003/0.8903, allocations: 0.5277 MB / 1.03 GB, free: 7.453 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.299e-05/0.8903, allocations: 74 kB / 1.03 GB, free: 7.383 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.8905, allocations: 92 kB / 1.03 GB, free: 7.293 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001592/0.8921, allocations: 0.89 MB / 1.031 GB, free: 6.379 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.8921, allocations: 0 / 1.031 GB, free: 6.379 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.46e-05/0.8922, allocations: 36 kB / 1.031 GB, free: 6.344 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.192e-05/0.8922, allocations: 20 kB / 1.031 GB, free: 6.324 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.8935, allocations: 0.6481 MB / 1.032 GB, free: 5.68 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00445/0.898, allocations: 2.857 MB / 1.035 GB, free: 2.738 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00172/0.8997, allocations: 1.341 MB / 1.036 GB, free: 1.242 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 5.213e-05/0.8998, allocations: 16.64 kB / 1.036 GB, free: 1.227 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007798/0.9006, allocations: 372.2 kB / 1.036 GB, free: 0.8516 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=74): time 3.606e-06/0.9006, allocations: 0 / 1.036 GB, free: 0.8516 MB / 0.7794 GB Notification: Performance of matching and sorting (n=74): time 0.001891/0.9025, allocations: 0.8678 MB / 1.037 GB, free: 15.97 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001377/0.9027, allocations: 166.8 kB / 1.037 GB, free: 15.78 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007518/0.9034, allocations: 0.55 MB / 1.038 GB, free: 15.22 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.953e-05/0.9035, allocations: 41.7 kB / 1.038 GB, free: 15.17 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003305/0.9038, allocations: 392.2 kB / 1.038 GB, free: 14.78 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002242/0.9041, allocations: 264.2 kB / 1.038 GB, free: 14.52 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.778e-05/0.9041, allocations: 8 kB / 1.038 GB, free: 14.51 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001958/0.9043, allocations: 382.8 kB / 1.039 GB, free: 14.13 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005575/0.9049, allocations: 253.9 kB / 1.039 GB, free: 13.88 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006499/0.9055, allocations: 365.2 kB / 1.039 GB, free: 13.49 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005882/0.9061, allocations: 290.9 kB / 1.04 GB, free: 13.21 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.9061, allocations: 0 / 1.04 GB, free: 13.21 MB / 0.795 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001383/0.9075, allocations: 0.7193 MB / 1.04 GB, free: 12.48 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001855/0.9077, allocations: 368 kB / 1.041 GB, free: 12.09 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/0.9077, allocations: 0 / 1.041 GB, free: 12.09 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.227e-05/0.9078, allocations: 4 kB / 1.041 GB, free: 12.09 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000634/0.9084, allocations: 171.7 kB / 1.041 GB, free: 11.92 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.447e-05/0.9084, allocations: 4 kB / 1.041 GB, free: 11.92 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004531/0.9089, allocations: 119.2 kB / 1.041 GB, free: 11.8 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.254e-05/0.9089, allocations: 23.98 kB / 1.041 GB, free: 11.78 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 9.197e-06/0.909, allocations: 4 kB / 1.041 GB, free: 11.77 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00089/0.9098, allocations: 0.5116 MB / 1.042 GB, free: 11.26 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-06/0.9099, allocations: 4.094 kB / 1.042 GB, free: 11.26 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.492e-06/0.9099, allocations: 4 kB / 1.042 GB, free: 11.25 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004942/0.9104, allocations: 143.9 kB / 1.042 GB, free: 11.11 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.9104, allocations: 11.94 kB / 1.042 GB, free: 11.1 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003538/0.9108, allocations: 83.34 kB / 1.042 GB, free: 11.02 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.216e-05/0.9108, allocations: 24 kB / 1.042 GB, free: 11 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,limPIDInp.trigger,con.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003967/0.9112, allocations: 289 kB / 1.042 GB, free: 10.7 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.9113, allocations: 83 kB / 1.042 GB, free: 10.62 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001282/0.9126, allocations: 0.6691 MB / 1.043 GB, free: 9.945 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-05/0.9126, allocations: 7.984 kB / 1.043 GB, free: 9.938 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.9126, allocations: 4 kB / 1.043 GB, free: 9.934 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.338e-06/0.9126, allocations: 0 / 1.043 GB, free: 9.934 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002766/0.9154, allocations: 1.731 MB / 1.045 GB, free: 8.125 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.9154, allocations: 0 / 1.045 GB, free: 8.125 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006021/0.9161, allocations: 147.8 kB / 1.045 GB, free: 7.98 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.728e-06/0.9161, allocations: 4 kB / 1.045 GB, free: 7.977 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.34e-05/0.9161, allocations: 16.19 kB / 1.045 GB, free: 7.961 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.079e-05/0.9161, allocations: 12.03 kB / 1.045 GB, free: 7.949 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.351e-06/0.9161, allocations: 15.84 kB / 1.045 GB, free: 7.934 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001972/0.9181, allocations: 1.173 MB / 1.046 GB, free: 6.688 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002256/0.9184, allocations: 164 kB / 1.046 GB, free: 6.508 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.558e-05/0.9185, allocations: 16 kB / 1.046 GB, free: 6.492 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003787/0.9188, allocations: 59.91 kB / 1.046 GB, free: 6.434 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.485e-05/0.9189, allocations: 52.48 kB / 1.046 GB, free: 6.383 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.267e-05/0.919, allocations: 24 kB / 1.046 GB, free: 6.359 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0005114/0.9195, allocations: 390.8 kB / 1.047 GB, free: 5.98 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9195, allocations: 4 kB / 1.047 GB, free: 5.977 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0007897/0.9203, allocations: 302.5 kB / 1.047 GB, free: 5.68 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 10 (limPIDPar.I.y,limPIDPar.D.x,intWitRes1.y,limPIDInp.I.y,limPIDInp.D.x,intWitRes2.y,limPIPar.I.y,intWitRes3.y,limPIInp.I.y,intWitRes4.y) * Number of discrete variables: 2 (limPIDInp.trigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002237/0.9205, allocations: 133.2 kB / 1.047 GB, free: 5.539 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00167/0.9222, allocations: 0.899 MB / 1.048 GB, free: 4.641 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.9222, allocations: 0 / 1.048 GB, free: 4.641 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0005679/0.9228, allocations: 331.2 kB / 1.048 GB, free: 4.32 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006916/0.9235, allocations: 124.6 kB / 1.048 GB, free: 4.203 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002584/0.9261, allocations: 1.861 MB / 1.05 GB, free: 2.289 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006083/0.9267, allocations: 0.9976 MB / 1.051 GB, free: 1.266 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0003446/0.9271, allocations: 81.2 kB / 1.051 GB, free: 1.184 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000163/0.9273, allocations: 59.42 kB / 1.051 GB, free: 1.125 MB / 0.795 GB Notification: Performance of SimCode: time 8.01e-07/0.9273, allocations: 0 / 1.051 GB, free: 1.125 MB / 0.795 GB Notification: Performance of Templates: time 0.0135/0.9408, allocations: 6.748 MB / 1.058 GB, free: 10.43 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithReset.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches