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: "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.396/2.396, allocations: 390.3 MB / 405.3 MB, free: 13.51 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.00158/0.001579, allocations: 177.3 kB / 498.1 MB, free: 5.734 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: 223.2 MB / 0.7948 GB, free: 17.92 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.0009202/0.0009201, allocations: 98.77 kB / 0.9346 GB, free: 6.242 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003599/0.00036, allocations: 10.25 kB / 1.084 GB, free: 221.6 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.2978, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1916/0.4894, allocations: 153 MB / 1.372 GB, free: 9.027 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/0.4897, allocations: 71.95 kB / 1.372 GB, free: 8.957 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.04901/0.5388, allocations: 16.81 MB / 1.389 GB, free: 8.113 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.096e-06/0.5388, allocations: 0 / 1.389 GB, free: 8.113 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 6.933e-05/0.5389, allocations: 16 kB / 1.389 GB, free: 8.098 MB / 0.8855 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.002903/0.5418, allocations: 1.219 MB / 1.39 GB, free: 6.789 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.5419, allocations: 8.031 kB / 1.39 GB, free: 6.781 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002692/0.5421, allocations: 114.5 kB / 1.39 GB, free: 6.66 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000406/0.5426, allocations: 110.8 kB / 1.39 GB, free: 6.551 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001356/0.5439, allocations: 0.5592 MB / 1.391 GB, free: 5.953 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.578e-05/0.544, allocations: 73.98 kB / 1.391 GB, free: 5.879 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002503/0.5443, allocations: 91.94 kB / 1.391 GB, free: 5.789 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001284/0.5456, allocations: 0.6567 MB / 1.392 GB, free: 5.117 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.5456, allocations: 4 kB / 1.392 GB, free: 5.113 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.924e-05/0.5457, allocations: 35.98 kB / 1.392 GB, free: 5.078 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.788e-05/0.5457, allocations: 16 kB / 1.392 GB, free: 5.062 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009897/0.5467, allocations: 492.9 kB / 1.392 GB, free: 4.582 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004193/0.5509, allocations: 2.239 MB / 1.394 GB, free: 2.285 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.5521, allocations: 0.5616 MB / 1.395 GB, free: 1.715 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 5.181e-05/0.5521, allocations: 16.66 kB / 1.395 GB, free: 1.699 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000679/0.5528, allocations: 378.8 kB / 1.395 GB, free: 1.312 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=68): time 2.896e-06/0.5528, allocations: 0 / 1.395 GB, free: 1.312 MB / 0.8855 GB Notification: Performance of matching and sorting (n=68): time 0.001498/0.5543, allocations: 0.7715 MB / 1.396 GB, free: 0.5352 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.182e-05/0.5544, allocations: 115.3 kB / 1.396 GB, free: 408 kB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006571/0.5551, allocations: 478.1 kB / 1.397 GB, free: 15.92 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.000132/0.5552, allocations: 49.7 kB / 1.397 GB, free: 15.87 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003192/0.5556, allocations: 352.4 kB / 1.397 GB, free: 15.52 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001827/0.5558, allocations: 205.2 kB / 1.397 GB, free: 15.31 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.882e-05/0.5558, allocations: 16 kB / 1.397 GB, free: 15.3 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001794/0.556, allocations: 382.8 kB / 1.397 GB, free: 14.91 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007429/0.5568, allocations: 337.4 kB / 1.398 GB, free: 14.58 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008282/0.5576, allocations: 0.4887 MB / 1.398 GB, free: 14.04 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000805/0.5584, allocations: 491.6 kB / 1.399 GB, free: 13.53 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.204e-06/0.5585, allocations: 4 kB / 1.399 GB, free: 13.53 MB / 0.9011 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001963/0.5604, allocations: 1.094 MB / 1.4 GB, free: 12.39 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005397/0.561, allocations: 1.21 MB / 1.401 GB, free: 11.07 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.561, allocations: 0 / 1.401 GB, free: 11.07 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.203e-05/0.561, allocations: 8 kB / 1.401 GB, free: 11.07 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004637/0.5615, allocations: 115.8 kB / 1.401 GB, free: 10.95 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.817e-05/0.5615, allocations: 11.89 kB / 1.401 GB, free: 10.94 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001174/0.5627, allocations: 267.2 kB / 1.401 GB, free: 10.68 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/0.5628, allocations: 47.97 kB / 1.401 GB, free: 10.63 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.5628, allocations: 5.406 kB / 1.401 GB, free: 10.63 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001771/0.5646, allocations: 1.019 MB / 1.402 GB, free: 9.578 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.5646, allocations: 8 kB / 1.402 GB, free: 9.57 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.015e-06/0.5647, allocations: 4 kB / 1.402 GB, free: 9.566 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000379/0.565, allocations: 95.83 kB / 1.403 GB, free: 9.473 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.579e-05/0.5651, allocations: 11.94 kB / 1.403 GB, free: 9.461 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001081/0.5662, allocations: 247.3 kB / 1.403 GB, free: 9.219 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/0.5663, allocations: 43.97 kB / 1.403 GB, free: 9.176 MB / 0.9011 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 () * Number of clocked 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.0004727/0.5668, allocations: 307.1 kB / 1.403 GB, free: 8.867 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001263/0.5669, allocations: 71.14 kB / 1.403 GB, free: 8.797 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001185/0.5681, allocations: 0.6033 MB / 1.404 GB, free: 8.184 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.5681, allocations: 15.92 kB / 1.404 GB, free: 8.168 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.5681, allocations: 4 kB / 1.404 GB, free: 8.164 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.357e-06/0.5681, allocations: 3.984 kB / 1.404 GB, free: 8.16 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00229/0.5704, allocations: 1.44 MB / 1.405 GB, free: 6.656 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.5704, allocations: 0 / 1.405 GB, free: 6.656 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004165/0.5709, allocations: 95.83 kB / 1.405 GB, free: 6.562 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.314e-05/0.5709, allocations: 4 kB / 1.405 GB, free: 6.559 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.974e-05/0.571, allocations: 28.08 kB / 1.405 GB, free: 6.531 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.731e-06/0.571, allocations: 4 kB / 1.405 GB, free: 6.527 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.571, allocations: 4 kB / 1.405 GB, free: 6.523 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001608/0.5726, allocations: 1.008 MB / 1.406 GB, free: 5.469 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001672/0.5728, allocations: 156.2 kB / 1.406 GB, free: 5.297 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.347e-05/0.5729, allocations: 15.95 kB / 1.406 GB, free: 5.281 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003568/0.5732, allocations: 59.95 kB / 1.407 GB, free: 5.223 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.5734, allocations: 52.48 kB / 1.407 GB, free: 5.172 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.1e-05/0.5734, allocations: 23.98 kB / 1.407 GB, free: 5.148 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0004298/0.5738, allocations: 366.8 kB / 1.407 GB, free: 4.793 MB / 0.9011 GB Notification: Performance of sort global known variables: time 5.31e-07/0.5739, allocations: 4 kB / 1.407 GB, free: 4.789 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0009292/0.5748, allocations: 347.1 kB / 1.407 GB, free: 4.449 MB / 0.9011 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) * Number of clocked states: 0 () * 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.001988/0.5768, allocations: 1.814 MB / 1.409 GB, free: 2.582 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.002618/0.5794, allocations: 1.836 MB / 1.411 GB, free: 0.6289 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.5794, allocations: 0 / 1.411 GB, free: 0.6289 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0004934/0.5799, allocations: 304.5 kB / 1.411 GB, free: 336 kB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007375/0.5807, allocations: 141.9 kB / 1.411 GB, free: 196 kB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003481/0.5842, allocations: 3.616 MB / 1.415 GB, free: 12.46 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00054/0.5847, allocations: 0.9428 MB / 1.416 GB, free: 11.49 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0003613/0.5851, allocations: 85.33 kB / 1.416 GB, free: 11.41 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003661/0.5855, allocations: 283.3 kB / 1.416 GB, free: 11.13 MB / 0.9167 GB Notification: Performance of SimCode: time 3.3e-07/0.5855, allocations: 0 / 1.416 GB, free: 11.13 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5233/1.109, allocations: 17.82 MB / 1.433 GB, free: 191.7 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001385/1.109, allocations: 185 kB / 1.434 GB, free: 191.5 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.448/3.557, allocations: 0 / 1.434 GB, free: 191.5 MB / 0.9167 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains.fmu > Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains_res.mat does not exist to compare? outputFormat=mat