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: "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.193/2.193, allocations: 390.3 MB / 402.8 MB, free: 6.711 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.001063/0.001063, allocations: 180.9 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.561/1.561, allocations: 221.3 MB / 0.7915 GB, free: 5.414 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.001257/0.001257, allocations: 95.95 kB / 0.9317 GB, free: 5.727 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.009e-05/3.013e-05, allocations: 0 / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3024, allocations: 143 MB / 1.219 GB, free: 13.43 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.089/1.391, allocations: 153.7 MB / 1.369 GB, free: 432 kB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002531/1.391, allocations: 63.56 kB / 1.369 GB, free: 400 kB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04719/1.439, allocations: 16.78 MB / 1.385 GB, free: 2.051 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.977e-06/1.439, allocations: 0 / 1.385 GB, free: 2.051 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.231e-05/1.439, allocations: 19.94 kB / 1.385 GB, free: 2.031 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.001922/1.441, allocations: 1.098 MB / 1.386 GB, free: 0.918 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.176e-05/1.441, allocations: 12.03 kB / 1.387 GB, free: 0.9062 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001512/1.441, allocations: 106.9 kB / 1.387 GB, free: 0.832 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001946/1.441, allocations: 114.8 kB / 1.387 GB, free: 0.7188 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001028/1.442, allocations: 0.5689 MB / 1.387 GB, free: 224 kB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.821e-05/1.442, allocations: 66.48 kB / 1.387 GB, free: 180 kB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000149/1.442, allocations: 91.12 kB / 1.387 GB, free: 112 kB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/1.444, allocations: 0.6323 MB / 1.388 GB, free: 15.67 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/1.444, allocations: 0 / 1.388 GB, free: 15.67 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.437e-05/1.444, allocations: 28.69 kB / 1.388 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.662e-05/1.444, allocations: 16 kB / 1.388 GB, free: 15.65 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007092/1.444, allocations: 430.5 kB / 1.388 GB, free: 15.38 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003514/1.448, allocations: 2.243 MB / 1.391 GB, free: 13.64 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008531/1.449, allocations: 488.1 kB / 1.391 GB, free: 13.33 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000372/1.449, allocations: 254.4 kB / 1.391 GB, free: 13.17 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 4.86e-05/1.449, allocations: 16.48 kB / 1.391 GB, free: 13.16 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005538/1.45, allocations: 350.7 kB / 1.392 GB, free: 12.89 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=68): time 1.654e-06/1.45, allocations: 0 / 1.392 GB, free: 12.89 MB / 0.8542 GB Notification: Performance of matching and sorting (n=68): time 0.0009106/1.451, allocations: 0.5156 MB / 1.392 GB, free: 12.5 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.263e-05/1.451, allocations: 122.8 kB / 1.392 GB, free: 12.36 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005779/1.451, allocations: 469 kB / 1.393 GB, free: 12 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 9.393e-05/1.451, allocations: 51.7 kB / 1.393 GB, free: 11.95 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002869/1.452, allocations: 345 kB / 1.393 GB, free: 11.71 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001691/1.452, allocations: 208.7 kB / 1.393 GB, free: 11.54 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.277e-05/1.452, allocations: 22.75 kB / 1.393 GB, free: 11.53 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001765/1.452, allocations: 373.8 kB / 1.394 GB, free: 11.18 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005417/1.453, allocations: 313.2 kB / 1.394 GB, free: 10.99 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006435/1.453, allocations: 450.3 kB / 1.394 GB, free: 10.63 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006219/1.454, allocations: 458.4 kB / 1.395 GB, free: 10.27 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/1.454, allocations: 0 / 1.395 GB, free: 10.27 MB / 0.8542 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001633/1.456, allocations: 1.029 MB / 1.396 GB, free: 9.449 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006149/1.456, allocations: 1.208 MB / 1.397 GB, free: 8.164 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/1.456, allocations: 0 / 1.397 GB, free: 8.164 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/1.456, allocations: 8 kB / 1.397 GB, free: 8.156 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004683/1.457, allocations: 121.8 kB / 1.397 GB, free: 8.043 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.71e-05/1.457, allocations: 7.938 kB / 1.397 GB, free: 8.035 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001136/1.458, allocations: 266.2 kB / 1.398 GB, free: 7.785 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/1.458, allocations: 46.03 kB / 1.398 GB, free: 7.746 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 8.155e-06/1.458, allocations: 4 kB / 1.398 GB, free: 7.742 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001531/1.46, allocations: 0.9948 MB / 1.399 GB, free: 6.996 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/1.46, allocations: 4.312 kB / 1.399 GB, free: 6.992 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.407e-06/1.46, allocations: 11.98 kB / 1.399 GB, free: 6.98 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003711/1.46, allocations: 94.78 kB / 1.399 GB, free: 6.891 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/1.46, allocations: 7.938 kB / 1.399 GB, free: 6.883 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001032/1.461, allocations: 256.3 kB / 1.399 GB, free: 6.645 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.545e-05/1.461, allocations: 47.53 kB / 1.399 GB, free: 6.605 MB / 0.8542 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.0002449/1.461, allocations: 159.6 kB / 1.399 GB, free: 6.461 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.408e-05/1.462, allocations: 63.25 kB / 1.399 GB, free: 6.398 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009401/1.463, allocations: 0.5548 MB / 1.4 GB, free: 6.008 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.347e-06/1.463, allocations: 11.94 kB / 1.4 GB, free: 5.996 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/1.463, allocations: 3.984 kB / 1.4 GB, free: 5.992 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/1.463, allocations: 4 kB / 1.4 GB, free: 5.988 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0019/1.464, allocations: 1.383 MB / 1.401 GB, free: 4.918 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/1.464, allocations: 0 / 1.401 GB, free: 4.918 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004118/1.465, allocations: 99.36 kB / 1.401 GB, free: 4.824 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.086e-05/1.465, allocations: 7.984 kB / 1.401 GB, free: 4.816 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.823e-05/1.465, allocations: 17.94 kB / 1.401 GB, free: 4.809 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/1.465, allocations: 0 / 1.401 GB, free: 4.809 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/1.465, allocations: 4 kB / 1.401 GB, free: 4.805 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001292/1.466, allocations: 0.9244 MB / 1.402 GB, free: 4.094 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001543/1.466, allocations: 151 kB / 1.402 GB, free: 3.934 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.593e-05/1.467, allocations: 22.88 kB / 1.402 GB, free: 3.922 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003394/1.467, allocations: 54.03 kB / 1.402 GB, free: 3.879 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/1.467, allocations: 55.41 kB / 1.402 GB, free: 3.832 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.303e-05/1.467, allocations: 26.73 kB / 1.402 GB, free: 3.812 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0004389/1.468, allocations: 354.4 kB / 1.403 GB, free: 3.551 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.5e-07/1.468, allocations: 0 / 1.403 GB, free: 3.551 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.001063/1.469, allocations: 351.7 kB / 1.403 GB, free: 3.238 MB / 0.8542 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.001784/1.47, allocations: 1.728 MB / 1.405 GB, free: 1.727 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.002376/1.473, allocations: 1.778 MB / 1.406 GB, free: 292 kB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/1.473, allocations: 0 / 1.406 GB, free: 292 kB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0004091/1.473, allocations: 279 kB / 1.407 GB, free: 92 kB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008402/1.474, allocations: 137.9 kB / 1.407 GB, free: 15.99 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002909/1.477, allocations: 1.059 MB / 1.408 GB, free: 15.03 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008856/1.478, allocations: 0.9436 MB / 1.409 GB, free: 14.05 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0005721/1.478, allocations: 105.2 kB / 1.409 GB, free: 13.95 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004492/1.479, allocations: 270.3 kB / 1.409 GB, free: 13.89 MB / 0.8698 GB Notification: Performance of SimCode: time 2.195e-06/1.479, allocations: 4 kB / 1.409 GB, free: 13.88 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04363/1.523, allocations: 18.78 MB / 1.428 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001805/1.523, allocations: 181.4 kB / 1.428 GB, free: 11.15 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.691/4.214, allocations: 0 / 1.428 GB, free: 11.15 MB / 0.8855 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains.fmu > Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains_res.mat does not exist to compare? outputFormat=mat