Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001306/0.001307, allocations: 186.5 kB / 16.92 MB, free: 6.77 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.393/1.393, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.389/2.389, allocations: 390.9 MB / 0.667 GB, free: 2.359 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003876/0.0003878, allocations: 8 kB / 0.8166 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7343/0.7347, allocations: 142.4 MB / 0.9557 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale): time 0.002202/0.737, allocations: 1.79 MB / 0.9575 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002464/0.7394, allocations: 1.675 MB / 0.9591 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002753/0.7397, allocations: 7.156 kB / 0.9591 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002292/0.74, allocations: 68.72 kB / 0.9592 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001961/0.7402, allocations: 62.72 kB / 0.9592 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008512/0.741, allocations: 379.3 kB / 0.9596 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005467/0.7416, allocations: 0.7101 MB / 0.9603 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004973/0.7421, allocations: 358.8 kB / 0.9606 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002155/0.7423, allocations: 203.5 kB / 0.9608 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002106/0.7425, allocations: 234.8 kB / 0.9611 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.844e-05/0.7426, allocations: 23.38 kB / 0.9611 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001049/0.7427, allocations: 34.23 kB / 0.9611 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.705e-05/0.7428, allocations: 88.12 kB / 0.9612 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002008/0.743, allocations: 276.5 kB / 0.9615 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004965/0.7435, allocations: 0.6739 MB / 0.9621 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.7435, allocations: 1.062 kB / 0.9621 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.874e-06/0.7435, allocations: 0 / 0.9621 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.327e-06/0.7435, allocations: 4 kB / 0.9621 GB, free: 2.828 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.001403/0.7449, allocations: 0.8631 MB / 0.963 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.745, allocations: 9.812 kB / 0.963 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001544/0.7452, allocations: 79.23 kB / 0.963 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004633/0.7456, allocations: 413.9 kB / 0.9634 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.195e-05/0.7457, allocations: 47.75 kB / 0.9635 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.7458, allocations: 62.97 kB / 0.9635 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009069/0.7467, allocations: 0.5329 MB / 0.9641 GB, free: 1.309 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.7467, allocations: 192 / 0.9641 GB, free: 1.309 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.586e-05/0.7468, allocations: 33.12 kB / 0.9641 GB, free: 1.281 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.148e-05/0.7468, allocations: 13.28 kB / 0.9641 GB, free: 1.281 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007186/0.7475, allocations: 385.2 kB / 0.9645 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002391/0.7499, allocations: 1.689 MB / 0.9661 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.7511, allocations: 0.9115 MB / 0.967 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000438/0.7515, allocations: 258.3 kB / 0.9673 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.932e-05/0.7516, allocations: 5.562 kB / 0.9673 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005501/0.7521, allocations: 284.4 kB / 0.9675 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=53): time 2.345e-06/0.7522, allocations: 0 / 0.9675 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of matching and sorting (n=53): time 0.001361/0.7535, allocations: 0.6048 MB / 0.9681 GB, free: 14.4 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.737e-05/0.7536, allocations: 113.1 kB / 0.9682 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005458/0.7542, allocations: 401.8 kB / 0.9686 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0001065/0.7543, allocations: 39.61 kB / 0.9687 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002994/0.7546, allocations: 268.3 kB / 0.9689 GB, free: 13.75 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001667/0.7548, allocations: 169.1 kB / 0.9691 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001223/0.7549, allocations: 62.97 kB / 0.9691 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000208/0.7551, allocations: 364.6 kB / 0.9695 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000566/0.7557, allocations: 214.3 kB / 0.9697 GB, free: 13.1 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006444/0.7563, allocations: 316.7 kB / 0.97 GB, free: 12.89 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.7574, allocations: 0.4981 MB / 0.9705 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.7574, allocations: 1.156 kB / 0.9705 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001552/0.7589, allocations: 0.6907 MB / 0.9712 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001679/0.7591, allocations: 200.9 kB / 0.9713 GB, free: 11.97 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.7591, allocations: 1.469 kB / 0.9713 GB, free: 11.97 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.7592, allocations: 4.375 kB / 0.9713 GB, free: 11.97 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004253/0.7596, allocations: 107.4 kB / 0.9715 GB, free: 11.94 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.7596, allocations: 8.656 kB / 0.9715 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006779/0.7603, allocations: 140.5 kB / 0.9716 GB, free: 11.87 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-05/0.7604, allocations: 26.3 kB / 0.9716 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 7.805e-06/0.7604, allocations: 4 kB / 0.9716 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001114/0.7615, allocations: 0.5815 MB / 0.9722 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.7615, allocations: 2.031 kB / 0.9722 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.422e-06/0.7615, allocations: 11.78 kB / 0.9722 GB, free: 11.54 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003154/0.7619, allocations: 83.25 kB / 0.9723 GB, free: 11.53 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.7619, allocations: 3.25 kB / 0.9723 GB, free: 11.53 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005976/0.7625, allocations: 129.4 kB / 0.9724 GB, free: 11.47 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.668e-05/0.7625, allocations: 21.75 kB / 0.9724 GB, free: 11.46 MB / 0.7325 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.0003789/0.7629, allocations: 272.8 kB / 0.9727 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.702e-05/0.763, allocations: 50.22 kB / 0.9727 GB, free: 11.19 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009814/0.764, allocations: 491.5 kB / 0.9732 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.764, allocations: 4.938 kB / 0.9732 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.764, allocations: 0 / 0.9732 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.764, allocations: 5.234 kB / 0.9732 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001964/0.766, allocations: 1.232 MB / 0.9744 GB, free: 10.02 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.766, allocations: 5.266 kB / 0.9744 GB, free: 10.02 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003731/0.7664, allocations: 95.77 kB / 0.9745 GB, free: 9.988 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-06/0.7664, allocations: 4.031 kB / 0.9745 GB, free: 9.988 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.412e-05/0.7665, allocations: 17.78 kB / 0.9745 GB, free: 9.977 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.225e-06/0.7665, allocations: 7.609 kB / 0.9745 GB, free: 9.973 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.7665, allocations: 2.344 kB / 0.9745 GB, free: 9.973 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001286/0.7678, allocations: 0.8078 MB / 0.9753 GB, free: 9.477 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001225/0.7679, allocations: 135.8 kB / 0.9755 GB, free: 9.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.964e-05/0.768, allocations: 13.41 kB / 0.9755 GB, free: 9.332 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000244/0.7682, allocations: 29.33 kB / 0.9755 GB, free: 9.32 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.388e-05/0.7683, allocations: 35.98 kB / 0.9755 GB, free: 9.297 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.298e-05/0.7684, allocations: 22.17 kB / 0.9756 GB, free: 9.289 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003366/0.7687, allocations: 285.4 kB / 0.9758 GB, free: 9.113 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.91e-07/0.7687, allocations: 3.938 kB / 0.9758 GB, free: 9.109 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0008087/0.7695, allocations: 225.8 kB / 0.9761 GB, free: 9.047 MB / 0.7325 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.0002477/0.7698, allocations: 134.8 kB / 0.9762 GB, free: 8.93 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00177/0.7716, allocations: 1.029 MB / 0.9772 GB, free: 8.316 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.7716, allocations: 1.312 kB / 0.9772 GB, free: 8.316 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004189/0.772, allocations: 233.1 kB / 0.9774 GB, free: 8.223 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007872/0.7728, allocations: 109.5 kB / 0.9775 GB, free: 8.164 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001934/0.7747, allocations: 1.268 MB / 0.9788 GB, free: 7 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004799/0.7752, allocations: 0.8635 MB / 0.9796 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000147/0.7754, allocations: 39.44 kB / 0.9796 GB, free: 6.07 MB / 0.7325 GB Notification: Performance of SimCode: time 1.262e-06/0.7754, allocations: 0 / 0.9796 GB, free: 6.07 MB / 0.7325 GB Notification: Performance of Templates: time 0.01168/0.7871, allocations: 6.443 MB / 0.9859 GB, free: 15.65 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches