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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 91.3 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 223.2 MB / 240 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.359/2.359, allocations: 390.4 MB / 0.6655 GB, free: 2.898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003559/0.0003559, allocations: 8 kB / 0.8149 GB, free: 14.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8022/0.8026, allocations: 142.3 MB / 0.9538 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.001672/0.8043, allocations: 1.18 MB / 0.955 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007375/0.8051, allocations: 438.2 kB / 0.9554 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.529e-05/0.8052, allocations: 0 / 0.9554 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.211e-05/0.8053, allocations: 1.469 kB / 0.9554 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.224e-05/0.8054, allocations: 9.062 kB / 0.9554 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002219/0.8056, allocations: 37.69 kB / 0.9555 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001447/0.8058, allocations: 78.95 kB / 0.9555 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.8059, allocations: 6.594 kB / 0.9555 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.806, allocations: 46.28 kB / 0.9556 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.733e-05/0.8061, allocations: 38.72 kB / 0.9556 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.731e-05/0.8061, allocations: 3.406 kB / 0.9556 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.75e-05/0.8062, allocations: 12 kB / 0.9556 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.286e-05/0.8062, allocations: 10.73 kB / 0.9556 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.318e-05/0.8063, allocations: 38.2 kB / 0.9557 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.142e-05/0.8064, allocations: 56.19 kB / 0.9557 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.8064, allocations: 0 / 0.9557 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.154e-06/0.8064, allocations: 0.875 kB / 0.9557 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.8064, allocations: 0 / 0.9557 GB, free: 6.652 MB / 0.7169 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.0005782/0.807, allocations: 441.2 kB / 0.9562 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.807, allocations: 8.344 kB / 0.9562 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.477e-05/0.8071, allocations: 42.14 kB / 0.9562 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.283e-05/0.8071, allocations: 12.92 kB / 0.9562 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001655/0.8073, allocations: 187.9 kB / 0.9564 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.8073, allocations: 3.438 kB / 0.9564 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.323e-05/0.8073, allocations: 13.33 kB / 0.9564 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003069/0.8077, allocations: 122.4 kB / 0.9565 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.8077, allocations: 3.938 kB / 0.9565 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.638e-05/0.8077, allocations: 6.188 kB / 0.9565 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.8077, allocations: 1 kB / 0.9565 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002935/0.808, allocations: 107.8 kB / 0.9566 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004736/0.8085, allocations: 331.8 kB / 0.957 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003098/0.8088, allocations: 121.9 kB / 0.9571 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/0.809, allocations: 86.28 kB / 0.9572 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.464e-05/0.809, allocations: 80 / 0.9572 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002967/0.8093, allocations: 134.7 kB / 0.9573 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.713e-06/0.8093, allocations: 0 / 0.9573 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0006536/0.81, allocations: 298 kB / 0.9576 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/0.8101, allocations: 93.44 kB / 0.9577 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.44e-05/0.8101, allocations: 131.1 kB / 0.9578 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.8102, allocations: 28.52 kB / 0.9578 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.059e-05/0.8102, allocations: 95.08 kB / 0.9579 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.051e-05/0.8102, allocations: 20.14 kB / 0.9579 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.04e-05/0.8103, allocations: 1.125 kB / 0.9579 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.661e-05/0.8103, allocations: 317.4 kB / 0.9582 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001793/0.8105, allocations: 77 kB / 0.9583 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/0.8107, allocations: 72.95 kB / 0.9584 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001617/0.8108, allocations: 109.6 kB / 0.9585 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.8108, allocations: 0 / 0.9585 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004372/0.8113, allocations: 279.3 kB / 0.9587 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.056e-05/0.8113, allocations: 68.84 kB / 0.9588 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.8114, allocations: 1.375 kB / 0.9588 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.8114, allocations: 3.938 kB / 0.9588 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001141/0.8115, allocations: 21.73 kB / 0.9588 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.8115, allocations: 96 / 0.9588 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001458/0.8117, allocations: 40.47 kB / 0.9589 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.734e-05/0.8117, allocations: 2.75 kB / 0.9589 GB, free: 4.016 MB / 0.7169 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 9.305e-05/0.8118, allocations: 150.5 kB / 0.959 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.013e-05/0.8118, allocations: 13.39 kB / 0.959 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.97e-05/0.8118, allocations: 13.7 kB / 0.959 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.8118, allocations: 1.375 kB / 0.959 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.8119, allocations: 0 / 0.959 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.8119, allocations: 5.312 kB / 0.959 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001069/0.812, allocations: 192.7 kB / 0.9592 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.812, allocations: 256 / 0.9592 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.449e-05/0.8121, allocations: 14.98 kB / 0.9592 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.698e-06/0.8121, allocations: 5.375 kB / 0.9593 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.8121, allocations: 6.75 kB / 0.9593 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.8121, allocations: 3.953 kB / 0.9593 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.8121, allocations: 0 / 0.9593 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004313/0.8126, allocations: 259.6 kB / 0.9595 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.555e-05/0.8126, allocations: 87.31 kB / 0.9596 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.178e-05/0.8126, allocations: 2.406 kB / 0.9596 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001345/0.8128, allocations: 26.3 kB / 0.9596 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.8129, allocations: 46.64 kB / 0.9597 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.8129, allocations: 3.969 kB / 0.9597 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.942e-05/0.813, allocations: 100.4 kB / 0.9598 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.52e-07/0.813, allocations: 0 / 0.9598 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002182/0.8132, allocations: 25.41 kB / 0.9598 GB, free: 3.203 MB / 0.7169 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.0006337/0.8139, allocations: 0.7948 MB / 0.9606 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000446/0.8143, allocations: 277.6 kB / 0.9608 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.8143, allocations: 4 kB / 0.9608 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002265/0.8146, allocations: 152.5 kB / 0.961 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002125/0.8148, allocations: 20.19 kB / 0.961 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.8161, allocations: 0.7948 MB / 0.9618 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001091/0.8162, allocations: 0.6907 MB / 0.9624 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.666e-05/0.8163, allocations: 13.89 kB / 0.9625 GB, free: 0.9141 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.947e-05/0.8164, allocations: 21.64 kB / 0.9625 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.8164, allocations: 0 / 0.9625 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01331/0.8297, allocations: 2.509 MB / 0.9649 GB, free: 15.69 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001842/0.8299, allocations: 188.8 kB / 0.9651 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.734/2.564, allocations: 0 / 0.9651 GB, free: 15.45 MB / 0.7325 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