Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.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.CDL.Continuous.Validation.PIDWithResetScale,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale,fileNamePrefix="Buildings_latest_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/Buildings 10.0.0-master/package.mo): time 2.57/2.57, allocations: 393.5 MB / 408.4 MB, free: 10.96 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.001088/0.001088, allocations: 178.7 kB / 0.4901 GB, free: 2.23 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.635/1.635, allocations: 223.1 MB / 0.7992 GB, free: 15.73 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.0009622/0.0009622, allocations: 106.1 kB / 0.9396 GB, free: 2.898 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004394/0.0004394, allocations: 13.12 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2863, allocations: 143 MB / 1.229 GB, free: 85.4 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1995/0.4858, allocations: 152.1 MB / 1.378 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/0.4862, allocations: 83.94 kB / 1.378 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.02876/0.515, allocations: 10.82 MB / 1.388 GB, free: 2.199 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.944e-06/0.515, allocations: 0 / 1.388 GB, free: 2.199 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 2.659e-05/0.515, allocations: 12 kB / 1.388 GB, free: 2.188 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.001485/0.5165, allocations: 0.9007 MB / 1.389 GB, free: 1.223 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.5166, allocations: 12.56 kB / 1.389 GB, free: 1.211 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001093/0.5167, allocations: 94.52 kB / 1.389 GB, free: 1.109 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.5168, allocations: 79.19 kB / 1.39 GB, free: 1.031 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005697/0.5174, allocations: 408.9 kB / 1.39 GB, free: 0.5898 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.49e-05/0.5175, allocations: 41.31 kB / 1.39 GB, free: 0.5469 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.411e-05/0.5176, allocations: 67.98 kB / 1.39 GB, free: 492 kB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00086/0.5185, allocations: 0.5269 MB / 1.391 GB, free: 15.93 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.5185, allocations: 0 / 1.391 GB, free: 15.93 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.152e-05/0.5185, allocations: 20 kB / 1.391 GB, free: 15.91 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.5186, allocations: 16 kB / 1.391 GB, free: 15.9 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006943/0.5193, allocations: 377.1 kB / 1.391 GB, free: 15.53 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002531/0.5218, allocations: 1.709 MB / 1.393 GB, free: 13.77 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009433/0.5227, allocations: 0.9061 MB / 1.393 GB, free: 12.74 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 3.584e-05/0.5228, allocations: 4.438 kB / 1.393 GB, free: 12.74 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005227/0.5233, allocations: 289.2 kB / 1.394 GB, free: 12.45 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=53): time 1.914e-06/0.5233, allocations: 0 / 1.394 GB, free: 12.45 MB / 0.9011 GB Notification: Performance of matching and sorting (n=53): time 0.001094/0.5244, allocations: 0.5923 MB / 1.394 GB, free: 11.84 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.81e-05/0.5245, allocations: 111.2 kB / 1.394 GB, free: 11.71 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003869/0.5249, allocations: 364.7 kB / 1.395 GB, free: 11.35 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 5.571e-05/0.525, allocations: 37.7 kB / 1.395 GB, free: 11.3 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002016/0.5252, allocations: 265 kB / 1.395 GB, free: 11.04 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.5253, allocations: 169.5 kB / 1.395 GB, free: 10.87 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.496e-05/0.5254, allocations: 12 kB / 1.395 GB, free: 10.86 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001517/0.5255, allocations: 366.7 kB / 1.396 GB, free: 10.49 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004513/0.526, allocations: 217 kB / 1.396 GB, free: 10.28 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005104/0.5265, allocations: 307.4 kB / 1.396 GB, free: 9.945 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004959/0.527, allocations: 281.4 kB / 1.396 GB, free: 9.664 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.527, allocations: 7.938 kB / 1.396 GB, free: 9.656 MB / 0.9011 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001243/0.5283, allocations: 0.6806 MB / 1.397 GB, free: 8.953 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003054/0.5286, allocations: 0.6761 MB / 1.398 GB, free: 8.219 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.5286, allocations: 4 kB / 1.398 GB, free: 8.215 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.192e-05/0.5286, allocations: 4 kB / 1.398 GB, free: 8.211 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004233/0.5291, allocations: 99.83 kB / 1.398 GB, free: 8.113 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.5291, allocations: 7.984 kB / 1.398 GB, free: 8.105 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005345/0.5296, allocations: 127.6 kB / 1.398 GB, free: 7.98 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.865e-05/0.5297, allocations: 35.94 kB / 1.398 GB, free: 7.945 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 9.147e-06/0.5297, allocations: 4 kB / 1.398 GB, free: 7.941 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009655/0.5307, allocations: 0.578 MB / 1.399 GB, free: 7.352 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.996e-06/0.5307, allocations: 3.938 kB / 1.399 GB, free: 7.348 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.49e-06/0.5307, allocations: 4 kB / 1.399 GB, free: 7.344 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003255/0.531, allocations: 87.89 kB / 1.399 GB, free: 7.258 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.679e-06/0.531, allocations: 7.984 kB / 1.399 GB, free: 7.25 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005041/0.5316, allocations: 127.6 kB / 1.399 GB, free: 7.125 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.349e-05/0.5316, allocations: 20 kB / 1.399 GB, free: 7.105 MB / 0.9011 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.0003061/0.5319, allocations: 265.7 kB / 1.399 GB, free: 6.836 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.573e-05/0.532, allocations: 55.3 kB / 1.399 GB, free: 6.781 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000858/0.5329, allocations: 485.5 kB / 1.4 GB, free: 6.305 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.5329, allocations: 4 kB / 1.4 GB, free: 6.301 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.5329, allocations: 7.938 kB / 1.4 GB, free: 6.293 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.5329, allocations: 3.984 kB / 1.4 GB, free: 6.289 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001711/0.5346, allocations: 1.226 MB / 1.401 GB, free: 4.98 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.5346, allocations: 0 / 1.401 GB, free: 4.98 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003741/0.535, allocations: 96.02 kB / 1.401 GB, free: 4.887 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.293e-06/0.535, allocations: 4 kB / 1.401 GB, free: 4.883 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.105e-05/0.5351, allocations: 8 kB / 1.401 GB, free: 4.875 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.5351, allocations: 7.984 kB / 1.401 GB, free: 4.867 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.5351, allocations: 4 kB / 1.401 GB, free: 4.863 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001278/0.5364, allocations: 0.8754 MB / 1.402 GB, free: 3.918 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001104/0.5365, allocations: 136.6 kB / 1.402 GB, free: 3.766 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.396e-05/0.5365, allocations: 12 kB / 1.402 GB, free: 3.754 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002338/0.5368, allocations: 35.97 kB / 1.402 GB, free: 3.719 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.36e-05/0.5369, allocations: 36.36 kB / 1.402 GB, free: 3.684 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.165e-05/0.5369, allocations: 19.98 kB / 1.402 GB, free: 3.664 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0003142/0.5372, allocations: 283.2 kB / 1.402 GB, free: 3.391 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5372, allocations: 0 / 1.402 GB, free: 3.391 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.000689/0.5379, allocations: 231.3 kB / 1.402 GB, free: 3.164 MB / 0.9011 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.00186/0.5398, allocations: 1.865 MB / 1.404 GB, free: 1.223 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001601/0.5414, allocations: 1.021 MB / 1.405 GB, free: 160 kB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5414, allocations: 0 / 1.405 GB, free: 160 kB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.5084/1.05, allocations: 219 kB / 1.405 GB, free: 169.7 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007823/1.051, allocations: 89.91 kB / 1.406 GB, free: 169.7 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002989/1.054, allocations: 2.473 MB / 1.408 GB, free: 167.8 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004712/1.054, allocations: 0.8761 MB / 1.409 GB, free: 167.1 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002793/1.054, allocations: 57.09 kB / 1.409 GB, free: 167.1 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002901/1.055, allocations: 197.4 kB / 1.409 GB, free: 167.1 MB / 0.9011 GB Notification: Performance of SimCode: time 1.102e-06/1.055, allocations: 0 / 1.409 GB, free: 167.1 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02788/1.083, allocations: 10.98 MB / 1.42 GB, free: 166.6 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001317/1.083, allocations: 202.2 kB / 1.42 GB, free: 166.3 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.315/3.398, allocations: 5.312 kB / 1.42 GB, free: 166.3 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale_res.mat does not exist to compare? outputFormat=mat