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: 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_10_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_10_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.007324/0.007324, allocations: 100.4 kB / 15.87 MB, free: 6.328 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.001839/0.001839, allocations: 194 kB / 16.79 MB, free: 6.254 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.4/1.4, allocations: 222.9 MB / 240.5 MB, free: 4.438 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.607/2.607, allocations: 437 MB / 0.7106 GB, free: 5.184 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001689/0.001689, allocations: 67.89 kB / 0.8692 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7755/0.7772, allocations: 151.6 MB / 1.017 GB, free: 2.703 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale): time 0.003564/0.7808, allocations: 2.207 MB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.003095/0.784, allocations: 1.689 MB / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00027/0.7843, allocations: 8 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002943/0.7846, allocations: 63.38 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001954/0.7848, allocations: 55.58 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000928/0.7857, allocations: 383.1 kB / 1.022 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000603/0.7864, allocations: 0.7036 MB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005276/0.7869, allocations: 365.7 kB / 1.023 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000271/0.7872, allocations: 250.9 kB / 1.023 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002752/0.7875, allocations: 282.5 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.407e-05/0.7875, allocations: 44 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001333/0.7877, allocations: 59.97 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.7878, allocations: 119.5 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002627/0.7881, allocations: 290.3 kB / 1.024 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005822/0.7887, allocations: 0.6878 MB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.7887, allocations: 0 / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.132e-06/0.7887, allocations: 0 / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.204e-05/0.7887, allocations: 4 kB / 1.024 GB, free: 11.5 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.001678/0.7904, allocations: 0.9792 MB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.7904, allocations: 12.03 kB / 1.025 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001365/0.7906, allocations: 72.09 kB / 1.025 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005071/0.7911, allocations: 414 kB / 1.026 GB, free: 9.926 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.362e-05/0.7911, allocations: 53.69 kB / 1.026 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001071/0.7913, allocations: 60.38 kB / 1.026 GB, free: 9.816 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008871/0.7921, allocations: 0.5236 MB / 1.026 GB, free: 9.277 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.7922, allocations: 192 / 1.026 GB, free: 9.277 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.069e-05/0.7922, allocations: 31.92 kB / 1.026 GB, free: 9.246 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.7922, allocations: 12 kB / 1.026 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007298/0.793, allocations: 376.9 kB / 1.027 GB, free: 8.867 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002532/0.7955, allocations: 1.673 MB / 1.028 GB, free: 7.133 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009859/0.7965, allocations: 0.885 MB / 1.029 GB, free: 6.133 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003996/0.7969, allocations: 249.9 kB / 1.029 GB, free: 5.891 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.039e-05/0.797, allocations: 8.438 kB / 1.029 GB, free: 5.883 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004908/0.7975, allocations: 273.2 kB / 1.03 GB, free: 5.605 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=53): time 3.848e-06/0.7975, allocations: 3.984 kB / 1.03 GB, free: 5.602 MB / 0.7794 GB Notification: Performance of matching and sorting (n=53): time 0.001146/0.7986, allocations: 0.5805 MB / 1.03 GB, free: 5.012 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.706e-05/0.7987, allocations: 111.2 kB / 1.03 GB, free: 4.879 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004408/0.7992, allocations: 401.6 kB / 1.031 GB, free: 4.477 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.708e-05/0.7992, allocations: 45.7 kB / 1.031 GB, free: 4.426 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001976/0.7994, allocations: 261 kB / 1.031 GB, free: 4.168 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.7996, allocations: 173.5 kB / 1.031 GB, free: 3.996 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000185/0.7998, allocations: 114.2 kB / 1.031 GB, free: 3.879 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001657/0.8, allocations: 362.7 kB / 1.032 GB, free: 3.516 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004878/0.8004, allocations: 218.9 kB / 1.032 GB, free: 3.297 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005057/0.801, allocations: 307.4 kB / 1.032 GB, free: 2.965 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000801/0.8018, allocations: 495.5 kB / 1.033 GB, free: 2.449 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.8018, allocations: 0 / 1.033 GB, free: 2.449 MB / 0.7794 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001245/0.803, allocations: 0.6727 MB / 1.033 GB, free: 1.754 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.91e-05/0.8031, allocations: 71.56 kB / 1.033 GB, free: 1.672 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.8031, allocations: 7.984 kB / 1.033 GB, free: 1.664 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.8031, allocations: 4 kB / 1.033 GB, free: 1.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003995/0.8035, allocations: 91.83 kB / 1.034 GB, free: 1.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.8036, allocations: 4 kB / 1.034 GB, free: 1.566 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005397/0.8041, allocations: 115.4 kB / 1.034 GB, free: 1.453 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.267e-05/0.8042, allocations: 23.98 kB / 1.034 GB, free: 1.43 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000515/0.8047, allocations: 321.1 kB / 1.034 GB, free: 1.113 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004365/0.8051, allocations: 279.4 kB / 1.034 GB, free: 0.8047 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006222/0.8058, allocations: 463.4 kB / 1.035 GB, free: 332 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.883e-06/0.8058, allocations: 0 / 1.035 GB, free: 332 kB / 0.7794 GB Notification: Performance of matching and sorting (n=65) (initialization_lambda0): time 0.001077/0.8069, allocations: 0.6221 MB / 1.035 GB, free: 15.68 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.562e-05/0.8069, allocations: 67.39 kB / 1.035 GB, free: 15.6 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.765e-06/0.8069, allocations: 4 kB / 1.035 GB, free: 15.59 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.931e-06/0.807, allocations: 4 kB / 1.035 GB, free: 15.59 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003229/0.8073, allocations: 87.84 kB / 1.035 GB, free: 15.5 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.8073, allocations: 4 kB / 1.035 GB, free: 15.5 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005026/0.8078, allocations: 103.7 kB / 1.036 GB, free: 15.4 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.767e-05/0.8079, allocations: 27.98 kB / 1.036 GB, free: 15.37 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.0001962/0.8081, allocations: 218.3 kB / 1.036 GB, free: 15.15 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.651e-05/0.8081, allocations: 47.44 kB / 1.036 GB, free: 15.11 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008407/0.809, allocations: 469.6 kB / 1.036 GB, free: 14.64 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.779e-06/0.809, allocations: 11.94 kB / 1.036 GB, free: 14.62 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.809, allocations: 3.938 kB / 1.036 GB, free: 14.62 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/0.809, allocations: 3.984 kB / 1.036 GB, free: 14.62 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001752/0.8108, allocations: 1.225 MB / 1.037 GB, free: 13.32 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.279e-06/0.8108, allocations: 4 kB / 1.037 GB, free: 13.32 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003633/0.8112, allocations: 92.02 kB / 1.038 GB, free: 13.23 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.8112, allocations: 4 kB / 1.038 GB, free: 13.23 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.015e-05/0.8112, allocations: 11.98 kB / 1.038 GB, free: 13.21 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.8112, allocations: 4 kB / 1.038 GB, free: 13.21 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.8112, allocations: 4 kB / 1.038 GB, free: 13.21 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/0.8124, allocations: 0.7795 MB / 1.038 GB, free: 12.39 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.8125, allocations: 140.4 kB / 1.038 GB, free: 12.23 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.788e-05/0.8126, allocations: 12 kB / 1.038 GB, free: 12.22 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/0.8128, allocations: 27.97 kB / 1.039 GB, free: 12.2 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.803e-05/0.8129, allocations: 28.41 kB / 1.039 GB, free: 12.17 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-05/0.813, allocations: 23.98 kB / 1.039 GB, free: 12.14 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003088/0.8133, allocations: 283.2 kB / 1.039 GB, free: 11.87 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8133, allocations: 0 / 1.039 GB, free: 11.87 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006641/0.8139, allocations: 231.2 kB / 1.039 GB, free: 11.64 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.0002353/0.8142, allocations: 131.1 kB / 1.039 GB, free: 11.51 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001579/0.8158, allocations: 1.005 MB / 1.04 GB, free: 10.45 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/0.8158, allocations: 8.125 kB / 1.04 GB, free: 10.45 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003702/0.8162, allocations: 222.3 kB / 1.04 GB, free: 10.23 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006656/0.8168, allocations: 103.4 kB / 1.04 GB, free: 10.13 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001698/0.8185, allocations: 1.237 MB / 1.042 GB, free: 8.84 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004219/0.819, allocations: 0.8596 MB / 1.043 GB, free: 7.949 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001363/0.8191, allocations: 47.42 kB / 1.043 GB, free: 7.902 MB / 0.795 GB Notification: Performance of SimCode: time 2.4e-07/0.8191, allocations: 0 / 1.043 GB, free: 7.902 MB / 0.795 GB Notification: Performance of Templates: time 0.009483/0.8286, allocations: 6.52 MB / 1.049 GB, free: 1.406 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.makefile (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 & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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