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.001292/0.001292, allocations: 91.06 kB / 15.06 MB, free: 1.098 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.001685/0.001685, allocations: 172.7 kB / 15.95 MB, free: 208 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.477/1.477, allocations: 223.3 MB / 240 MB, free: 5.434 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.818/2.818, allocations: 437.7 MB / 0.7117 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004831/0.0004832, allocations: 12 kB / 0.8722 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8303/0.8308, allocations: 153.8 MB / 1.022 GB, free: 44 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale): time 0.002791/0.8337, allocations: 1.663 MB / 1.024 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003195/0.8369, allocations: 1.635 MB / 1.026 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006462/0.8376, allocations: 8 kB / 1.026 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004023/0.838, allocations: 63.31 kB / 1.026 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003802/0.8384, allocations: 59.56 kB / 1.026 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001171/0.8396, allocations: 322.7 kB / 1.026 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007506/0.8404, allocations: 0.6608 MB / 1.027 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004661/0.8408, allocations: 256.7 kB / 1.027 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002415/0.8411, allocations: 203 kB / 1.027 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002631/0.8414, allocations: 218.7 kB / 1.027 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.765e-05/0.8414, allocations: 24 kB / 1.027 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000113/0.8416, allocations: 35.98 kB / 1.027 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.938e-05/0.8417, allocations: 87.55 kB / 1.028 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.8418, allocations: 113.4 kB / 1.028 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006151/0.8424, allocations: 0.672 MB / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.8424, allocations: 0 / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.907e-06/0.8424, allocations: 0 / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.977e-06/0.8424, allocations: 3.938 kB / 1.028 GB, free: 10.02 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.001453/0.8439, allocations: 0.87 MB / 1.029 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.8439, allocations: 8.562 kB / 1.029 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.8441, allocations: 75.23 kB / 1.029 GB, free: 9.004 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005881/0.8447, allocations: 408.8 kB / 1.03 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.661e-05/0.8448, allocations: 49.31 kB / 1.03 GB, free: 8.52 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.616e-05/0.8449, allocations: 60 kB / 1.03 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009971/0.8459, allocations: 0.5269 MB / 1.03 GB, free: 7.918 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.8459, allocations: 3.984 kB / 1.03 GB, free: 7.914 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.217e-05/0.846, allocations: 31.98 kB / 1.03 GB, free: 7.883 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/0.846, allocations: 12 kB / 1.03 GB, free: 7.871 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000741/0.8468, allocations: 381 kB / 1.031 GB, free: 7.5 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002661/0.8494, allocations: 1.693 MB / 1.032 GB, free: 5.742 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001032/0.8505, allocations: 0.9024 MB / 1.033 GB, free: 4.719 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004023/0.8509, allocations: 247.9 kB / 1.033 GB, free: 4.473 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.785e-05/0.8509, allocations: 4.438 kB / 1.033 GB, free: 4.469 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005735/0.8515, allocations: 285.3 kB / 1.034 GB, free: 4.176 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=53): time 2.585e-06/0.8515, allocations: 0 / 1.034 GB, free: 4.176 MB / 0.7794 GB Notification: Performance of matching and sorting (n=53): time 0.001193/0.8527, allocations: 0.6078 MB / 1.034 GB, free: 3.562 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.971e-05/0.8528, allocations: 115.2 kB / 1.034 GB, free: 3.426 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004837/0.8533, allocations: 405.5 kB / 1.035 GB, free: 3.023 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.321e-05/0.8534, allocations: 37.7 kB / 1.035 GB, free: 2.98 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002243/0.8536, allocations: 261 kB / 1.035 GB, free: 2.719 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.8538, allocations: 169.5 kB / 1.035 GB, free: 2.551 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.645e-05/0.8538, allocations: 19.88 kB / 1.035 GB, free: 2.531 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001636/0.854, allocations: 358.8 kB / 1.036 GB, free: 2.172 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004574/0.8544, allocations: 217 kB / 1.036 GB, free: 1.961 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005119/0.855, allocations: 311.4 kB / 1.036 GB, free: 1.625 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005043/0.8555, allocations: 289.4 kB / 1.036 GB, free: 1.332 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.8555, allocations: 0 / 1.036 GB, free: 1.332 MB / 0.7794 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001253/0.8568, allocations: 0.6768 MB / 1.037 GB, free: 0.6328 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001628/0.8569, allocations: 210.2 kB / 1.037 GB, free: 404 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.8569, allocations: 4 kB / 1.037 GB, free: 400 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.857, allocations: 4 kB / 1.037 GB, free: 396 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004109/0.8574, allocations: 99.83 kB / 1.037 GB, free: 296 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.8574, allocations: 4 kB / 1.037 GB, free: 292 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005232/0.8579, allocations: 139.4 kB / 1.037 GB, free: 152 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-05/0.858, allocations: 27.98 kB / 1.037 GB, free: 124 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 8.285e-06/0.858, allocations: 4 kB / 1.037 GB, free: 120 kB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009832/0.859, allocations: 0.5818 MB / 1.038 GB, free: 15.52 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.616e-06/0.859, allocations: 4.156 kB / 1.038 GB, free: 15.52 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.294e-06/0.859, allocations: 4 kB / 1.038 GB, free: 15.51 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003191/0.8594, allocations: 87.89 kB / 1.038 GB, free: 15.43 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.8594, allocations: 7.938 kB / 1.038 GB, free: 15.42 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004817/0.8599, allocations: 123.4 kB / 1.038 GB, free: 15.3 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.521e-05/0.8599, allocations: 27.98 kB / 1.038 GB, free: 15.27 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,$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.0003291/0.8603, allocations: 264.9 kB / 1.039 GB, free: 15 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.563e-05/0.8603, allocations: 51.44 kB / 1.039 GB, free: 14.95 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009049/0.8612, allocations: 485.5 kB / 1.039 GB, free: 14.47 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-05/0.8613, allocations: 8 kB / 1.039 GB, free: 14.46 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.8613, allocations: 4 kB / 1.039 GB, free: 14.46 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.435e-06/0.8613, allocations: 3.984 kB / 1.039 GB, free: 14.45 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001827/0.8631, allocations: 1.233 MB / 1.04 GB, free: 13.14 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.8632, allocations: 3.953 kB / 1.04 GB, free: 13.14 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003685/0.8635, allocations: 91.89 kB / 1.04 GB, free: 13.05 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.456e-06/0.8635, allocations: 4 kB / 1.04 GB, free: 13.05 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.352e-05/0.8636, allocations: 12 kB / 1.04 GB, free: 13.04 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.062e-06/0.8636, allocations: 7.938 kB / 1.04 GB, free: 13.03 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.8636, allocations: 192 / 1.04 GB, free: 13.03 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001167/0.8648, allocations: 0.8107 MB / 1.041 GB, free: 12.18 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001038/0.8649, allocations: 136.4 kB / 1.041 GB, free: 12.03 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.916e-05/0.865, allocations: 15.98 kB / 1.041 GB, free: 12.01 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002183/0.8652, allocations: 27.98 kB / 1.041 GB, free: 11.98 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.834e-05/0.8653, allocations: 36.33 kB / 1.041 GB, free: 11.95 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.991e-05/0.8653, allocations: 23.98 kB / 1.041 GB, free: 11.93 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003236/0.8656, allocations: 283.2 kB / 1.042 GB, free: 11.65 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8657, allocations: 3.938 kB / 1.042 GB, free: 11.64 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.00072/0.8664, allocations: 227.2 kB / 1.042 GB, free: 11.42 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.0002199/0.8666, allocations: 135.1 kB / 1.042 GB, free: 11.28 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001661/0.8683, allocations: 1.013 MB / 1.043 GB, free: 10.22 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.8683, allocations: 0 / 1.043 GB, free: 10.22 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003634/0.8687, allocations: 230.3 kB / 1.043 GB, free: 9.996 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000637/0.8693, allocations: 98.95 kB / 1.043 GB, free: 9.902 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001713/0.871, allocations: 1.172 MB / 1.044 GB, free: 8.688 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005004/0.8715, allocations: 0.8635 MB / 1.045 GB, free: 7.797 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002376/0.8718, allocations: 56.47 kB / 1.045 GB, free: 7.738 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.8719, allocations: 43.42 kB / 1.045 GB, free: 7.695 MB / 0.795 GB Notification: Performance of SimCode: time 2.9e-07/0.8719, allocations: 3.938 kB / 1.045 GB, free: 7.691 MB / 0.795 GB Notification: Performance of Templates: time 0.01287/0.8848, allocations: 6.765 MB / 1.052 GB, free: 1 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/jenkins/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