Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 87.42 kB / 15.07 MB, free: 1.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 168.7 kB / 15.95 MB, free: 200 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 223.2 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.507/2.507, allocations: 390.4 MB / 0.6655 GB, free: 2.91 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005028/0.0005029, allocations: 12 kB / 0.8149 GB, free: 14.07 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7524/0.7529, allocations: 142.3 MB / 0.9539 GB, free: 8.035 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale): time 0.00188/0.7549, allocations: 1.655 MB / 0.9555 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00188/0.7568, allocations: 1.628 MB / 0.9571 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002359/0.757, allocations: 8.156 kB / 0.9571 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001944/0.7572, allocations: 59.91 kB / 0.9572 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001577/0.7574, allocations: 58 kB / 0.9572 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007378/0.7581, allocations: 327.9 kB / 0.9575 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005012/0.7586, allocations: 0.6695 MB / 0.9582 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003381/0.759, allocations: 252.6 kB / 0.9584 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001949/0.7592, allocations: 198.3 kB / 0.9586 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002153/0.7594, allocations: 218.7 kB / 0.9588 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.042e-05/0.7595, allocations: 23.84 kB / 0.9588 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.7596, allocations: 37.67 kB / 0.9589 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.666e-05/0.7597, allocations: 84.39 kB / 0.959 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.7598, allocations: 119.4 kB / 0.9591 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004229/0.7602, allocations: 0.6674 MB / 0.9597 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.7602, allocations: 0 / 0.9597 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.443e-06/0.7602, allocations: 1.5 kB / 0.9597 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.067e-06/0.7602, allocations: 0 / 0.9597 GB, free: 3.512 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.001184/0.7614, allocations: 0.8803 MB / 0.9606 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.7615, allocations: 9.625 kB / 0.9606 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.942e-05/0.7615, allocations: 92.39 kB / 0.9607 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.7617, allocations: 73.7 kB / 0.9607 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004145/0.7621, allocations: 405.5 kB / 0.9611 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.208e-05/0.7621, allocations: 51.27 kB / 0.9612 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.614e-05/0.7622, allocations: 63.06 kB / 0.9612 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008093/0.763, allocations: 0.5195 MB / 0.9617 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.7631, allocations: 0 / 0.9617 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.876e-05/0.7631, allocations: 26.06 kB / 0.9618 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.7631, allocations: 12.34 kB / 0.9618 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006545/0.7638, allocations: 385.3 kB / 0.9622 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002093/0.7659, allocations: 1.695 MB / 0.9638 GB, free: 408 kB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.767, allocations: 0.9115 MB / 0.9647 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003777/0.7674, allocations: 255.4 kB / 0.9649 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.744e-05/0.7674, allocations: 3.844 kB / 0.9649 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000521/0.7679, allocations: 277.5 kB / 0.9652 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=53): time 2.334e-06/0.7679, allocations: 1 kB / 0.9652 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of matching and sorting (n=53): time 0.001313/0.7693, allocations: 0.6 MB / 0.9658 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.511e-05/0.7694, allocations: 113.6 kB / 0.9659 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005259/0.7699, allocations: 405.4 kB / 0.9663 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 6.292e-05/0.77, allocations: 40.73 kB / 0.9663 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002412/0.7702, allocations: 255.6 kB / 0.9666 GB, free: 14.37 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001542/0.7704, allocations: 174.1 kB / 0.9667 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.961e-05/0.7704, allocations: 16.88 kB / 0.9668 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002743/0.7707, allocations: 361 kB / 0.9671 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006778/0.7714, allocations: 220 kB / 0.9673 GB, free: 13.75 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006531/0.772, allocations: 313.6 kB / 0.9676 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005302/0.7726, allocations: 292.3 kB / 0.9679 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.7726, allocations: 1.375 kB / 0.9679 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001552/0.7742, allocations: 0.6775 MB / 0.9686 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001594/0.7743, allocations: 202.7 kB / 0.9687 GB, free: 12.76 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.7743, allocations: 2.562 kB / 0.9687 GB, free: 12.76 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.7744, allocations: 4.094 kB / 0.9688 GB, free: 12.76 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004237/0.7748, allocations: 107.8 kB / 0.9689 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.337e-05/0.7748, allocations: 8.109 kB / 0.9689 GB, free: 12.72 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000539/0.7754, allocations: 137.6 kB / 0.969 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.722e-05/0.7754, allocations: 26.14 kB / 0.969 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.422e-06/0.7754, allocations: 4.094 kB / 0.969 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001202/0.7767, allocations: 0.5859 MB / 0.9696 GB, free: 12.33 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.878e-06/0.7767, allocations: 2.031 kB / 0.9696 GB, free: 12.33 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.363e-06/0.7767, allocations: 4.031 kB / 0.9696 GB, free: 12.33 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003347/0.777, allocations: 86.42 kB / 0.9697 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.777, allocations: 8.438 kB / 0.9697 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004705/0.7775, allocations: 119.7 kB / 0.9698 GB, free: 12.26 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.089e-05/0.7776, allocations: 25.67 kB / 0.9698 GB, free: 12.25 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition6,$whenCondition5,$PRE.booPul.y,booPul.y,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 2 * 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.0004129/0.778, allocations: 270 kB / 0.9701 GB, free: 12.01 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.982e-05/0.7781, allocations: 51 kB / 0.9701 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009026/0.779, allocations: 491.8 kB / 0.9706 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.779, allocations: 4.562 kB / 0.9706 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.779, allocations: 0 / 0.9706 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.779, allocations: 1.047 kB / 0.9706 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001981/0.781, allocations: 1.229 MB / 0.9718 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.781, allocations: 6 kB / 0.9718 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003512/0.7814, allocations: 88.14 kB / 0.9719 GB, free: 10.79 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.7814, allocations: 4.469 kB / 0.9719 GB, free: 10.79 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.623e-05/0.7814, allocations: 17.86 kB / 0.9719 GB, free: 10.77 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.7815, allocations: 11.12 kB / 0.9719 GB, free: 10.77 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.7815, allocations: 6.578 kB / 0.9719 GB, free: 10.76 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001255/0.7827, allocations: 0.803 MB / 0.9727 GB, free: 10.26 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.7828, allocations: 135.5 kB / 0.9729 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.429e-05/0.7829, allocations: 9 kB / 0.9729 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002161/0.7831, allocations: 33.78 kB / 0.9729 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.515e-05/0.7832, allocations: 44.5 kB / 0.9729 GB, free: 10.08 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.548e-05/0.7833, allocations: 17.53 kB / 0.973 GB, free: 10.07 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003352/0.7836, allocations: 282.2 kB / 0.9732 GB, free: 9.902 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7836, allocations: 0.9062 kB / 0.9732 GB, free: 9.902 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007561/0.7844, allocations: 225 kB / 0.9734 GB, free: 9.84 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (pidSca.I.y,pidSca.D.x,pla1.y,pidNoSca.I.y,pidNoSca.D.x,pla2.y) * Number of discrete variables: 8 ($whenCondition6,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001648/0.786, allocations: 1.38 MB / 0.9748 GB, free: 8.789 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001791/0.7878, allocations: 1.014 MB / 0.9758 GB, free: 8.18 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.7878, allocations: 1.375 kB / 0.9758 GB, free: 8.18 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003648/0.7882, allocations: 216.1 kB / 0.976 GB, free: 8.094 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006765/0.7889, allocations: 110 kB / 0.9761 GB, free: 8.031 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004919/0.7938, allocations: 3.185 MB / 0.9792 GB, free: 5.367 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004836/0.7943, allocations: 0.8635 MB / 0.98 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002321/0.7946, allocations: 56.34 kB / 0.9801 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002664/0.7948, allocations: 203.3 kB / 0.9803 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of SimCode: time 5.51e-07/0.7948, allocations: 0 / 0.9803 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02587/0.8207, allocations: 11.21 MB / 0.9912 GB, free: 9.238 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002572/0.821, allocations: 213.1 kB / 0.9914 GB, free: 8.996 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.02/2.841, allocations: 3.938 kB / 0.9914 GB, free: 8.992 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale_res.mat does not exist to compare? outputFormat=mat