Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.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.CDL.Continuous.Validation.PID,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.PID,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PID",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.279/2.279, allocations: 390.3 MB / 405.3 MB, free: 13.42 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.00105/0.00105, allocations: 181.1 kB / 498.1 MB, free: 5.664 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.477/1.477, allocations: 223.2 MB / 0.7948 GB, free: 18.85 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.0008854/0.0008854, allocations: 110.1 kB / 0.9346 GB, free: 7.133 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003725/0.0003725, allocations: 11.34 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2567, allocations: 142.4 MB / 1.223 GB, free: 89.43 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1856/0.4424, allocations: 151.3 MB / 1.371 GB, free: 1.941 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002263/0.4426, allocations: 79.95 kB / 1.371 GB, free: 1.863 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0419/0.4846, allocations: 16.14 MB / 1.387 GB, free: 1.703 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.114e-06/0.4846, allocations: 0 / 1.387 GB, free: 1.703 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 5.937e-05/0.4847, allocations: 20 kB / 1.387 GB, free: 1.684 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: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.002594/0.4873, allocations: 1.246 MB / 1.388 GB, free: 384 kB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.4873, allocations: 12.03 kB / 1.388 GB, free: 372 kB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002529/0.4876, allocations: 131.4 kB / 1.388 GB, free: 232 kB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003021/0.4879, allocations: 126.5 kB / 1.388 GB, free: 104 kB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/0.4889, allocations: 0.5569 MB / 1.389 GB, free: 15.5 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.153e-05/0.489, allocations: 70 kB / 1.389 GB, free: 15.44 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001518/0.4892, allocations: 92 kB / 1.389 GB, free: 15.35 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001607/0.4908, allocations: 0.8752 MB / 1.39 GB, free: 14.45 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.16e-05/0.4908, allocations: 0 / 1.39 GB, free: 14.45 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.126e-05/0.4909, allocations: 40 kB / 1.39 GB, free: 14.41 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.057e-05/0.4909, allocations: 20 kB / 1.39 GB, free: 14.39 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001496/0.4924, allocations: 0.6831 MB / 1.39 GB, free: 13.71 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004284/0.4967, allocations: 2.781 MB / 1.393 GB, free: 10.85 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001707/0.4984, allocations: 0.7968 MB / 1.394 GB, free: 10.04 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 4.809e-05/0.4985, allocations: 16.55 kB / 1.394 GB, free: 10.02 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007724/0.4993, allocations: 388.1 kB / 1.394 GB, free: 9.629 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=75): time 2.555e-06/0.4993, allocations: 0 / 1.394 GB, free: 9.629 MB / 0.9011 GB Notification: Performance of matching and sorting (n=75): time 0.001995/0.5013, allocations: 0.9459 MB / 1.395 GB, free: 8.68 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000123/0.5014, allocations: 188.6 kB / 1.395 GB, free: 8.449 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009121/0.5024, allocations: 0.6172 MB / 1.396 GB, free: 7.828 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 9.726e-05/0.5025, allocations: 49.7 kB / 1.396 GB, free: 7.773 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003929/0.5029, allocations: 412.3 kB / 1.396 GB, free: 7.363 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.000232/0.5031, allocations: 244.5 kB / 1.397 GB, free: 7.121 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.365e-05/0.5032, allocations: 12 kB / 1.397 GB, free: 7.109 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001428/0.5033, allocations: 330 kB / 1.397 GB, free: 6.781 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006843/0.504, allocations: 305.8 kB / 1.397 GB, free: 6.48 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008022/0.5048, allocations: 464.1 kB / 1.398 GB, free: 5.98 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007488/0.5056, allocations: 365.8 kB / 1.398 GB, free: 5.621 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.5056, allocations: 3.953 kB / 1.398 GB, free: 5.617 MB / 0.9011 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001757/0.5074, allocations: 0.8945 MB / 1.399 GB, free: 4.711 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003007/0.5077, allocations: 0.5576 MB / 1.399 GB, free: 4.105 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.5077, allocations: 4 kB / 1.399 GB, free: 4.102 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.225e-05/0.5077, allocations: 8 kB / 1.399 GB, free: 4.094 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006868/0.5084, allocations: 167.9 kB / 1.4 GB, free: 3.93 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.776e-05/0.5084, allocations: 15.88 kB / 1.4 GB, free: 3.914 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007238/0.5092, allocations: 163.2 kB / 1.4 GB, free: 3.754 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.366e-05/0.5092, allocations: 27.98 kB / 1.4 GB, free: 3.727 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/0.5093, allocations: 4 kB / 1.4 GB, free: 3.723 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001149/0.5104, allocations: 0.6478 MB / 1.4 GB, free: 3.07 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.5104, allocations: 4 kB / 1.4 GB, free: 3.066 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.5105, allocations: 8.156 kB / 1.4 GB, free: 3.059 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000519/0.511, allocations: 139.7 kB / 1.401 GB, free: 2.922 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.511, allocations: 4 kB / 1.401 GB, free: 2.918 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005699/0.5116, allocations: 131.2 kB / 1.401 GB, free: 2.789 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.02e-05/0.5116, allocations: 24 kB / 1.401 GB, free: 2.766 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 (87): * Single equations (assignments): 86 * 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.0004273/0.5121, allocations: 304.9 kB / 1.401 GB, free: 2.457 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001563/0.5122, allocations: 82.97 kB / 1.401 GB, free: 2.375 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001405/0.5136, allocations: 0.7328 MB / 1.402 GB, free: 1.629 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.5137, allocations: 15.95 kB / 1.402 GB, free: 1.613 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.5137, allocations: 0 / 1.402 GB, free: 1.613 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.198e-06/0.5137, allocations: 3.984 kB / 1.402 GB, free: 1.609 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5668/1.08, allocations: 1.766 MB / 1.404 GB, free: 169 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/1.081, allocations: 5.094 kB / 1.404 GB, free: 169 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007143/1.081, allocations: 149 kB / 1.404 GB, free: 169 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.458e-05/1.081, allocations: 4.375 kB / 1.404 GB, free: 169 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.568e-05/1.081, allocations: 18.92 kB / 1.404 GB, free: 169 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.249e-05/1.081, allocations: 7.297 kB / 1.404 GB, free: 169 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.702e-06/1.081, allocations: 4.875 kB / 1.404 GB, free: 169 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002271/1.084, allocations: 1.309 MB / 1.405 GB, free: 168.6 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000187/1.084, allocations: 179.4 kB / 1.405 GB, free: 168.5 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.956e-05/1.084, allocations: 20.34 kB / 1.405 GB, free: 168.5 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004415/1.084, allocations: 61.5 kB / 1.405 GB, free: 168.5 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001235/1.085, allocations: 50.8 kB / 1.405 GB, free: 168.5 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.262e-05/1.085, allocations: 31.92 kB / 1.405 GB, free: 168.5 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0008281/1.085, allocations: 0.4908 MB / 1.406 GB, free: 168.4 MB / 0.9011 GB Notification: Performance of sort global known variables: time 4.21e-07/1.085, allocations: 0 / 1.406 GB, free: 168.4 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.001085/1.087, allocations: 319.8 kB / 1.406 GB, free: 168.4 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (limPID.I.y,limPID.D.x,limPI.I.y,limPD.D.x,noLimPID.I.y,noLimPID.D.x) * 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 (75): * Single equations (assignments): 74 * 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.002526/1.089, allocations: 2.521 MB / 1.409 GB, free: 166.9 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.002303/1.091, allocations: 1.177 MB / 1.41 GB, free: 166.7 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/1.091, allocations: 0.8438 kB / 1.41 GB, free: 166.7 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0006413/1.092, allocations: 347.9 kB / 1.41 GB, free: 166.7 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008989/1.093, allocations: 162 kB / 1.41 GB, free: 166.7 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003501/1.096, allocations: 3.382 MB / 1.414 GB, free: 164.4 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005766/1.097, allocations: 1.002 MB / 1.414 GB, free: 163.7 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0004827/1.098, allocations: 103 kB / 1.415 GB, free: 163.7 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004446/1.098, allocations: 356.3 kB / 1.415 GB, free: 163.7 MB / 0.9011 GB Notification: Performance of SimCode: time 1.062e-06/1.098, allocations: 0 / 1.415 GB, free: 163.7 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03761/1.136, allocations: 16.03 MB / 1.431 GB, free: 162.8 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001355/1.136, allocations: 181.5 kB / 1.431 GB, free: 162.5 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.368/3.504, allocations: 5.484 kB / 1.431 GB, free: 162.5 MB / 0.9011 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PID.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID_res.mat does not exist to compare? outputFormat=mat