Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.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.Utilities.Validation.PIDWithInputGains,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.43/2.43, allocations: 393.5 MB / 408.4 MB, free: 10.99 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.001328/0.001328, allocations: 190.9 kB / 0.4902 GB, free: 2.25 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.819/1.819, allocations: 223.1 MB / 0.7992 GB, free: 14.77 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.001058/0.001058, allocations: 98.3 kB / 0.9396 GB, free: 1.93 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003561/0.0003561, allocations: 7.844 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.299, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1992/0.4982, allocations: 153.8 MB / 1.379 GB, free: 15.72 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002525/0.4985, allocations: 67.97 kB / 1.379 GB, free: 15.65 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.04919/0.5477, allocations: 16.82 MB / 1.396 GB, free: 14.8 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.264e-06/0.5478, allocations: 0 / 1.396 GB, free: 14.8 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 6.266e-05/0.5479, allocations: 24 kB / 1.396 GB, free: 14.78 MB / 0.9011 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.002803/0.5507, allocations: 1.205 MB / 1.397 GB, free: 13.49 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 6.16e-05/0.5508, allocations: 8.562 kB / 1.397 GB, free: 13.48 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002638/0.551, allocations: 118.5 kB / 1.397 GB, free: 13.36 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004195/0.5515, allocations: 106.8 kB / 1.397 GB, free: 13.25 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001433/0.5529, allocations: 0.5788 MB / 1.398 GB, free: 12.63 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.934e-05/0.5531, allocations: 62 kB / 1.398 GB, free: 12.57 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000217/0.5533, allocations: 91.98 kB / 1.398 GB, free: 12.48 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001253/0.5545, allocations: 0.6684 MB / 1.399 GB, free: 11.8 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/0.5546, allocations: 0 / 1.399 GB, free: 11.8 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.75e-05/0.5546, allocations: 24 kB / 1.399 GB, free: 11.77 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.969e-05/0.5547, allocations: 27.98 kB / 1.399 GB, free: 11.75 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009688/0.5556, allocations: 484.9 kB / 1.399 GB, free: 11.27 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003923/0.5596, allocations: 2.25 MB / 1.401 GB, free: 8.969 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.5607, allocations: 0.5575 MB / 1.402 GB, free: 8.398 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 4.07e-05/0.5607, allocations: 8.562 kB / 1.402 GB, free: 8.391 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006633/0.5614, allocations: 378.8 kB / 1.402 GB, free: 8.008 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=68): time 2.023e-06/0.5614, allocations: 0 / 1.402 GB, free: 8.008 MB / 0.9011 GB Notification: Performance of matching and sorting (n=68): time 0.001479/0.5629, allocations: 0.7715 MB / 1.403 GB, free: 7.23 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.549e-05/0.563, allocations: 119.3 kB / 1.403 GB, free: 7.09 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006243/0.5636, allocations: 482 kB / 1.404 GB, free: 6.609 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.0001254/0.5638, allocations: 57.69 kB / 1.404 GB, free: 6.547 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002842/0.5641, allocations: 336.5 kB / 1.404 GB, free: 6.211 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001722/0.5642, allocations: 213 kB / 1.404 GB, free: 6 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.256e-05/0.5643, allocations: 20.11 kB / 1.404 GB, free: 5.98 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.000161/0.5645, allocations: 378.7 kB / 1.405 GB, free: 5.602 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000707/0.5652, allocations: 345.5 kB / 1.405 GB, free: 5.258 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007927/0.566, allocations: 492.4 kB / 1.405 GB, free: 4.727 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007798/0.5668, allocations: 487.5 kB / 1.406 GB, free: 4.215 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.5668, allocations: 8 kB / 1.406 GB, free: 4.207 MB / 0.9011 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001955/0.5688, allocations: 1.098 MB / 1.407 GB, free: 3.074 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004917/0.5693, allocations: 1.206 MB / 1.408 GB, free: 1.754 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.5693, allocations: 7.938 kB / 1.408 GB, free: 1.746 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.363e-05/0.5693, allocations: 8 kB / 1.408 GB, free: 1.738 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004811/0.5698, allocations: 111.8 kB / 1.408 GB, free: 1.629 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.595e-05/0.5698, allocations: 7.953 kB / 1.408 GB, free: 1.621 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001206/0.571, allocations: 267.2 kB / 1.409 GB, free: 1.359 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.5712, allocations: 47.97 kB / 1.409 GB, free: 1.312 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.5712, allocations: 4 kB / 1.409 GB, free: 1.309 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001711/0.5729, allocations: 1.019 MB / 1.41 GB, free: 268 kB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.5729, allocations: 4 kB / 1.41 GB, free: 264 kB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.245e-06/0.573, allocations: 4 kB / 1.41 GB, free: 260 kB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003826/0.5733, allocations: 99.78 kB / 1.41 GB, free: 160 kB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.5734, allocations: 7.984 kB / 1.41 GB, free: 152 kB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001132/0.5745, allocations: 251.6 kB / 1.41 GB, free: 15.9 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9e-05/0.5746, allocations: 43.97 kB / 1.41 GB, free: 15.86 MB / 0.9167 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 () * Number of clocked 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.0005512/0.5752, allocations: 303.3 kB / 1.41 GB, free: 15.55 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.5753, allocations: 67.25 kB / 1.41 GB, free: 15.49 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001127/0.5764, allocations: 0.6148 MB / 1.411 GB, free: 14.86 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.247e-06/0.5764, allocations: 8 kB / 1.411 GB, free: 14.86 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.5764, allocations: 0 / 1.411 GB, free: 14.86 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.5765, allocations: 3.984 kB / 1.411 GB, free: 14.85 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002208/0.5787, allocations: 1.44 MB / 1.412 GB, free: 13.34 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.5787, allocations: 0 / 1.412 GB, free: 13.34 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004208/0.5791, allocations: 99.98 kB / 1.412 GB, free: 13.25 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.969e-06/0.5791, allocations: 4 kB / 1.412 GB, free: 13.24 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.386e-05/0.5792, allocations: 19.98 kB / 1.412 GB, free: 13.22 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.999e-06/0.5792, allocations: 4 kB / 1.412 GB, free: 13.22 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.5792, allocations: 0 / 1.412 GB, free: 13.22 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001481/0.5807, allocations: 1.012 MB / 1.413 GB, free: 12.16 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001629/0.5809, allocations: 156 kB / 1.414 GB, free: 11.99 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.215e-05/0.581, allocations: 27.94 kB / 1.414 GB, free: 11.96 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003761/0.5814, allocations: 47.97 kB / 1.414 GB, free: 11.92 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.5815, allocations: 56.47 kB / 1.414 GB, free: 11.86 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.5815, allocations: 23.98 kB / 1.414 GB, free: 11.84 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0004533/0.582, allocations: 366.9 kB / 1.414 GB, free: 11.48 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.4e-07/0.582, allocations: 0 / 1.414 GB, free: 11.48 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0009737/0.583, allocations: 351 kB / 1.414 GB, free: 11.14 MB / 0.9167 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) * Number of clocked states: 0 () * 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.001905/0.5849, allocations: 1.807 MB / 1.416 GB, free: 9.285 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.00256/0.5875, allocations: 1.838 MB / 1.418 GB, free: 7.324 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.5875, allocations: 0 / 1.418 GB, free: 7.324 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005162/0.588, allocations: 311.2 kB / 1.418 GB, free: 7.023 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007789/0.5888, allocations: 142.2 kB / 1.418 GB, free: 6.883 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003869/0.5927, allocations: 3.604 MB / 1.422 GB, free: 3.164 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000601/0.5933, allocations: 0.9428 MB / 1.423 GB, free: 2.195 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.000385/0.5937, allocations: 80.97 kB / 1.423 GB, free: 2.117 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003893/0.5941, allocations: 291.3 kB / 1.423 GB, free: 1.832 MB / 0.9167 GB Notification: Performance of SimCode: time 4.1e-07/0.5941, allocations: 0 / 1.423 GB, free: 1.832 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8138/1.408, allocations: 17.82 MB / 1.441 GB, free: 183.2 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002193/1.408, allocations: 206.8 kB / 1.441 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.687/4.095, allocations: 0 / 1.441 GB, free: 182.9 MB / 0.9167 GB (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains.fmu > Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains_res.mat does not exist to compare? outputFormat=mat