Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID.k|PIDWitInpGai.k|PID.Ti|PIDWitInpGai.Ti|PID.Td|PIDWitInpGai.Td|PID.y|PIDWitInpGai.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains") translateModel(Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID.k|PIDWitInpGai.k|PID.Ti|PIDWitInpGai.Ti|PID.Td|PIDWitInpGai.Td|PID.y|PIDWitInpGai.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.315/2.315, allocations: 387.4 MB / 394.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009908/0.0009908, allocations: 192.8 kB / 487.4 MB, free: 5.039 MB / 394.7 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: 221.5 MB / 0.7824 GB, free: 0.9844 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009775/0.0009773, allocations: 99.83 kB / 0.9219 GB, free: 2.223 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.184e-05/2.186e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3049/0.305, allocations: 142.4 MB / 1.206 GB, free: 43.98 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.101/1.406, allocations: 152.2 MB / 1.355 GB, free: 18.26 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002651/1.407, allocations: 68.48 kB / 1.355 GB, free: 18.26 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04243/1.449, allocations: 16.68 MB / 1.371 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.673e-06/1.449, allocations: 0 / 1.371 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.538e-05/1.449, allocations: 15.66 kB / 1.371 GB, free: 32.97 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.001675/1.451, allocations: 1.091 MB / 1.372 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/1.451, allocations: 11.22 kB / 1.372 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002083/1.451, allocations: 106.9 kB / 1.372 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008877/1.452, allocations: 0.5789 MB / 1.373 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.476e-05/1.452, allocations: 27.22 kB / 1.373 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/1.452, allocations: 57.5 kB / 1.373 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006525/1.453, allocations: 387.7 kB / 1.373 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000826/1.454, allocations: 0.5281 MB / 1.374 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/1.454, allocations: 3.984 kB / 1.374 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.626e-05/1.454, allocations: 10.95 kB / 1.374 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/1.454, allocations: 15.44 kB / 1.374 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002927/1.457, allocations: 2.113 MB / 1.376 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006846/1.458, allocations: 458.8 kB / 1.376 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000385/1.458, allocations: 242.9 kB / 1.376 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 5.701e-05/1.458, allocations: 8.219 kB / 1.376 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005968/1.459, allocations: 319 kB / 1.377 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=68): time 2.585e-06/1.459, allocations: 0 / 1.377 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of matching and sorting (n=68): time 0.001037/1.46, allocations: 489.6 kB / 1.377 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.507e-05/1.46, allocations: 114.8 kB / 1.377 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004026/1.46, allocations: 407.7 kB / 1.378 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.474e-05/1.46, allocations: 44.69 kB / 1.378 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002537/1.461, allocations: 341.5 kB / 1.378 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/1.461, allocations: 192.7 kB / 1.378 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.119e-05/1.461, allocations: 11.56 kB / 1.378 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001933/1.461, allocations: 370.5 kB / 1.379 GB, free: 29.4 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004669/1.461, allocations: 292.3 kB / 1.379 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007435/1.462, allocations: 429.6 kB / 1.379 GB, free: 29.21 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001132/1.463, allocations: 332 kB / 1.38 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/1.463, allocations: 4 kB / 1.38 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00227/1.466, allocations: 0.859 MB / 1.381 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007383/1.466, allocations: 1.213 MB / 1.382 GB, free: 27.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/1.466, allocations: 0 / 1.382 GB, free: 27.69 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.073e-05/1.466, allocations: 7.75 kB / 1.382 GB, free: 27.69 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006352/1.467, allocations: 116.3 kB / 1.382 GB, free: 27.66 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/1.467, allocations: 3.906 kB / 1.382 GB, free: 27.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/1.469, allocations: 253.2 kB / 1.382 GB, free: 27.57 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001439/1.469, allocations: 53.97 kB / 1.382 GB, free: 27.56 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/1.469, allocations: 9.422 kB / 1.382 GB, free: 27.55 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002394/1.471, allocations: 0.7893 MB / 1.383 GB, free: 27.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/1.471, allocations: 8.203 kB / 1.383 GB, free: 27.44 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/1.471, allocations: 11.78 kB / 1.383 GB, free: 27.44 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000521/1.472, allocations: 96.66 kB / 1.383 GB, free: 27.42 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.413e-06/1.472, allocations: 3.812 kB / 1.383 GB, free: 27.42 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/1.473, allocations: 230.4 kB / 1.383 GB, free: 27.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001415/1.474, allocations: 48.47 kB / 1.383 GB, free: 27.33 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition11,$PRE.resSig.y,resSig.y,$whenCondition9,$whenCondition10,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y,$PRE.PIDWitInpGai.greThrkTd.greHys.y,PIDWitInpGai.greThrkTd.greHys.y,$PRE.k.booPul.y,k.booPul.y,$PRE.Ti.booPul.y,Ti.booPul.y,$PRE.Td.booPul.y,Td.booPul.y,$PRE.lesThr.lesHys.y,lesThr.lesHys.y,assMes.u,greThr.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 5 * 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.0003756/1.474, allocations: 137.8 kB / 1.383 GB, free: 27.21 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/1.474, allocations: 62.17 kB / 1.383 GB, free: 27.18 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001227/1.475, allocations: 0.4993 MB / 1.384 GB, free: 27.05 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/1.475, allocations: 7.719 kB / 1.384 GB, free: 27.05 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/1.475, allocations: 0 / 1.384 GB, free: 27.05 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/1.475, allocations: 3.984 kB / 1.384 GB, free: 27.05 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002288/1.478, allocations: 1.234 MB / 1.385 GB, free: 26.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/1.478, allocations: 3.844 kB / 1.385 GB, free: 26.51 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005494/1.478, allocations: 101.6 kB / 1.385 GB, free: 26.48 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.343e-06/1.478, allocations: 7.719 kB / 1.385 GB, free: 26.48 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.584e-05/1.478, allocations: 3.875 kB / 1.385 GB, free: 26.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/1.478, allocations: 7.953 kB / 1.385 GB, free: 26.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/1.478, allocations: 3.844 kB / 1.385 GB, free: 26.48 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009676/1.479, allocations: 0.8716 MB / 1.386 GB, free: 26.17 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/1.479, allocations: 138.5 kB / 1.386 GB, free: 26.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.163e-05/1.479, allocations: 10.66 kB / 1.386 GB, free: 26.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003185/1.48, allocations: 43.17 kB / 1.386 GB, free: 26.02 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/1.48, allocations: 60.05 kB / 1.386 GB, free: 25.99 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.585e-05/1.48, allocations: 21.44 kB / 1.386 GB, free: 25.99 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003156/1.48, allocations: 300.3 kB / 1.387 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.81e-07/1.48, allocations: 0 / 1.387 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001007/1.481, allocations: 324.7 kB / 1.387 GB, free: 25.82 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (PIDWitInpGai.I.y,PIDWitInpGai.D.x,PID.I.y,PID.D.x) * Number of discrete variables: 20 ($whenCondition11,$whenCondition9,$whenCondition10,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,PIDWitInpGai.greThrkTd.greHys.y,resSig.y,k.booPul.y,Ti.booPul.y,Td.booPul.y,lesThr.lesHys.y,assMes.u,greThr.y) * Number of discrete states: 2 (PIDWitInpGai.greThrkTd.greHys.y,lesThr.lesHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0002474/1.482, allocations: 138 kB / 1.387 GB, free: 25.71 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001696/1.483, allocations: 1.696 MB / 1.389 GB, free: 25.02 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/1.483, allocations: 1.25 kB / 1.389 GB, free: 25.02 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003078/1.484, allocations: 255.3 kB / 1.389 GB, free: 25 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007178/1.484, allocations: 129.1 kB / 1.389 GB, free: 24.95 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001399/1.486, allocations: 0.8857 MB / 1.39 GB, free: 24.54 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004862/1.486, allocations: 0.9406 MB / 1.391 GB, free: 23.73 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0004157/1.487, allocations: 107 kB / 1.391 GB, free: 23.67 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/1.487, allocations: 54.02 kB / 1.391 GB, free: 23.66 MB / 0.8386 GB Notification: Performance of SimCode: time 4.61e-07/1.487, allocations: 0 / 1.391 GB, free: 23.66 MB / 0.8386 GB Notification: Performance of Templates: time 0.02021/1.507, allocations: 11.67 MB / 1.402 GB, free: 17.89 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.makefile (rm -f Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.sim & ./Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains.csv","../files/Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches