Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 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: translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 97.41 kB / 15.36 MB, free: 0.7344 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.009553/0.009553, allocations: 169.6 kB / 16.27 MB, free: 6.652 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.557/1.557, allocations: 223.3 MB / 240.3 MB, free: 5.348 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.705/2.705, allocations: 390.9 MB / 0.6663 GB, free: 2.305 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004696/0.00047, allocations: 12 kB / 0.816 GB, free: 13.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8091/0.8096, allocations: 142.4 MB / 0.9551 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset): time 0.002917/0.8126, allocations: 2.844 MB / 0.9578 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002773/0.8154, allocations: 1.674 MB / 0.9595 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006859/0.8161, allocations: 19.25 kB / 0.9595 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003927/0.8165, allocations: 120.1 kB / 0.9596 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003447/0.8169, allocations: 80.33 kB / 0.9597 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006531/0.8175, allocations: 301.9 kB / 0.96 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001065/0.8186, allocations: 0.9834 MB / 0.9609 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009028/0.8195, allocations: 0.5909 MB / 0.9615 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003326/0.8199, allocations: 253.9 kB / 0.9618 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002996/0.8202, allocations: 315.5 kB / 0.9621 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.764e-05/0.8202, allocations: 25.78 kB / 0.9621 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.666e-05/0.8203, allocations: 26.75 kB / 0.9621 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.8204, allocations: 137.2 kB / 0.9622 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002744/0.8207, allocations: 378 kB / 0.9626 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0009135/0.8216, allocations: 1.152 MB / 0.9637 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.8217, allocations: 0 / 0.9637 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.535e-06/0.8217, allocations: 0 / 0.9637 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.082e-05/0.8217, allocations: 3.938 kB / 0.9637 GB, free: 0.8398 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: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.002018/0.8237, allocations: 1.141 MB / 0.9648 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.8238, allocations: 10 kB / 0.9648 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002104/0.824, allocations: 116.7 kB / 0.965 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007556/0.8248, allocations: 0.551 MB / 0.9655 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.101e-05/0.8248, allocations: 76.86 kB / 0.9656 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/0.825, allocations: 93.12 kB / 0.9657 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001834/0.8268, allocations: 0.8927 MB / 0.9665 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.197e-05/0.8268, allocations: 4.188 kB / 0.9665 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.544e-05/0.8269, allocations: 45.06 kB / 0.9666 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.528e-05/0.827, allocations: 25.53 kB / 0.9666 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001525/0.8285, allocations: 0.6489 MB / 0.9672 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005245/0.8338, allocations: 2.864 MB / 0.97 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00183/0.8356, allocations: 1.337 MB / 0.9713 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007727/0.8364, allocations: 416.2 kB / 0.9717 GB, free: 11.02 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 5.451e-05/0.8365, allocations: 8.844 kB / 0.9717 GB, free: 11.02 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009238/0.8374, allocations: 370.7 kB / 0.9721 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=74): time 3.356e-06/0.8374, allocations: 0 / 0.9721 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of matching and sorting (n=74): time 0.001995/0.8394, allocations: 0.872 MB / 0.9729 GB, free: 10.4 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.8396, allocations: 162.3 kB / 0.9731 GB, free: 10.21 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008707/0.8404, allocations: 0.564 MB / 0.9737 GB, free: 9.875 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 7.732e-05/0.8405, allocations: 41.5 kB / 0.9737 GB, free: 9.832 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000323/0.8409, allocations: 397.9 kB / 0.9741 GB, free: 9.484 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002142/0.8411, allocations: 256.5 kB / 0.9743 GB, free: 9.258 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.886e-05/0.8412, allocations: 65.81 kB / 0.9744 GB, free: 9.211 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001867/0.8414, allocations: 387.5 kB / 0.9748 GB, free: 8.84 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000616/0.842, allocations: 255.7 kB / 0.975 GB, free: 8.727 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007468/0.8428, allocations: 381.8 kB / 0.9754 GB, free: 8.477 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001169/0.8439, allocations: 0.5705 MB / 0.9759 GB, free: 8.191 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.844, allocations: 3.938 kB / 0.9759 GB, free: 8.188 MB / 0.7325 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001656/0.8456, allocations: 0.7324 MB / 0.9766 GB, free: 7.832 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 9.972e-05/0.8457, allocations: 118.2 kB / 0.9767 GB, free: 7.711 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.8458, allocations: 9.312 kB / 0.9768 GB, free: 7.703 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.8458, allocations: 3.531 kB / 0.9768 GB, free: 7.703 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006712/0.8465, allocations: 161.2 kB / 0.9769 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.588e-05/0.8465, allocations: 8.125 kB / 0.9769 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005113/0.847, allocations: 115.2 kB / 0.977 GB, free: 7.602 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.143e-05/0.8471, allocations: 19.59 kB / 0.9771 GB, free: 7.598 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 9.839e-06/0.8471, allocations: 4.719 kB / 0.9771 GB, free: 7.598 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009366/0.848, allocations: 0.5294 MB / 0.9776 GB, free: 7.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.848, allocations: 1.438 kB / 0.9776 GB, free: 7.34 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.936e-06/0.8481, allocations: 8.062 kB / 0.9776 GB, free: 7.336 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004822/0.8485, allocations: 133.2 kB / 0.9777 GB, free: 7.309 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.8486, allocations: 8.672 kB / 0.9777 GB, free: 7.305 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003821/0.8489, allocations: 84.27 kB / 0.9778 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.865e-05/0.849, allocations: 27.52 kB / 0.9778 GB, free: 7.242 MB / 0.7325 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 (limPIDInp.trigger,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005091/0.8495, allocations: 293.5 kB / 0.9781 GB, free: 6.984 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.8496, allocations: 69.88 kB / 0.9782 GB, free: 6.949 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001382/0.851, allocations: 0.6814 MB / 0.9788 GB, free: 6.395 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.458e-05/0.851, allocations: 8 kB / 0.9788 GB, free: 6.387 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.8511, allocations: 0 / 0.9788 GB, free: 6.387 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.8511, allocations: 3.984 kB / 0.9788 GB, free: 6.383 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002929/0.854, allocations: 1.739 MB / 0.9805 GB, free: 4.566 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.854, allocations: 4 kB / 0.9805 GB, free: 4.562 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006148/0.8546, allocations: 140 kB / 0.9807 GB, free: 4.426 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.21e-05/0.8547, allocations: 15.94 kB / 0.9807 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.187e-05/0.8547, allocations: 16 kB / 0.9807 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.327e-06/0.8547, allocations: 4 kB / 0.9807 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.8547, allocations: 4 kB / 0.9807 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001884/0.8566, allocations: 1.116 MB / 0.9818 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001757/0.8568, allocations: 164.2 kB / 0.982 GB, free: 3.055 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.93e-05/0.8569, allocations: 16 kB / 0.982 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000364/0.8573, allocations: 63.89 kB / 0.982 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.365e-05/0.8574, allocations: 52.47 kB / 0.9821 GB, free: 2.926 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.739e-05/0.8574, allocations: 23.98 kB / 0.9821 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000544/0.858, allocations: 394.8 kB / 0.9825 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.91e-07/0.858, allocations: 4 kB / 0.9825 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0009919/0.859, allocations: 310.4 kB / 0.9828 GB, free: 2.211 MB / 0.7325 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 (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.0002427/0.8592, allocations: 132.5 kB / 0.9829 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001851/0.8611, allocations: 0.9108 MB / 0.9838 GB, free: 1.164 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.8611, allocations: 0 / 0.9838 GB, free: 1.164 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0006236/0.8617, allocations: 335.5 kB / 0.9841 GB, free: 0.8359 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.8629, allocations: 130.2 kB / 0.9843 GB, free: 0.7109 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003474/0.8664, allocations: 1.955 MB / 0.9862 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007407/0.8672, allocations: 0.9781 MB / 0.9871 GB, free: 13.7 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0004527/0.8676, allocations: 81.14 kB / 0.9872 GB, free: 13.62 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001767/0.8678, allocations: 63.36 kB / 0.9873 GB, free: 13.56 MB / 0.7481 GB Notification: Performance of SimCode: time 1.222e-06/0.8678, allocations: 0 / 0.9873 GB, free: 13.56 MB / 0.7481 GB Notification: Performance of Templates: time 0.01545/0.8833, allocations: 7.041 MB / 0.9941 GB, free: 6.586 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches