Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.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.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009964/0.0009965, allocations: 91.92 kB / 16.02 MB, free: 80 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.001186/0.001186, allocations: 178.6 kB / 16.92 MB, free: 6.652 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.439/1.439, allocations: 223.3 MB / 241 MB, free: 5.285 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.669/2.669, allocations: 437.8 MB / 0.7128 GB, free: 6.887 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005295/0.0005296, allocations: 19.98 kB / 0.8735 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7241/0.7246, allocations: 153.8 MB / 1.024 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.002338/0.727, allocations: 1.708 MB / 1.025 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002478/0.7295, allocations: 1.58 MB / 1.027 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003386/0.7299, allocations: 11.94 kB / 1.027 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002275/0.7301, allocations: 59.44 kB / 1.027 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002807/0.7304, allocations: 59.56 kB / 1.027 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007768/0.7312, allocations: 284 kB / 1.027 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007267/0.7319, allocations: 0.6139 MB / 1.028 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005934/0.7325, allocations: 309.3 kB / 1.028 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002928/0.7328, allocations: 179 kB / 1.028 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002818/0.7331, allocations: 202.7 kB / 1.029 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.799e-05/0.7332, allocations: 16 kB / 1.029 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001137/0.7333, allocations: 35.98 kB / 1.029 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.09e-05/0.7334, allocations: 83.48 kB / 1.029 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000258/0.7337, allocations: 252.1 kB / 1.029 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006434/0.7343, allocations: 0.6059 MB / 1.03 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.7343, allocations: 0 / 1.03 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.064e-06/0.7344, allocations: 0 / 1.03 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.865e-05/0.7344, allocations: 7.938 kB / 1.03 GB, free: 9.945 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.001477/0.7359, allocations: 0.8113 MB / 1.03 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.7359, allocations: 8.031 kB / 1.03 GB, free: 9.07 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.7361, allocations: 72.19 kB / 1.03 GB, free: 9 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005158/0.7366, allocations: 400.6 kB / 1.031 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.876e-05/0.7366, allocations: 49.31 kB / 1.031 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.533e-05/0.7367, allocations: 60.27 kB / 1.031 GB, free: 8.465 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009019/0.7377, allocations: 0.4956 MB / 1.031 GB, free: 7.949 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.7377, allocations: 192 / 1.031 GB, free: 7.949 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.538e-05/0.7377, allocations: 27.94 kB / 1.031 GB, free: 7.922 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.7377, allocations: 12 kB / 1.031 GB, free: 7.91 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007584/0.7385, allocations: 363.8 kB / 1.032 GB, free: 7.559 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002438/0.741, allocations: 1.582 MB / 1.033 GB, free: 5.914 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009966/0.742, allocations: 0.8942 MB / 1.034 GB, free: 4.902 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004361/0.7424, allocations: 239.4 kB / 1.034 GB, free: 4.668 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.412e-05/0.7425, allocations: 4 kB / 1.034 GB, free: 4.664 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004966/0.743, allocations: 256.8 kB / 1.035 GB, free: 4.402 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=47): time 2.285e-06/0.743, allocations: 0 / 1.035 GB, free: 4.402 MB / 0.7794 GB Notification: Performance of matching and sorting (n=47): time 0.001089/0.7441, allocations: 0.5532 MB / 1.035 GB, free: 3.844 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.983e-05/0.7442, allocations: 107.2 kB / 1.035 GB, free: 3.715 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004436/0.7446, allocations: 389.6 kB / 1.036 GB, free: 3.328 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.649e-05/0.7447, allocations: 37.7 kB / 1.036 GB, free: 3.285 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001936/0.7449, allocations: 249 kB / 1.036 GB, free: 3.039 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/0.745, allocations: 161.6 kB / 1.036 GB, free: 2.879 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.548e-05/0.7451, allocations: 49.69 kB / 1.036 GB, free: 2.824 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.7453, allocations: 358.8 kB / 1.036 GB, free: 2.465 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000443/0.7457, allocations: 185 kB / 1.037 GB, free: 2.285 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000502/0.7462, allocations: 288.2 kB / 1.037 GB, free: 1.969 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00083/0.7471, allocations: 451.4 kB / 1.037 GB, free: 1.496 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.7471, allocations: 0 / 1.037 GB, free: 1.496 MB / 0.7794 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00116/0.7482, allocations: 0.5869 MB / 1.038 GB, free: 0.8945 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001232/0.7484, allocations: 174.6 kB / 1.038 GB, free: 0.6914 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.7484, allocations: 4 kB / 1.038 GB, free: 0.6875 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.7484, allocations: 4 kB / 1.038 GB, free: 0.6836 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004197/0.7488, allocations: 107.8 kB / 1.038 GB, free: 0.5781 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.7489, allocations: 4 kB / 1.038 GB, free: 0.5742 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004591/0.7493, allocations: 106 kB / 1.038 GB, free: 484 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.401e-05/0.7494, allocations: 24 kB / 1.038 GB, free: 460 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.163e-06/0.7494, allocations: 4 kB / 1.038 GB, free: 456 kB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008186/0.7502, allocations: 475.9 kB / 1.039 GB, free: 15.97 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.7502, allocations: 8.141 kB / 1.039 GB, free: 15.96 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.163e-06/0.7503, allocations: 8 kB / 1.039 GB, free: 15.96 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003516/0.7506, allocations: 91.78 kB / 1.039 GB, free: 15.87 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.236e-06/0.7506, allocations: 7.938 kB / 1.039 GB, free: 15.86 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004071/0.751, allocations: 87.55 kB / 1.039 GB, free: 15.77 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.623e-05/0.7511, allocations: 19.98 kB / 1.039 GB, free: 15.75 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition1,$whenCondition2,pulse.booPul.y,$PRE.pulse.booPul.y,pidNoSca.con1.y,pidSca.con1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 1 * 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.000265/0.7514, allocations: 253.6 kB / 1.039 GB, free: 15.5 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.709e-05/0.7514, allocations: 47.44 kB / 1.039 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008299/0.7523, allocations: 453.2 kB / 1.04 GB, free: 15 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.705e-06/0.7523, allocations: 4 kB / 1.04 GB, free: 15 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.7523, allocations: 4 kB / 1.04 GB, free: 14.99 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.7523, allocations: 3.984 kB / 1.04 GB, free: 14.99 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00169/0.754, allocations: 1.155 MB / 1.041 GB, free: 13.75 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.754, allocations: 0 / 1.041 GB, free: 13.75 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003741/0.7544, allocations: 88.02 kB / 1.041 GB, free: 13.66 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.777e-06/0.7544, allocations: 4 kB / 1.041 GB, free: 13.66 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.158e-05/0.7545, allocations: 16 kB / 1.041 GB, free: 13.64 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.7545, allocations: 0 / 1.041 GB, free: 13.64 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.7545, allocations: 4 kB / 1.041 GB, free: 13.64 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001142/0.7556, allocations: 0.752 MB / 1.042 GB, free: 12.85 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 9.655e-05/0.7557, allocations: 128.5 kB / 1.042 GB, free: 12.71 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.69e-05/0.7558, allocations: 12.05 kB / 1.042 GB, free: 12.7 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000246/0.7561, allocations: 35.97 kB / 1.042 GB, free: 12.66 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.234e-05/0.7561, allocations: 39.67 kB / 1.042 GB, free: 12.62 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.519e-05/0.7562, allocations: 12 kB / 1.042 GB, free: 12.61 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003019/0.7565, allocations: 275.2 kB / 1.042 GB, free: 12.34 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7565, allocations: 0 / 1.042 GB, free: 12.34 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006725/0.7571, allocations: 199.2 kB / 1.042 GB, free: 12.15 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: 4 ($whenCondition3,$whenCondition1,$whenCondition2,pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001947/0.7574, allocations: 131.1 kB / 1.043 GB, free: 12.01 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00144/0.7588, allocations: 0.7918 MB / 1.043 GB, free: 11.2 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.7588, allocations: 0 / 1.043 GB, free: 11.2 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003693/0.7592, allocations: 212.7 kB / 1.043 GB, free: 10.99 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007048/0.7599, allocations: 89.44 kB / 1.044 GB, free: 10.9 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00159/0.7615, allocations: 1.201 MB / 1.045 GB, free: 9.645 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003712/0.7619, allocations: 0.8515 MB / 1.046 GB, free: 8.766 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.762, allocations: 39.44 kB / 1.046 GB, free: 8.727 MB / 0.795 GB Notification: Performance of SimCode: time 3.5e-07/0.762, allocations: 0 / 1.046 GB, free: 8.727 MB / 0.795 GB Notification: Performance of Templates: time 0.009239/0.7713, allocations: 5.843 MB / 1.051 GB, free: 2.898 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_PIDScale.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches