Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.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.PIDScale,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDScale",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDScale",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.355/2.355, allocations: 393.5 MB / 408.4 MB, free: 11.03 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.001215/0.001215, allocations: 179.2 kB / 0.4901 GB, free: 2.242 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.575/1.575, allocations: 223.1 MB / 0.7992 GB, free: 15.58 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.0008725/0.0008724, allocations: 102.2 kB / 0.9396 GB, free: 2.801 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003506/0.0003507, allocations: 15.45 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2873, allocations: 143 MB / 1.229 GB, free: 85.38 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1971/0.4844, allocations: 152 MB / 1.378 GB, free: 13.13 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002204/0.4847, allocations: 75.95 kB / 1.378 GB, free: 13.05 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.02551/0.5102, allocations: 9.528 MB / 1.387 GB, free: 3.508 MB / 0.8855 GB Notification: Performance of FrontEnd: time 4.138e-06/0.5103, allocations: 0 / 1.387 GB, free: 3.508 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 2.891e-05/0.5103, allocations: 12 kB / 1.387 GB, free: 3.496 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.00166/0.512, allocations: 0.8343 MB / 1.388 GB, free: 2.605 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 7.692e-05/0.5121, allocations: 12.56 kB / 1.388 GB, free: 2.594 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000149/0.5122, allocations: 86.7 kB / 1.388 GB, free: 2.5 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001466/0.5124, allocations: 67.2 kB / 1.388 GB, free: 2.434 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006629/0.5131, allocations: 386.6 kB / 1.389 GB, free: 2.016 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.115e-05/0.5131, allocations: 37 kB / 1.389 GB, free: 1.977 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.5132, allocations: 67.89 kB / 1.389 GB, free: 1.91 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009458/0.5142, allocations: 499 kB / 1.389 GB, free: 1.406 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.5142, allocations: 0 / 1.389 GB, free: 1.406 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.661e-05/0.5143, allocations: 23.94 kB / 1.389 GB, free: 1.383 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.496e-05/0.5143, allocations: 12 kB / 1.389 GB, free: 1.371 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007442/0.5151, allocations: 363.8 kB / 1.389 GB, free: 1.016 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002685/0.5178, allocations: 1.617 MB / 1.391 GB, free: 15.34 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.5189, allocations: 0.8801 MB / 1.392 GB, free: 14.34 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 5.239e-05/0.519, allocations: 15.98 kB / 1.392 GB, free: 14.33 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005159/0.5195, allocations: 256.8 kB / 1.392 GB, free: 14.07 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=49): time 1.843e-06/0.5195, allocations: 0 / 1.392 GB, free: 14.07 MB / 0.9011 GB Notification: Performance of matching and sorting (n=49): time 0.001065/0.5206, allocations: 0.5532 MB / 1.393 GB, free: 13.51 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.865e-05/0.5207, allocations: 111.2 kB / 1.393 GB, free: 13.38 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004061/0.5211, allocations: 352.9 kB / 1.393 GB, free: 13.02 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 5.659e-05/0.5211, allocations: 45.58 kB / 1.393 GB, free: 12.97 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001982/0.5213, allocations: 245.2 kB / 1.393 GB, free: 12.73 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.5215, allocations: 161.7 kB / 1.394 GB, free: 12.57 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.799e-05/0.5215, allocations: 12 kB / 1.394 GB, free: 12.56 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001732/0.5217, allocations: 354.8 kB / 1.394 GB, free: 12.2 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003975/0.5221, allocations: 181 kB / 1.394 GB, free: 12.03 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004563/0.5226, allocations: 274.5 kB / 1.394 GB, free: 11.73 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004355/0.523, allocations: 230.5 kB / 1.395 GB, free: 11.5 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.523, allocations: 0 / 1.395 GB, free: 11.5 MB / 0.9011 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001039/0.5241, allocations: 0.5753 MB / 1.395 GB, free: 10.91 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002378/0.5243, allocations: 0.5639 MB / 1.396 GB, free: 10.3 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.5243, allocations: 0 / 1.396 GB, free: 10.3 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.5244, allocations: 4 kB / 1.396 GB, free: 10.3 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004124/0.5248, allocations: 95.89 kB / 1.396 GB, free: 10.2 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.5248, allocations: 4 kB / 1.396 GB, free: 10.2 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003959/0.5252, allocations: 103.5 kB / 1.396 GB, free: 10.1 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.643e-05/0.5253, allocations: 27.92 kB / 1.396 GB, free: 10.07 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 8.716e-06/0.5253, allocations: 4 kB / 1.396 GB, free: 10.07 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007668/0.526, allocations: 456 kB / 1.396 GB, free: 9.613 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.5261, allocations: 3.984 kB / 1.396 GB, free: 9.609 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.593e-06/0.5261, allocations: 7.953 kB / 1.396 GB, free: 9.602 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003228/0.5264, allocations: 84.06 kB / 1.396 GB, free: 9.52 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.5264, allocations: 4 kB / 1.396 GB, free: 9.516 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003349/0.5268, allocations: 83.55 kB / 1.397 GB, free: 9.434 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.377e-05/0.5268, allocations: 16 kB / 1.397 GB, free: 9.418 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition5,$whenCondition4,$whenCondition3,$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 (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 1 * 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.0002439/0.527, allocations: 261 kB / 1.397 GB, free: 9.152 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.954e-05/0.5271, allocations: 43.44 kB / 1.397 GB, free: 9.109 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007911/0.5279, allocations: 461.4 kB / 1.397 GB, free: 8.656 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.495e-06/0.5279, allocations: 7.953 kB / 1.397 GB, free: 8.648 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.5279, allocations: 0 / 1.397 GB, free: 8.648 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.528, allocations: 3.984 kB / 1.397 GB, free: 8.645 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001594/0.5296, allocations: 1.164 MB / 1.398 GB, free: 7.402 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.5296, allocations: 0 / 1.398 GB, free: 7.402 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003645/0.5299, allocations: 91.83 kB / 1.399 GB, free: 7.312 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.53, allocations: 4 kB / 1.399 GB, free: 7.309 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.137e-05/0.53, allocations: 20.17 kB / 1.399 GB, free: 7.289 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.53, allocations: 4 kB / 1.399 GB, free: 7.285 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.53, allocations: 0 / 1.399 GB, free: 7.285 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001209/0.5312, allocations: 0.8298 MB / 1.399 GB, free: 6.375 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.5313, allocations: 132.5 kB / 1.399 GB, free: 6.227 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.165e-05/0.5314, allocations: 16 kB / 1.399 GB, free: 6.211 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002269/0.5316, allocations: 35.92 kB / 1.4 GB, free: 6.176 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.499e-05/0.5317, allocations: 31.95 kB / 1.4 GB, free: 6.145 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.981e-05/0.5317, allocations: 24.06 kB / 1.4 GB, free: 6.121 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0003083/0.5321, allocations: 279.2 kB / 1.4 GB, free: 5.848 MB / 0.9011 GB Notification: Performance of sort global known variables: time 3.21e-07/0.5321, allocations: 4 kB / 1.4 GB, free: 5.844 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0005821/0.5327, allocations: 203.3 kB / 1.4 GB, free: 5.645 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: 6 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001611/0.5343, allocations: 1.815 MB / 1.402 GB, free: 3.762 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001292/0.5356, allocations: 0.7841 MB / 1.403 GB, free: 2.953 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.706e-06/0.5356, allocations: 0 / 1.403 GB, free: 2.953 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0003228/0.5359, allocations: 208.6 kB / 1.403 GB, free: 2.75 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000455/0.5364, allocations: 90.58 kB / 1.403 GB, free: 2.664 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002208/0.5386, allocations: 2.341 MB / 1.405 GB, free: 244 kB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5108/1.049, allocations: 0.8579 MB / 1.406 GB, free: 169.3 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0003843/1.05, allocations: 57.03 kB / 1.406 GB, free: 169.3 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002988/1.05, allocations: 191 kB / 1.406 GB, free: 169.3 MB / 0.9011 GB Notification: Performance of SimCode: time 1.493e-06/1.05, allocations: 0.6562 kB / 1.406 GB, free: 169.3 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02986/1.08, allocations: 9.596 MB / 1.416 GB, free: 168.8 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001553/1.08, allocations: 185.2 kB / 1.416 GB, free: 168.6 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.2/3.281, allocations: 0 / 1.416 GB, free: 168.6 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDScale_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDScale.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale_res.mat does not exist to compare? outputFormat=mat