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.312/2.312, allocations: 387.1 MB / 399.7 MB, free: 9.469 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.00122/0.00122, allocations: 173 kB / 492.3 MB, free: 0.6289 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.483/1.483, allocations: 221.3 MB / 0.7871 GB, free: 12.97 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.0009771/0.0009772, allocations: 91.89 kB / 0.9267 GB, free: 14.03 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.418e-05/3.419e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3268, allocations: 142.4 MB / 1.212 GB, free: 38.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.14/1.467, allocations: 152.9 MB / 1.362 GB, free: 18.98 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002072/1.467, allocations: 67 kB / 1.362 GB, free: 18.98 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04275/1.51, allocations: 16.78 MB / 1.378 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.733e-06/1.51, allocations: 0 / 1.378 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.521e-05/1.51, allocations: 14.75 kB / 1.378 GB, free: 32.73 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.001701/1.512, allocations: 1.096 MB / 1.379 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/1.512, allocations: 11.53 kB / 1.379 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001219/1.512, allocations: 117.2 kB / 1.379 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001996/1.512, allocations: 112.1 kB / 1.38 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009062/1.513, allocations: 0.5654 MB / 1.38 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.449e-05/1.513, allocations: 67.06 kB / 1.38 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001288/1.513, allocations: 95.98 kB / 1.38 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009497/1.514, allocations: 0.6224 MB / 1.381 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/1.514, allocations: 3.875 kB / 1.381 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.654e-05/1.514, allocations: 25.91 kB / 1.381 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/1.514, allocations: 18.84 kB / 1.381 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006384/1.515, allocations: 422.2 kB / 1.381 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003212/1.518, allocations: 2.254 MB / 1.384 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007589/1.519, allocations: 490.7 kB / 1.384 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003318/1.519, allocations: 258.9 kB / 1.384 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.729e-05/1.519, allocations: 12.34 kB / 1.384 GB, free: 30 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004996/1.52, allocations: 340 kB / 1.385 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=68): time 2.334e-06/1.52, allocations: 0 / 1.385 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of matching and sorting (n=68): time 0.0008502/1.521, allocations: 0.5214 MB / 1.385 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.955e-05/1.521, allocations: 114.8 kB / 1.385 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005044/1.521, allocations: 477.5 kB / 1.386 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.83e-05/1.521, allocations: 50.98 kB / 1.386 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002448/1.522, allocations: 345 kB / 1.386 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/1.522, allocations: 208 kB / 1.386 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.925e-05/1.522, allocations: 28.16 kB / 1.386 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001417/1.522, allocations: 374.2 kB / 1.387 GB, free: 28.79 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004952/1.523, allocations: 304.1 kB / 1.387 GB, free: 28.78 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005275/1.523, allocations: 455.6 kB / 1.387 GB, free: 28.61 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005426/1.524, allocations: 460.5 kB / 1.388 GB, free: 28.39 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/1.524, allocations: 0 / 1.388 GB, free: 28.39 MB / 0.8386 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001392/1.525, allocations: 1.031 MB / 1.389 GB, free: 28.07 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004177/1.525, allocations: 1.209 MB / 1.39 GB, free: 26.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/1.525, allocations: 3.812 kB / 1.39 GB, free: 26.8 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/1.526, allocations: 7.844 kB / 1.39 GB, free: 26.79 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004358/1.526, allocations: 111.3 kB / 1.39 GB, free: 26.77 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.556e-05/1.526, allocations: 11.64 kB / 1.39 GB, free: 26.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/1.527, allocations: 266.5 kB / 1.39 GB, free: 26.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.989e-05/1.527, allocations: 45.62 kB / 1.39 GB, free: 26.67 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.977e-06/1.527, allocations: 3.875 kB / 1.39 GB, free: 26.67 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001363/1.529, allocations: 0.9935 MB / 1.391 GB, free: 26.4 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.83e-06/1.529, allocations: 3.781 kB / 1.391 GB, free: 26.4 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.765e-06/1.529, allocations: 11.41 kB / 1.391 GB, free: 26.4 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003321/1.529, allocations: 95.45 kB / 1.391 GB, free: 26.38 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/1.529, allocations: 3.812 kB / 1.391 GB, free: 26.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000936/1.53, allocations: 252.2 kB / 1.392 GB, free: 26.3 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.611e-05/1.53, allocations: 49.06 kB / 1.392 GB, free: 26.29 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.0002312/1.53, allocations: 164.3 kB / 1.392 GB, free: 26.16 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.084e-05/1.53, allocations: 69.08 kB / 1.392 GB, free: 26.12 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008494/1.531, allocations: 0.5481 MB / 1.393 GB, free: 26.01 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/1.531, allocations: 7.688 kB / 1.393 GB, free: 26.01 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/1.531, allocations: 0 / 1.393 GB, free: 26.01 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.817e-06/1.531, allocations: 3.984 kB / 1.393 GB, free: 26 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001676/1.533, allocations: 1.39 MB / 1.394 GB, free: 25.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/1.533, allocations: 0 / 1.394 GB, free: 25.41 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003608/1.533, allocations: 92.61 kB / 1.394 GB, free: 25.39 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/1.533, allocations: 7.781 kB / 1.394 GB, free: 25.39 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.716e-05/1.533, allocations: 22.64 kB / 1.394 GB, free: 25.38 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.269e-06/1.533, allocations: 3.844 kB / 1.394 GB, free: 25.38 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/1.533, allocations: 7.781 kB / 1.394 GB, free: 25.38 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/1.534, allocations: 0.9226 MB / 1.395 GB, free: 25.07 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.725e-05/1.534, allocations: 150.4 kB / 1.395 GB, free: 24.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.168e-05/1.535, allocations: 26.86 kB / 1.395 GB, free: 24.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003168/1.535, allocations: 45.7 kB / 1.395 GB, free: 24.91 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/1.535, allocations: 62.03 kB / 1.395 GB, free: 24.88 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.45e-05/1.535, allocations: 31.42 kB / 1.395 GB, free: 24.87 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003812/1.535, allocations: 359.9 kB / 1.396 GB, free: 24.77 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.31e-07/1.535, allocations: 0 / 1.396 GB, free: 24.77 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0009193/1.536, allocations: 349.5 kB / 1.396 GB, free: 24.71 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.001437/1.538, allocations: 1.714 MB / 1.398 GB, free: 23.66 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.002061/1.54, allocations: 1.784 MB / 1.399 GB, free: 22.94 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/1.54, allocations: 0 / 1.399 GB, free: 22.94 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003354/1.54, allocations: 270.7 kB / 1.4 GB, free: 22.92 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007543/1.541, allocations: 141.3 kB / 1.4 GB, free: 22.88 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00222/1.543, allocations: 1.066 MB / 1.401 GB, free: 22.39 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006242/1.544, allocations: 0.9489 MB / 1.402 GB, free: 21.57 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0004618/1.544, allocations: 102.5 kB / 1.402 GB, free: 21.52 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003311/1.545, allocations: 270.3 kB / 1.402 GB, free: 21.49 MB / 0.8386 GB Notification: Performance of SimCode: time 5.61e-07/1.545, allocations: 0 / 1.402 GB, free: 21.49 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04438/1.589, allocations: 18.8 MB / 1.42 GB, free: 3.605 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000203/1.589, allocations: 161.5 kB / 1.421 GB, free: 3.383 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.805/4.395, allocations: 0 / 1.421 GB, free: 3.383 MB / 0.8386 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