Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.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.Continuous.Examples.LimPID,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_LimPID",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.126/2.126, allocations: 390.3 MB / 405.3 MB, free: 13.46 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.001017/0.001017, allocations: 173.1 kB / 498.1 MB, free: 5.738 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.453/1.453, allocations: 223.2 MB / 0.7948 GB, free: 17.94 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.0009349/0.0009348, allocations: 107.8 kB / 0.9346 GB, free: 6.234 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003896/0.0003895, allocations: 9.406 kB / 1.084 GB, free: 221.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3416/0.342, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2132/0.5553, allocations: 157.2 MB / 1.376 GB, free: 4.777 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002976/0.5557, allocations: 83.95 kB / 1.377 GB, free: 4.695 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.04606/0.6017, allocations: 16.93 MB / 1.393 GB, free: 3.715 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.144e-06/0.6018, allocations: 4 kB / 1.393 GB, free: 3.711 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.094e-05/0.6019, allocations: 20 kB / 1.393 GB, free: 3.691 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001973/0.6038, allocations: 1.063 MB / 1.394 GB, free: 2.566 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.6039, allocations: 8.031 kB / 1.394 GB, free: 2.559 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001278/0.604, allocations: 94.52 kB / 1.394 GB, free: 2.457 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001534/0.6042, allocations: 90.88 kB / 1.394 GB, free: 2.367 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009577/0.6052, allocations: 0.5901 MB / 1.395 GB, free: 1.734 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001211/0.6053, allocations: 104.4 kB / 1.395 GB, free: 1.621 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.43e-05/0.6054, allocations: 52 kB / 1.395 GB, free: 1.57 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/0.6066, allocations: 0.6606 MB / 1.396 GB, free: 0.8633 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.6066, allocations: 0 / 1.396 GB, free: 0.8633 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.885e-05/0.6067, allocations: 24 kB / 1.396 GB, free: 0.8398 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.469e-05/0.6067, allocations: 15.98 kB / 1.396 GB, free: 0.8242 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.6077, allocations: 499.6 kB / 1.396 GB, free: 344 kB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002925/0.6106, allocations: 2.215 MB / 1.398 GB, free: 14.04 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001315/0.612, allocations: 0.5914 MB / 1.399 GB, free: 13.43 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 4.269e-05/0.612, allocations: 9.094 kB / 1.399 GB, free: 13.42 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007107/0.6127, allocations: 322.1 kB / 1.399 GB, free: 13.09 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=45): time 1.823e-06/0.6127, allocations: 0 / 1.399 GB, free: 13.09 MB / 0.9011 GB Notification: Performance of matching and sorting (n=45): time 0.001577/0.6143, allocations: 0.7153 MB / 1.4 GB, free: 12.37 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.6145, allocations: 195.6 kB / 1.4 GB, free: 12.14 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006282/0.6151, allocations: 0.5388 MB / 1.401 GB, free: 11.59 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 5.202e-05/0.6152, allocations: 41.7 kB / 1.401 GB, free: 11.55 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002709/0.6154, allocations: 360.9 kB / 1.401 GB, free: 11.19 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001275/0.6156, allocations: 157.7 kB / 1.401 GB, free: 11.04 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.183e-05/0.6156, allocations: 12 kB / 1.401 GB, free: 11.02 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.6157, allocations: 325.9 kB / 1.402 GB, free: 10.7 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000453/0.6162, allocations: 213 kB / 1.402 GB, free: 10.49 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005337/0.6167, allocations: 339.7 kB / 1.402 GB, free: 10.11 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005025/0.6172, allocations: 258.4 kB / 1.402 GB, free: 9.852 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.6173, allocations: 3.938 kB / 1.402 GB, free: 9.848 MB / 0.9011 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001252/0.6185, allocations: 0.6687 MB / 1.403 GB, free: 9.168 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004438/0.619, allocations: 0.9906 MB / 1.404 GB, free: 8.094 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.619, allocations: 4 kB / 1.404 GB, free: 8.09 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.619, allocations: 4 kB / 1.404 GB, free: 8.086 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005113/0.6195, allocations: 123.8 kB / 1.404 GB, free: 7.965 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.6196, allocations: 7.984 kB / 1.404 GB, free: 7.957 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004824/0.62, allocations: 79.5 kB / 1.404 GB, free: 7.879 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.302e-05/0.6201, allocations: 27.94 kB / 1.404 GB, free: 7.852 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 8.075e-06/0.6201, allocations: 4 kB / 1.404 GB, free: 7.848 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001041/0.6212, allocations: 0.5467 MB / 1.405 GB, free: 7.293 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.116e-06/0.6212, allocations: 4 kB / 1.405 GB, free: 7.289 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.191e-06/0.6212, allocations: 4 kB / 1.405 GB, free: 7.285 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004622/0.6217, allocations: 120.1 kB / 1.405 GB, free: 7.168 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.6217, allocations: 8 kB / 1.405 GB, free: 7.16 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004559/0.6221, allocations: 67.56 kB / 1.405 GB, free: 7.094 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.123e-05/0.6222, allocations: 24 kB / 1.405 GB, free: 7.07 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0003172/0.6225, allocations: 277.8 kB / 1.405 GB, free: 6.789 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.6226, allocations: 75.02 kB / 1.405 GB, free: 6.715 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001488/0.6228, allocations: 75.22 kB / 1.405 GB, free: 6.633 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.6228, allocations: 4 kB / 1.405 GB, free: 6.629 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/0.6228, allocations: 0 / 1.405 GB, free: 6.629 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.6228, allocations: 7.984 kB / 1.405 GB, free: 6.621 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007176/0.6235, allocations: 0.6452 MB / 1.406 GB, free: 5.926 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.6236, allocations: 0 / 1.406 GB, free: 5.926 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004881/0.6241, allocations: 107.8 kB / 1.406 GB, free: 5.82 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.6241, allocations: 3.953 kB / 1.406 GB, free: 5.816 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.578e-05/0.6241, allocations: 12 kB / 1.406 GB, free: 5.805 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.6241, allocations: 4.062 kB / 1.406 GB, free: 5.801 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.6241, allocations: 0 / 1.406 GB, free: 5.801 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001571/0.6257, allocations: 0.8345 MB / 1.407 GB, free: 4.949 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002802/0.626, allocations: 196.1 kB / 1.407 GB, free: 4.738 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.436e-05/0.6261, allocations: 19.94 kB / 1.407 GB, free: 4.719 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005067/0.6266, allocations: 59.95 kB / 1.407 GB, free: 4.66 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.538e-05/0.6267, allocations: 31.95 kB / 1.407 GB, free: 4.629 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.923e-05/0.6267, allocations: 15.98 kB / 1.407 GB, free: 4.613 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.000492/0.6272, allocations: 435 kB / 1.408 GB, free: 4.195 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6273, allocations: 4 kB / 1.408 GB, free: 4.191 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0006344/0.6279, allocations: 235.3 kB / 1.408 GB, free: 3.961 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.001899/0.6298, allocations: 1.397 MB / 1.409 GB, free: 2.535 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001677/0.6315, allocations: 0.8869 MB / 1.41 GB, free: 1.621 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.6315, allocations: 0 / 1.41 GB, free: 1.621 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.000485/0.632, allocations: 255.9 kB / 1.41 GB, free: 1.371 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000808/0.6328, allocations: 169.3 kB / 1.411 GB, free: 1.207 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003312/0.6361, allocations: 3.319 MB / 1.414 GB, free: 13.79 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000446/0.6366, allocations: 0.9338 MB / 1.415 GB, free: 12.82 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0004321/0.637, allocations: 93.27 kB / 1.415 GB, free: 12.73 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003579/0.6374, allocations: 263.3 kB / 1.415 GB, free: 12.48 MB / 0.9167 GB Notification: Performance of SimCode: time 5.81e-07/0.6374, allocations: 0 / 1.415 GB, free: 12.48 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5973/1.235, allocations: 13.64 MB / 1.428 GB, free: 190.1 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001534/1.235, allocations: 175 kB / 1.428 GB, free: 189.8 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.718/3.953, allocations: 0 / 1.428 GB, free: 189.8 MB / 0.9167 GB (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.mat does not exist to compare? outputFormat=mat