Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.237/2.237, allocations: 390.5 MB / 398 MB, free: 10.93 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.001081/0.001081, allocations: 184.8 kB / 491.2 MB, free: 1.555 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.494/1.494, allocations: 221.5 MB / 0.7868 GB, free: 13.34 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.00109/0.001091, allocations: 86.72 kB / 0.9269 GB, free: 13.85 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.137e-05/2.214e-05, allocations: 7.562 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3209, allocations: 143 MB / 1.212 GB, free: 39.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.115/1.436, allocations: 153 MB / 1.362 GB, free: 17.59 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/1.436, allocations: 65.72 kB / 1.362 GB, free: 17.59 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04203/1.478, allocations: 16.68 MB / 1.378 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of FrontEnd: time 4.278e-06/1.478, allocations: 0 / 1.378 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.204e-05/1.478, allocations: 19.38 kB / 1.378 GB, free: 31.68 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.002542/1.481, allocations: 1.095 MB / 1.379 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/1.481, allocations: 11.48 kB / 1.379 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005547/1.481, allocations: 108.6 kB / 1.379 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001355/1.483, allocations: 0.5723 MB / 1.38 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.763e-05/1.483, allocations: 23.22 kB / 1.38 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002801/1.483, allocations: 61.03 kB / 1.38 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008787/1.484, allocations: 388 kB / 1.38 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009971/1.485, allocations: 0.5344 MB / 1.381 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.985e-05/1.485, allocations: 0 / 1.381 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.252e-05/1.485, allocations: 7.859 kB / 1.381 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.947e-05/1.485, allocations: 19.45 kB / 1.381 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00377/1.489, allocations: 2.097 MB / 1.383 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007408/1.49, allocations: 463.4 kB / 1.383 GB, free: 29.13 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003166/1.49, allocations: 241.4 kB / 1.384 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.965e-05/1.49, allocations: 8.25 kB / 1.384 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004789/1.49, allocations: 323.4 kB / 1.384 GB, free: 28.99 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=68): time 2.464e-06/1.49, allocations: 3.938 kB / 1.384 GB, free: 28.98 MB / 0.8386 GB Notification: Performance of matching and sorting (n=68): time 0.0008692/1.491, allocations: 491.7 kB / 1.384 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/1.491, allocations: 117.5 kB / 1.384 GB, free: 28.74 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005054/1.492, allocations: 405.4 kB / 1.385 GB, free: 28.59 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 0.00013/1.492, allocations: 45.19 kB / 1.385 GB, free: 28.56 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003171/1.492, allocations: 342.5 kB / 1.385 GB, free: 28.36 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/1.492, allocations: 196.4 kB / 1.385 GB, free: 28.22 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.889e-05/1.493, allocations: 11.59 kB / 1.385 GB, free: 28.22 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001609/1.493, allocations: 374.5 kB / 1.386 GB, free: 27.88 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004852/1.493, allocations: 282.3 kB / 1.386 GB, free: 27.87 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005131/1.494, allocations: 425.6 kB / 1.386 GB, free: 27.7 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008802/1.495, allocations: 336.8 kB / 1.387 GB, free: 27.64 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/1.495, allocations: 3.938 kB / 1.387 GB, free: 27.64 MB / 0.8386 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001726/1.496, allocations: 0.8626 MB / 1.388 GB, free: 27.45 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004418/1.497, allocations: 1.204 MB / 1.389 GB, free: 26.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/1.497, allocations: 3.969 kB / 1.389 GB, free: 26.18 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.938e-05/1.497, allocations: 11.75 kB / 1.389 GB, free: 26.18 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004258/1.497, allocations: 102.9 kB / 1.389 GB, free: 26.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.344e-05/1.497, allocations: 11.64 kB / 1.389 GB, free: 26.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001086/1.498, allocations: 252.4 kB / 1.389 GB, free: 26.07 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/1.499, allocations: 53.69 kB / 1.389 GB, free: 26.05 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/1.499, allocations: 3.875 kB / 1.389 GB, free: 26.05 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001542/1.5, allocations: 0.7959 MB / 1.39 GB, free: 25.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/1.5, allocations: 0 / 1.39 GB, free: 25.94 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/1.5, allocations: 7.562 kB / 1.39 GB, free: 25.94 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003418/1.501, allocations: 96.58 kB / 1.39 GB, free: 25.92 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/1.501, allocations: 3.844 kB / 1.39 GB, free: 25.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/1.502, allocations: 235.4 kB / 1.39 GB, free: 25.84 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.808e-05/1.502, allocations: 42.36 kB / 1.39 GB, free: 25.84 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.0002593/1.502, allocations: 153.4 kB / 1.391 GB, free: 25.71 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/1.502, allocations: 65.77 kB / 1.391 GB, free: 25.67 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009543/1.503, allocations: 497.3 kB / 1.391 GB, free: 25.56 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/1.503, allocations: 7.812 kB / 1.391 GB, free: 25.56 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/1.503, allocations: 0 / 1.391 GB, free: 25.56 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/1.503, allocations: 3.984 kB / 1.391 GB, free: 25.55 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002063/1.505, allocations: 1.253 MB / 1.392 GB, free: 25 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/1.505, allocations: 0 / 1.392 GB, free: 25 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000397/1.506, allocations: 97.81 kB / 1.392 GB, free: 24.98 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.137e-06/1.506, allocations: 3.781 kB / 1.392 GB, free: 24.98 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.685e-05/1.506, allocations: 10.09 kB / 1.392 GB, free: 24.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.6e-06/1.506, allocations: 11.72 kB / 1.392 GB, free: 24.97 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/1.506, allocations: 0 / 1.392 GB, free: 24.97 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001171/1.507, allocations: 0.8682 MB / 1.393 GB, free: 24.67 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001642/1.507, allocations: 138 kB / 1.393 GB, free: 24.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.341e-05/1.507, allocations: 7.75 kB / 1.393 GB, free: 24.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003591/1.508, allocations: 45.89 kB / 1.393 GB, free: 24.52 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/1.508, allocations: 66.36 kB / 1.394 GB, free: 24.48 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.894e-05/1.508, allocations: 22 kB / 1.394 GB, free: 24.48 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0004024/1.508, allocations: 301.5 kB / 1.394 GB, free: 24.38 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.508, allocations: 0 / 1.394 GB, free: 24.38 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001191/1.509, allocations: 325.7 kB / 1.394 GB, free: 24.32 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.0002728/1.51, allocations: 133 kB / 1.394 GB, free: 24.21 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.002183/1.512, allocations: 1.695 MB / 1.396 GB, free: 23.5 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 5.74e-06/1.512, allocations: 3.188 kB / 1.396 GB, free: 23.5 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003775/1.512, allocations: 254.1 kB / 1.396 GB, free: 23.48 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008285/1.513, allocations: 128.3 kB / 1.396 GB, free: 23.45 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/1.515, allocations: 0.8815 MB / 1.397 GB, free: 23.04 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006618/1.516, allocations: 0.945 MB / 1.398 GB, free: 22.22 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0005735/1.516, allocations: 106.7 kB / 1.398 GB, free: 22.17 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/1.516, allocations: 49.83 kB / 1.398 GB, free: 22.16 MB / 0.8386 GB Notification: Performance of SimCode: time 7.01e-07/1.516, allocations: 0 / 1.398 GB, free: 22.16 MB / 0.8386 GB Notification: Performance of Templates: time 0.02074/1.537, allocations: 11.66 MB / 1.41 GB, free: 13.61 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.sim & ./Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains.csv","../files/Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches