Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8341/0.8341, allocations: 143.3 MB / 158.3 MB, free: 5.629 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001237/0.001238, allocations: 185 kB / 191.5 MB, free: 5.652 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 223.2 MB / 447.7 MB, free: 6.559 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009323/0.0009323, allocations: 92.33 kB / 0.5187 GB, free: 2.91 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001694/0.001694, allocations: 262.9 kB / 0.6005 GB, free: 48.99 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000438/0.0004382, allocations: 12 kB / 0.6929 GB, free: 2.238 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3581/0.3586, allocations: 82.78 MB / 0.7738 GB, free: 26.11 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1442/0.5028, allocations: 109.6 MB / 0.8808 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/0.5031, allocations: 75.97 kB / 0.8809 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.005252/0.5084, allocations: 1.558 MB / 0.8824 GB, free: 10.76 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.984e-06/0.5084, allocations: 4 kB / 0.8824 GB, free: 10.76 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 9.578e-06/0.5084, allocations: 0 / 0.8824 GB, free: 10.76 MB / 0.5417 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.0006731/0.5091, allocations: 446.5 kB / 0.8828 GB, free: 10.26 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.5092, allocations: 8.031 kB / 0.8828 GB, free: 10.25 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.978e-05/0.5092, allocations: 38.55 kB / 0.8828 GB, free: 10.21 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.548e-05/0.5093, allocations: 11.91 kB / 0.8829 GB, free: 10.2 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002557/0.5095, allocations: 202.2 kB / 0.883 GB, free: 9.961 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.556e-05/0.5096, allocations: 7.984 kB / 0.8831 GB, free: 9.953 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.897e-05/0.5096, allocations: 4 kB / 0.8831 GB, free: 9.949 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000351/0.5099, allocations: 121.6 kB / 0.8832 GB, free: 9.824 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.51, allocations: 0 / 0.8832 GB, free: 9.824 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/0.51, allocations: 4 kB / 0.8832 GB, free: 9.82 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.51, allocations: 4 kB / 0.8832 GB, free: 9.816 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003133/0.5103, allocations: 99.92 kB / 0.8833 GB, free: 9.719 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006622/0.511, allocations: 352.5 kB / 0.8836 GB, free: 9.324 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003397/0.5113, allocations: 122.5 kB / 0.8837 GB, free: 9.195 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.5114, allocations: 0 / 0.8837 GB, free: 9.195 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000336/0.5117, allocations: 131.4 kB / 0.8839 GB, free: 9.055 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=6): time 1.413e-06/0.5117, allocations: 4 kB / 0.8839 GB, free: 9.051 MB / 0.5417 GB Notification: Performance of matching and sorting (n=6): time 0.0007823/0.5125, allocations: 303.1 kB / 0.8842 GB, free: 8.742 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.359e-05/0.5126, allocations: 85.11 kB / 0.8842 GB, free: 8.641 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.928e-05/0.5127, allocations: 115.4 kB / 0.8843 GB, free: 8.523 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.56e-05/0.5127, allocations: 29.7 kB / 0.8844 GB, free: 8.488 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.003e-05/0.5128, allocations: 100 kB / 0.8845 GB, free: 8.387 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.3e-05/0.5129, allocations: 15.88 kB / 0.8845 GB, free: 8.371 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.061e-05/0.5129, allocations: 4 kB / 0.8845 GB, free: 8.367 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001207/0.513, allocations: 330.8 kB / 0.8848 GB, free: 8.035 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002013/0.5132, allocations: 67.95 kB / 0.8849 GB, free: 7.969 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.5134, allocations: 71.95 kB / 0.8849 GB, free: 7.898 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001966/0.5136, allocations: 119.3 kB / 0.885 GB, free: 7.77 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.5136, allocations: 0 / 0.885 GB, free: 7.77 MB / 0.5417 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005113/0.5141, allocations: 273 kB / 0.8853 GB, free: 7.484 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 5.396e-05/0.5142, allocations: 59.41 kB / 0.8854 GB, free: 7.414 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.9e-06/0.5142, allocations: 0 / 0.8854 GB, free: 7.414 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.5142, allocations: 0 / 0.8854 GB, free: 7.414 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001318/0.5144, allocations: 23.86 kB / 0.8854 GB, free: 7.391 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.75e-06/0.5144, allocations: 0 / 0.8854 GB, free: 7.391 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001739/0.5145, allocations: 43.81 kB / 0.8854 GB, free: 7.348 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.344e-05/0.5146, allocations: 4 kB / 0.8854 GB, free: 7.344 MB / 0.5417 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.0001243/0.5147, allocations: 162.2 kB / 0.8856 GB, free: 7.172 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.975e-05/0.5147, allocations: 7.906 kB / 0.8856 GB, free: 7.164 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.991e-05/0.5148, allocations: 12.38 kB / 0.8856 GB, free: 7.152 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.634e-06/0.5148, allocations: 0 / 0.8856 GB, free: 7.152 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.5148, allocations: 4 kB / 0.8856 GB, free: 7.148 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.5148, allocations: 0 / 0.8856 GB, free: 7.148 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001539/0.515, allocations: 193.7 kB / 0.8858 GB, free: 6.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.515, allocations: 3.938 kB / 0.8858 GB, free: 6.906 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.198e-05/0.5151, allocations: 15.98 kB / 0.8858 GB, free: 6.891 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.5151, allocations: 0 / 0.8858 GB, free: 6.891 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.5151, allocations: 7.984 kB / 0.8858 GB, free: 6.883 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.5151, allocations: 0 / 0.8858 GB, free: 6.883 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.5151, allocations: 0 / 0.8858 GB, free: 6.883 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005305/0.5156, allocations: 266.5 kB / 0.8861 GB, free: 6.598 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.57e-05/0.5157, allocations: 81.02 kB / 0.8862 GB, free: 6.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.85e-05/0.5157, allocations: 12 kB / 0.8862 GB, free: 6.488 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.5159, allocations: 27.97 kB / 0.8862 GB, free: 6.461 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.5161, allocations: 35.95 kB / 0.8862 GB, free: 6.426 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.309e-05/0.5161, allocations: 320 / 0.8862 GB, free: 6.426 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 6.659e-05/0.5161, allocations: 99.27 kB / 0.8863 GB, free: 6.328 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5162, allocations: 0 / 0.8863 GB, free: 6.328 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002108/0.5164, allocations: 32 kB / 0.8864 GB, free: 6.297 MB / 0.5417 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.0007842/0.5172, allocations: 0.8034 MB / 0.8871 GB, free: 5.457 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005084/0.5177, allocations: 282.7 kB / 0.8874 GB, free: 5.156 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.5177, allocations: 0 / 0.8874 GB, free: 5.156 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000255/0.518, allocations: 139.4 kB / 0.8875 GB, free: 5.008 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001788/0.5181, allocations: 25.55 kB / 0.8876 GB, free: 4.984 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001525/0.5197, allocations: 0.783 MB / 0.8883 GB, free: 4.152 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002916/0.52, allocations: 0.7004 MB / 0.889 GB, free: 3.426 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 5.595e-05/0.52, allocations: 8.188 kB / 0.889 GB, free: 3.418 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.489e-05/0.5201, allocations: 23.42 kB / 0.889 GB, free: 3.395 MB / 0.5417 GB Notification: Performance of SimCode: time 5.61e-07/0.5201, allocations: 0 / 0.889 GB, free: 3.395 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01292/0.533, allocations: 2.499 MB / 0.8915 GB, free: 1.066 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001856/0.5333, allocations: 196 kB / 0.8917 GB, free: 0.8242 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.754/2.288, allocations: 0 / 0.8917 GB, free: 0.8242 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)