Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.OBC.CDL.Reals.Validation.PIDWithResetScale,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithResetScale",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithResetScale",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.0009646/0.0009646, allocations: 98.27 kB / 15.36 MB, free: 0.7305 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.001042/0.001042, allocations: 172.9 kB / 16.27 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.34/1.34, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.503/2.503, allocations: 437.8 MB / 0.7121 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003684/0.0003686, allocations: 12 kB / 0.873 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6675/0.6679, allocations: 153.8 MB / 1.023 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale): time 0.00262/0.6706, allocations: 1.79 MB / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00318/0.6738, allocations: 1.673 MB / 1.027 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004553/0.6743, allocations: 8 kB / 1.027 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002743/0.6746, allocations: 67.38 kB / 1.027 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002643/0.6748, allocations: 59.56 kB / 1.027 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001011/0.6758, allocations: 376.2 kB / 1.027 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007497/0.6766, allocations: 0.6997 MB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005899/0.6772, allocations: 369.7 kB / 1.028 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001994/0.6774, allocations: 202.9 kB / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002808/0.6777, allocations: 234.6 kB / 1.028 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.964e-05/0.6778, allocations: 24 kB / 1.029 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.144e-05/0.6779, allocations: 31.98 kB / 1.029 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.815e-05/0.6779, allocations: 87.5 kB / 1.029 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002072/0.6781, allocations: 276 kB / 1.029 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006896/0.6788, allocations: 0.8156 MB / 1.03 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.6789, allocations: 4 kB / 1.03 GB, free: 9.121 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.523e-06/0.6789, allocations: 0 / 1.03 GB, free: 9.121 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.833e-06/0.6789, allocations: 0 / 1.03 GB, free: 9.121 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.001564/0.6804, allocations: 0.8741 MB / 1.031 GB, free: 8.18 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.6805, allocations: 8.031 kB / 1.031 GB, free: 8.172 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001018/0.6806, allocations: 98.69 kB / 1.031 GB, free: 8.066 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001793/0.6808, allocations: 68.19 kB / 1.031 GB, free: 8 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004714/0.6813, allocations: 421.9 kB / 1.031 GB, free: 7.547 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.288e-05/0.6813, allocations: 49.69 kB / 1.031 GB, free: 7.5 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.385e-05/0.6814, allocations: 64.36 kB / 1.031 GB, free: 7.438 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008303/0.6822, allocations: 0.5236 MB / 1.032 GB, free: 6.898 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.6823, allocations: 11.88 kB / 1.032 GB, free: 6.887 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.995e-05/0.6823, allocations: 20 kB / 1.032 GB, free: 6.867 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/0.6823, allocations: 12 kB / 1.032 GB, free: 6.855 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007871/0.6831, allocations: 389 kB / 1.032 GB, free: 6.477 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002592/0.6857, allocations: 1.697 MB / 1.034 GB, free: 4.719 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/0.6869, allocations: 0.9112 MB / 1.035 GB, free: 3.691 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004851/0.6874, allocations: 257.5 kB / 1.035 GB, free: 3.438 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.233e-05/0.6874, allocations: 8.438 kB / 1.035 GB, free: 3.43 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005356/0.688, allocations: 281.3 kB / 1.035 GB, free: 3.141 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=53): time 1.934e-06/0.688, allocations: 0 / 1.035 GB, free: 3.141 MB / 0.7794 GB Notification: Performance of matching and sorting (n=53): time 0.001128/0.6891, allocations: 0.6039 MB / 1.036 GB, free: 2.531 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.522e-05/0.6892, allocations: 107.2 kB / 1.036 GB, free: 2.402 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004379/0.6896, allocations: 409.6 kB / 1.036 GB, free: 1.992 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.342e-05/0.6897, allocations: 41.7 kB / 1.036 GB, free: 1.945 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/0.6899, allocations: 253.1 kB / 1.037 GB, free: 1.695 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002426/0.6901, allocations: 177.4 kB / 1.037 GB, free: 1.52 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.867e-05/0.6902, allocations: 65.69 kB / 1.037 GB, free: 1.449 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001668/0.6904, allocations: 358.7 kB / 1.037 GB, free: 1.09 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004561/0.6909, allocations: 217 kB / 1.037 GB, free: 0.875 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006295/0.6915, allocations: 315.4 kB / 1.038 GB, free: 0.5391 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007882/0.6923, allocations: 0.5034 MB / 1.038 GB, free: 0 / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.178e-05/0.6923, allocations: 0 / 1.038 GB, free: 0 / 0.7794 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001249/0.6936, allocations: 0.6807 MB / 1.039 GB, free: 15.29 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002215/0.6938, allocations: 211.6 kB / 1.039 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.6938, allocations: 4 kB / 1.039 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.6939, allocations: 4 kB / 1.039 GB, free: 15.04 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004072/0.6943, allocations: 107.8 kB / 1.039 GB, free: 14.94 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.6943, allocations: 8 kB / 1.039 GB, free: 14.93 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005841/0.6949, allocations: 139.3 kB / 1.039 GB, free: 14.79 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.76e-05/0.6949, allocations: 27.98 kB / 1.039 GB, free: 14.77 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.994e-06/0.695, allocations: 4 kB / 1.039 GB, free: 14.76 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00109/0.6961, allocations: 0.582 MB / 1.04 GB, free: 14.17 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.806e-06/0.6961, allocations: 0 / 1.04 GB, free: 14.17 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.698e-06/0.6961, allocations: 4 kB / 1.04 GB, free: 14.16 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002983/0.6964, allocations: 87.89 kB / 1.04 GB, free: 14.08 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.557e-06/0.6964, allocations: 11.92 kB / 1.04 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005149/0.6969, allocations: 124.4 kB / 1.04 GB, free: 13.95 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.404e-05/0.697, allocations: 27.98 kB / 1.04 GB, free: 13.92 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition6,booPul.y,$PRE.booPul.y,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,$PRE.pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 2 * 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.0002464/0.6972, allocations: 263.2 kB / 1.04 GB, free: 13.65 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.6e-05/0.6973, allocations: 47.44 kB / 1.04 GB, free: 13.61 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008384/0.6981, allocations: 497.5 kB / 1.041 GB, free: 13.11 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.6981, allocations: 4 kB / 1.041 GB, free: 13.1 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.6982, allocations: 4 kB / 1.041 GB, free: 13.1 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.6982, allocations: 0 / 1.041 GB, free: 13.1 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001984/0.7002, allocations: 1.24 MB / 1.042 GB, free: 11.79 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.7002, allocations: 7.938 kB / 1.042 GB, free: 11.78 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003426/0.7005, allocations: 87.89 kB / 1.042 GB, free: 11.69 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.531e-06/0.7005, allocations: 4 kB / 1.042 GB, free: 11.69 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.052e-05/0.7006, allocations: 15.98 kB / 1.042 GB, free: 11.67 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.7006, allocations: 4 kB / 1.042 GB, free: 11.67 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.7006, allocations: 4.188 kB / 1.042 GB, free: 11.66 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001353/0.7019, allocations: 0.8069 MB / 1.043 GB, free: 10.82 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.7021, allocations: 140.3 kB / 1.043 GB, free: 10.67 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.344e-05/0.7021, allocations: 12 kB / 1.043 GB, free: 10.66 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002312/0.7024, allocations: 31.97 kB / 1.043 GB, free: 10.62 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.498e-05/0.7024, allocations: 36.33 kB / 1.043 GB, free: 10.59 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.842e-05/0.7025, allocations: 24 kB / 1.043 GB, free: 10.57 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003035/0.7028, allocations: 279.2 kB / 1.043 GB, free: 10.3 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.562e-06/0.7028, allocations: 0 / 1.043 GB, free: 10.3 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006499/0.7034, allocations: 231.2 kB / 1.044 GB, free: 10.07 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (pidSca.I.y,pidSca.D.x,pla1.y,pidNoSca.I.y,pidNoSca.D.x,pla2.y) * Number of discrete variables: 8 ($whenCondition6,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 51 * 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.002036/0.7055, allocations: 1.381 MB / 1.045 GB, free: 8.645 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001701/0.7072, allocations: 1.029 MB / 1.046 GB, free: 7.566 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.7072, allocations: 0 / 1.046 GB, free: 7.566 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003665/0.7076, allocations: 226.3 kB / 1.046 GB, free: 7.348 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007455/0.7083, allocations: 106 kB / 1.046 GB, free: 7.238 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007318/0.7157, allocations: 5.033 MB / 1.051 GB, free: 2.051 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004587/0.7161, allocations: 0.8596 MB / 1.052 GB, free: 1.16 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002047/0.7163, allocations: 52.16 kB / 1.052 GB, free: 1.109 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002554/0.7166, allocations: 199.4 kB / 1.052 GB, free: 0.9141 MB / 0.795 GB Notification: Performance of SimCode: time 3.61e-07/0.7166, allocations: 4 kB / 1.052 GB, free: 0.9102 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02587/0.7425, allocations: 11.06 MB / 1.063 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0211/0.7636, allocations: 218 kB / 1.063 GB, free: 5.828 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.987/2.751, allocations: 4 kB / 1.063 GB, free: 5.824 MB / 0.8106 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithResetScale_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithResetScale.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithResetScale.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches