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.385/2.385, allocations: 387.1 MB / 399.7 MB, free: 9.508 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.00103/0.00103, allocations: 169 kB / 492.3 MB, free: 0.6094 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.503/1.503, allocations: 221.3 MB / 0.7871 GB, free: 12.91 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000882/0.0008821, allocations: 97.73 kB / 0.9267 GB, free: 13.99 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.999e-05/3.002e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2857, allocations: 142.3 MB / 1.212 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.111/1.396, allocations: 152.9 MB / 1.362 GB, free: 19.02 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/1.397, allocations: 71.34 kB / 1.362 GB, free: 19.02 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04213/1.439, allocations: 16.78 MB / 1.378 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.282e-06/1.439, allocations: 0 / 1.378 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.309e-05/1.439, allocations: 15.22 kB / 1.378 GB, free: 32.78 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.001502/1.44, allocations: 1.094 MB / 1.379 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/1.441, allocations: 7.688 kB / 1.379 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001723/1.441, allocations: 108.5 kB / 1.379 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00083/1.442, allocations: 0.5777 MB / 1.38 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.576e-05/1.442, allocations: 62.94 kB / 1.38 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/1.442, allocations: 90.3 kB / 1.38 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009263/1.443, allocations: 0.6342 MB / 1.381 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/1.443, allocations: 0 / 1.381 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.036e-05/1.443, allocations: 28.41 kB / 1.381 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/1.443, allocations: 14.75 kB / 1.381 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006128/1.443, allocations: 421.7 kB / 1.381 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002938/1.446, allocations: 2.248 MB / 1.383 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007084/1.447, allocations: 491.2 kB / 1.384 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003012/1.447, allocations: 254.9 kB / 1.384 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.907e-05/1.447, allocations: 8.094 kB / 1.384 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004388/1.448, allocations: 346.8 kB / 1.384 GB, free: 30 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=68): time 1.663e-06/1.448, allocations: 0 / 1.384 GB, free: 30 MB / 0.8386 GB Notification: Performance of matching and sorting (n=68): time 0.0007565/1.449, allocations: 0.5182 MB / 1.385 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/1.449, allocations: 118.8 kB / 1.385 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004759/1.449, allocations: 471 kB / 1.385 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.347e-05/1.449, allocations: 56.38 kB / 1.385 GB, free: 29.58 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.000215/1.45, allocations: 341.8 kB / 1.386 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/1.45, allocations: 211.1 kB / 1.386 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.856e-05/1.45, allocations: 21.2 kB / 1.386 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001813/1.45, allocations: 386.7 kB / 1.386 GB, free: 28.9 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004978/1.45, allocations: 302 kB / 1.387 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005311/1.451, allocations: 457.7 kB / 1.387 GB, free: 28.72 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004977/1.451, allocations: 460.2 kB / 1.388 GB, free: 28.51 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/1.451, allocations: 0 / 1.388 GB, free: 28.51 MB / 0.8386 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00137/1.453, allocations: 1.031 MB / 1.389 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.000475/1.453, allocations: 1.209 MB / 1.39 GB, free: 26.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/1.453, allocations: 0 / 1.39 GB, free: 26.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/1.453, allocations: 7.688 kB / 1.39 GB, free: 26.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004143/1.454, allocations: 116.2 kB / 1.39 GB, free: 26.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/1.454, allocations: 11.69 kB / 1.39 GB, free: 26.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/1.455, allocations: 271.1 kB / 1.39 GB, free: 26.79 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.672e-05/1.455, allocations: 45.31 kB / 1.39 GB, free: 26.78 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.02e-05/1.455, allocations: 3.844 kB / 1.39 GB, free: 26.78 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00132/1.456, allocations: 0.9938 MB / 1.391 GB, free: 26.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/1.456, allocations: 3.844 kB / 1.391 GB, free: 26.51 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.812e-06/1.456, allocations: 3.906 kB / 1.391 GB, free: 26.51 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003262/1.457, allocations: 103.7 kB / 1.391 GB, free: 26.49 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/1.457, allocations: 7.844 kB / 1.391 GB, free: 26.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/1.458, allocations: 247 kB / 1.392 GB, free: 26.41 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.381e-05/1.458, allocations: 45.53 kB / 1.392 GB, free: 26.4 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.0002417/1.458, allocations: 163.1 kB / 1.392 GB, free: 26.28 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.908e-05/1.458, allocations: 69.83 kB / 1.392 GB, free: 26.24 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008287/1.459, allocations: 0.5507 MB / 1.392 GB, free: 26.12 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/1.459, allocations: 7.875 kB / 1.392 GB, free: 26.12 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/1.459, allocations: 0 / 1.392 GB, free: 26.12 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.293e-06/1.459, allocations: 3.984 kB / 1.392 GB, free: 26.11 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001555/1.461, allocations: 1.389 MB / 1.394 GB, free: 25.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/1.461, allocations: 0 / 1.394 GB, free: 25.52 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003554/1.461, allocations: 95.48 kB / 1.394 GB, free: 25.5 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/1.461, allocations: 3.938 kB / 1.394 GB, free: 25.5 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.628e-05/1.461, allocations: 20.67 kB / 1.394 GB, free: 25.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/1.461, allocations: 0 / 1.394 GB, free: 25.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/1.461, allocations: 3.875 kB / 1.394 GB, free: 25.5 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/1.462, allocations: 0.9247 MB / 1.395 GB, free: 25.19 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/1.462, allocations: 154.4 kB / 1.395 GB, free: 25.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.937e-05/1.462, allocations: 13.47 kB / 1.395 GB, free: 25.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003189/1.463, allocations: 60.38 kB / 1.395 GB, free: 25.02 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/1.463, allocations: 58.94 kB / 1.395 GB, free: 25 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.37e-05/1.463, allocations: 25.98 kB / 1.395 GB, free: 25 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.000371/1.463, allocations: 361.3 kB / 1.395 GB, free: 24.89 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.463, allocations: 3.938 kB / 1.395 GB, free: 24.88 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0009261/1.464, allocations: 354 kB / 1.396 GB, free: 24.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.0002177/1.464, allocations: 140.5 kB / 1.396 GB, free: 24.72 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001959/1.466, allocations: 1.783 MB / 1.398 GB, free: 24 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/1.466, allocations: 0 / 1.398 GB, free: 24 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000335/1.467, allocations: 268 kB / 1.398 GB, free: 23.98 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007102/1.467, allocations: 140.3 kB / 1.398 GB, free: 23.95 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001461/1.469, allocations: 0.9232 MB / 1.399 GB, free: 23.53 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004674/1.469, allocations: 0.9456 MB / 1.4 GB, free: 22.71 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0004293/1.47, allocations: 106.9 kB / 1.4 GB, free: 22.66 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/1.47, allocations: 52.27 kB / 1.4 GB, free: 22.65 MB / 0.8386 GB Notification: Performance of SimCode: time 1.413e-06/1.47, allocations: 0 / 1.4 GB, free: 22.65 MB / 0.8386 GB Notification: Performance of Templates: time 0.02102/1.491, allocations: 12.95 MB / 1.413 GB, free: 10.96 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