Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.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.NumberOfRequests,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_NumberOfRequests",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.187/2.187, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001277/0.001277, allocations: 185 kB / 498.1 MB, free: 5.719 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.732/1.732, allocations: 223.2 MB / 0.7948 GB, free: 18.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.000988/0.0009879, allocations: 98.34 kB / 0.9346 GB, free: 7.117 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003908/0.0003909, allocations: 9.656 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3394, allocations: 142.4 MB / 1.223 GB, free: 89.47 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.261/0.6004, allocations: 150.2 MB / 1.37 GB, free: 3.086 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/0.6007, allocations: 71.97 kB / 1.37 GB, free: 3.016 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.005498/0.6062, allocations: 1.545 MB / 1.371 GB, free: 1.465 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.114e-06/0.6062, allocations: 4 kB / 1.371 GB, free: 1.461 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.548e-06/0.6063, allocations: 0 / 1.371 GB, free: 1.461 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007276/0.607, allocations: 450.5 kB / 1.372 GB, free: 0.9609 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/0.6071, allocations: 8.031 kB / 1.372 GB, free: 0.9531 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.965e-05/0.6071, allocations: 42.55 kB / 1.372 GB, free: 0.9023 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.775e-05/0.6072, allocations: 15.86 kB / 1.372 GB, free: 0.8867 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002581/0.6074, allocations: 190.9 kB / 1.372 GB, free: 0.6602 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.6075, allocations: 8 kB / 1.372 GB, free: 0.6523 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.758e-05/0.6075, allocations: 8 kB / 1.372 GB, free: 0.6445 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00035/0.6079, allocations: 117.8 kB / 1.372 GB, free: 0.5234 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.6079, allocations: 3.938 kB / 1.372 GB, free: 0.5195 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.926e-05/0.6079, allocations: 12 kB / 1.372 GB, free: 0.5078 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.6079, allocations: 0 / 1.372 GB, free: 0.5078 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003206/0.6082, allocations: 103.9 kB / 1.372 GB, free: 416 kB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006365/0.6089, allocations: 340.8 kB / 1.372 GB, free: 24 kB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003461/0.6093, allocations: 114.5 kB / 1.373 GB, free: 15.9 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.6093, allocations: 7.984 kB / 1.373 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003175/0.6096, allocations: 135.4 kB / 1.373 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=6): time 1.774e-06/0.6096, allocations: 0 / 1.373 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of matching and sorting (n=6): time 0.0007714/0.6104, allocations: 299.1 kB / 1.373 GB, free: 15.45 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.623e-05/0.6105, allocations: 89.09 kB / 1.373 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.6106, allocations: 113 kB / 1.373 GB, free: 15.22 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.6106, allocations: 29.7 kB / 1.373 GB, free: 15.19 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.736e-05/0.6107, allocations: 111.8 kB / 1.373 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.36e-05/0.6107, allocations: 15.81 kB / 1.373 GB, free: 15.06 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.987e-06/0.6108, allocations: 0 / 1.373 GB, free: 15.06 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.6109, allocations: 326.8 kB / 1.374 GB, free: 14.73 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002199/0.6111, allocations: 71.95 kB / 1.374 GB, free: 14.66 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.6113, allocations: 67.95 kB / 1.374 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002012/0.6115, allocations: 115.4 kB / 1.374 GB, free: 14.47 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.6116, allocations: 0 / 1.374 GB, free: 14.47 MB / 0.8855 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005392/0.6121, allocations: 272.9 kB / 1.374 GB, free: 14.18 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 6.077e-05/0.6122, allocations: 68.95 kB / 1.374 GB, free: 14.11 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.6122, allocations: 4 kB / 1.374 GB, free: 14.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.6122, allocations: 0 / 1.374 GB, free: 14.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.6123, allocations: 19.94 kB / 1.374 GB, free: 14.08 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.263e-06/0.6124, allocations: 0 / 1.374 GB, free: 14.08 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001637/0.6125, allocations: 31.97 kB / 1.374 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.32e-05/0.6126, allocations: 4 kB / 1.374 GB, free: 14.05 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,numReq.y,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * 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.0001386/0.6127, allocations: 155.5 kB / 1.374 GB, free: 13.88 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.191e-05/0.6127, allocations: 8 kB / 1.374 GB, free: 13.87 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.468e-05/0.6128, allocations: 12.31 kB / 1.374 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.6128, allocations: 4 kB / 1.374 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.6128, allocations: 7.953 kB / 1.374 GB, free: 13.85 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.6128, allocations: 0 / 1.374 GB, free: 13.85 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001724/0.613, allocations: 189.6 kB / 1.375 GB, free: 13.61 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.613, allocations: 0 / 1.375 GB, free: 13.61 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.423e-05/0.6131, allocations: 19.92 kB / 1.375 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.6131, allocations: 0 / 1.375 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.6131, allocations: 4 kB / 1.375 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.6131, allocations: 7.938 kB / 1.375 GB, free: 13.58 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.6131, allocations: 4.234 kB / 1.375 GB, free: 13.58 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005301/0.6137, allocations: 262.6 kB / 1.375 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.188e-05/0.6137, allocations: 89 kB / 1.375 GB, free: 13.19 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.801e-05/0.6138, allocations: 4 kB / 1.375 GB, free: 13.19 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001516/0.6139, allocations: 27.97 kB / 1.375 GB, free: 13.16 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.6141, allocations: 35.95 kB / 1.375 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.6141, allocations: 4 kB / 1.375 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.759e-05/0.6142, allocations: 97.52 kB / 1.375 GB, free: 13.03 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6142, allocations: 4 kB / 1.375 GB, free: 13.02 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.00022/0.6144, allocations: 35.89 kB / 1.375 GB, free: 12.99 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,numReq.y,pulse.T_start,pulse.count) * Number of discrete states: 2 (pulse.count,numReq.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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.0008858/0.6153, allocations: 0.8012 MB / 1.376 GB, free: 12.15 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0005467/0.6159, allocations: 282.8 kB / 1.376 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.6159, allocations: 3.938 kB / 1.376 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002615/0.6162, allocations: 139.4 kB / 1.376 GB, free: 11.7 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001755/0.6163, allocations: 12 kB / 1.376 GB, free: 11.69 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001555/0.6179, allocations: 0.7876 MB / 1.377 GB, free: 10.85 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003132/0.6182, allocations: 0.7014 MB / 1.378 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 5.664e-05/0.6183, allocations: 8.172 kB / 1.378 GB, free: 10.11 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.634e-05/0.6184, allocations: 23.42 kB / 1.378 GB, free: 10.09 MB / 0.8855 GB Notification: Performance of SimCode: time 1.062e-06/0.6184, allocations: 0 / 1.378 GB, free: 10.09 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01567/0.634, allocations: 2.48 MB / 1.38 GB, free: 7.742 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002178/0.6343, allocations: 183.8 kB / 1.38 GB, free: 7.504 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.741/2.375, allocations: 0 / 1.38 GB, free: 7.504 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat does not exist to compare? outputFormat=mat