Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 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.PIDWithResetScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s|pidSca.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s|pidSca.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 99.86 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.00142/0.00142, 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.473/1.473, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.799/2.799, allocations: 436.5 MB / 0.7104 GB, free: 7.879 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003605/0.0003606, allocations: 8 kB / 0.8708 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7853/0.7857, allocations: 153.7 MB / 1.021 GB, free: 1.098 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale): time 0.002314/0.788, allocations: 1.675 MB / 1.022 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002606/0.7907, allocations: 1.596 MB / 1.024 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002412/0.7909, allocations: 8 kB / 1.024 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 8.964e-05/0.791, allocations: 51.45 kB / 1.024 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002775/0.7913, allocations: 83.66 kB / 1.024 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009119/0.7923, allocations: 319.5 kB / 1.024 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000549/0.7928, allocations: 437.2 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003753/0.7932, allocations: 248.7 kB / 1.025 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001912/0.7934, allocations: 199.2 kB / 1.025 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002307/0.7936, allocations: 218.8 kB / 1.026 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.387e-05/0.7937, allocations: 24 kB / 1.026 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.377e-05/0.7938, allocations: 35.98 kB / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.61e-05/0.7939, allocations: 83.61 kB / 1.026 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.794, allocations: 121.3 kB / 1.026 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005761/0.7946, allocations: 0.6642 MB / 1.026 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.7946, allocations: 4 kB / 1.026 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of FrontEnd: time 4.488e-06/0.7946, allocations: 0 / 1.026 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.526e-06/0.7946, allocations: 3.938 kB / 1.026 GB, free: 11.34 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.001555/0.7962, allocations: 0.8739 MB / 1.027 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.5e-05/0.7962, allocations: 15.98 kB / 1.027 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001569/0.7964, allocations: 67.25 kB / 1.027 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000624/0.797, allocations: 404.8 kB / 1.028 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.088e-05/0.7971, allocations: 45.31 kB / 1.028 GB, free: 9.836 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/0.7972, allocations: 63.98 kB / 1.028 GB, free: 9.773 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009488/0.7982, allocations: 0.5269 MB / 1.028 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.7982, allocations: 0 / 1.028 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.684e-05/0.7983, allocations: 20 kB / 1.028 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.03e-05/0.7983, allocations: 16 kB / 1.028 GB, free: 9.195 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007337/0.799, allocations: 381.1 kB / 1.029 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00247/0.8015, allocations: 1.693 MB / 1.03 GB, free: 7.07 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.8025, allocations: 0.9101 MB / 1.031 GB, free: 6.035 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.606e-05/0.8026, allocations: 4.438 kB / 1.031 GB, free: 6.031 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004962/0.8031, allocations: 277.3 kB / 1.032 GB, free: 5.746 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=53): time 2.335e-06/0.8031, allocations: 0 / 1.032 GB, free: 5.746 MB / 0.7794 GB Notification: Performance of matching and sorting (n=53): time 0.001175/0.8043, allocations: 0.6039 MB / 1.032 GB, free: 5.137 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/0.8044, allocations: 107.2 kB / 1.032 GB, free: 5.008 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004613/0.8049, allocations: 405.5 kB / 1.033 GB, free: 4.605 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.809e-05/0.8049, allocations: 45.64 kB / 1.033 GB, free: 4.555 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002078/0.8051, allocations: 261 kB / 1.033 GB, free: 4.293 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.8053, allocations: 177.5 kB / 1.033 GB, free: 4.117 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.026e-05/0.8054, allocations: 12 kB / 1.033 GB, free: 4.105 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002065/0.8056, allocations: 362.7 kB / 1.033 GB, free: 3.742 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004504/0.806, allocations: 213 kB / 1.034 GB, free: 3.531 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000523/0.8066, allocations: 315.3 kB / 1.034 GB, free: 3.195 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004999/0.8071, allocations: 285.4 kB / 1.034 GB, free: 2.902 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.8071, allocations: 4 kB / 1.034 GB, free: 2.898 MB / 0.7794 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001236/0.8083, allocations: 0.6846 MB / 1.035 GB, free: 2.195 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003236/0.8087, allocations: 0.68 MB / 1.036 GB, free: 1.453 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.8087, allocations: 0 / 1.036 GB, free: 1.453 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.8087, allocations: 4 kB / 1.036 GB, free: 1.449 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004151/0.8091, allocations: 103.9 kB / 1.036 GB, free: 1.348 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.787e-05/0.8092, allocations: 11.92 kB / 1.036 GB, free: 1.336 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005741/0.8097, allocations: 135.4 kB / 1.036 GB, free: 1.203 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.417e-05/0.8098, allocations: 23.98 kB / 1.036 GB, free: 1.18 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.8098, allocations: 5.094 kB / 1.036 GB, free: 1.176 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009634/0.8108, allocations: 0.578 MB / 1.036 GB, free: 0.5898 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.126e-06/0.8108, allocations: 4 kB / 1.036 GB, free: 0.5859 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.132e-06/0.8108, allocations: 4 kB / 1.036 GB, free: 0.582 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00031/0.8111, allocations: 87.84 kB / 1.037 GB, free: 0.4961 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.8111, allocations: 4 kB / 1.037 GB, free: 0.4922 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005217/0.8117, allocations: 130.2 kB / 1.037 GB, free: 376 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.146e-05/0.8117, allocations: 20 kB / 1.037 GB, free: 356 kB / 0.7794 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,$whenCondition5,$PRE.booPul.y,booPul.y,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003052/0.812, allocations: 276.9 kB / 1.037 GB, free: 68 kB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.329e-05/0.8121, allocations: 51.33 kB / 1.037 GB, free: 16 kB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008554/0.813, allocations: 485.6 kB / 1.037 GB, free: 15.54 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.034e-06/0.813, allocations: 4 kB / 1.037 GB, free: 15.53 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.813, allocations: 4 kB / 1.037 GB, free: 15.53 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.813, allocations: 3.984 kB / 1.037 GB, free: 15.52 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001789/0.8148, allocations: 1.229 MB / 1.039 GB, free: 14.21 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/0.8148, allocations: 3.953 kB / 1.039 GB, free: 14.21 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003633/0.8152, allocations: 91.83 kB / 1.039 GB, free: 14.12 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.902e-06/0.8152, allocations: 4 kB / 1.039 GB, free: 14.12 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.103e-05/0.8152, allocations: 16.19 kB / 1.039 GB, free: 14.1 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.104e-06/0.8153, allocations: 11.92 kB / 1.039 GB, free: 14.09 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.8153, allocations: 4 kB / 1.039 GB, free: 14.09 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.8165, allocations: 0.8676 MB / 1.04 GB, free: 13.15 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/0.8166, allocations: 140.4 kB / 1.04 GB, free: 12.99 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.884e-05/0.8167, allocations: 20 kB / 1.04 GB, free: 12.97 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002315/0.8169, allocations: 23.98 kB / 1.04 GB, free: 12.95 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.127e-05/0.817, allocations: 32.39 kB / 1.04 GB, free: 12.92 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.81e-05/0.817, allocations: 19.98 kB / 1.04 GB, free: 12.9 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003028/0.8173, allocations: 283.2 kB / 1.04 GB, free: 12.62 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8173, allocations: 4 kB / 1.04 GB, free: 12.62 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0007095/0.818, allocations: 231.1 kB / 1.04 GB, free: 12.39 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 (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.000302/0.8183, allocations: 131 kB / 1.04 GB, free: 12.26 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001611/0.82, allocations: 1.021 MB / 1.041 GB, free: 11.19 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.82, allocations: 0 / 1.041 GB, free: 11.19 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003646/0.8204, allocations: 223.4 kB / 1.042 GB, free: 10.97 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005555/0.8209, allocations: 93.39 kB / 1.042 GB, free: 10.88 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001806/0.8227, allocations: 1.168 MB / 1.043 GB, free: 9.672 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004214/0.8232, allocations: 0.8751 MB / 1.044 GB, free: 8.77 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002189/0.8234, allocations: 60.33 kB / 1.044 GB, free: 8.707 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.8235, allocations: 43.42 kB / 1.044 GB, free: 8.664 MB / 0.795 GB Notification: Performance of SimCode: time 9.22e-07/0.8235, allocations: 0 / 1.044 GB, free: 8.664 MB / 0.795 GB Notification: Performance of Templates: time 0.01273/0.8363, allocations: 6.75 MB / 1.05 GB, free: 1.984 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithResetScale.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches