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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001732/0.001732, allocations: 197.8 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002391/0.002391, allocations: 282.9 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9384/0.9384, allocations: 169.3 MB / 0.4982 GB, free: 13.97 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003066/0.003066, allocations: 92.58 kB / 0.5953 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1444/0.1475, allocations: 86.98 MB / 0.6803 GB, free: 0.625 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002602/0.1502, allocations: 1.471 MB / 0.6817 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007472/0.1509, allocations: 456.2 kB / 0.6821 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.385e-05/0.151, allocations: 1.25 kB / 0.6821 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.255e-05/0.1511, allocations: 3.938 kB / 0.6822 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.048e-05/0.1512, allocations: 20.48 kB / 0.6822 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001963/0.1514, allocations: 40.53 kB / 0.6822 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001525/0.1515, allocations: 102.4 kB / 0.6823 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.622e-05/0.1516, allocations: 20.44 kB / 0.6823 GB, free: 14.53 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001261/0.1518, allocations: 51.84 kB / 0.6824 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.317e-05/0.1519, allocations: 43.81 kB / 0.6824 GB, free: 14.43 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.754e-05/0.1519, allocations: 8 kB / 0.6824 GB, free: 14.43 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.026e-05/0.1519, allocations: 8 kB / 0.6824 GB, free: 14.42 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.275e-05/0.152, allocations: 15.92 kB / 0.6824 GB, free: 14.4 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.601e-05/0.1521, allocations: 35.86 kB / 0.6825 GB, free: 14.37 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001259/0.1522, allocations: 83.69 kB / 0.6826 GB, free: 14.29 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.1522, allocations: 0 / 0.6826 GB, free: 14.29 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1522, allocations: 0 / 0.6826 GB, free: 14.29 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.1522, allocations: 0 / 0.6826 GB, free: 14.29 MB / 494.1 MB 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.0006467/0.1529, allocations: 446.7 kB / 0.683 GB, free: 13.79 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.1529, allocations: 8.031 kB / 0.683 GB, free: 13.78 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.858e-05/0.153, allocations: 38.75 kB / 0.683 GB, free: 13.73 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.982e-05/0.153, allocations: 8.844 kB / 0.683 GB, free: 13.73 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001639/0.1532, allocations: 194.6 kB / 0.6832 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.1532, allocations: 4.375 kB / 0.6832 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.997e-05/0.1532, allocations: 12.38 kB / 0.6832 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003112/0.1535, allocations: 117.5 kB / 0.6834 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.632e-06/0.1535, allocations: 0 / 0.6834 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.766e-05/0.1536, allocations: 8 kB / 0.6834 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.1536, allocations: 0 / 0.6834 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003123/0.1539, allocations: 83.92 kB / 0.6834 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005164/0.1544, allocations: 344.5 kB / 0.6838 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000322/0.1548, allocations: 102.5 kB / 0.6839 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001912/0.155, allocations: 72.94 kB / 0.6839 GB, free: 12.7 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.232e-05/0.155, allocations: 0 / 0.6839 GB, free: 12.7 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003258/0.1553, allocations: 127.3 kB / 0.6841 GB, free: 12.57 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.513e-06/0.1553, allocations: 0 / 0.6841 GB, free: 12.57 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007352/0.1561, allocations: 275.2 kB / 0.6843 GB, free: 12.29 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.158e-05/0.1561, allocations: 85.11 kB / 0.6844 GB, free: 12.18 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.694e-05/0.1562, allocations: 131.8 kB / 0.6845 GB, free: 12.05 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/0.1563, allocations: 29.7 kB / 0.6846 GB, free: 12.01 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.241e-05/0.1563, allocations: 104 kB / 0.6847 GB, free: 11.91 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.227e-05/0.1563, allocations: 15.81 kB / 0.6847 GB, free: 11.89 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.932e-05/0.1564, allocations: 29.7 kB / 0.6847 GB, free: 11.86 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.99e-05/0.1565, allocations: 318.8 kB / 0.685 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001978/0.1567, allocations: 71.94 kB / 0.6851 GB, free: 11.46 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.1569, allocations: 71.83 kB / 0.6851 GB, free: 11.39 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003428/0.1573, allocations: 185.9 kB / 0.6853 GB, free: 11.19 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1573, allocations: 0 / 0.6853 GB, free: 11.19 MB / 494.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004989/0.1578, allocations: 256.8 kB / 0.6856 GB, free: 10.92 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.871e-05/0.1578, allocations: 67.41 kB / 0.6856 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.1578, allocations: 0 / 0.6856 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.1579, allocations: 3.984 kB / 0.6856 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.158, allocations: 19.97 kB / 0.6857 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.158, allocations: 0 / 0.6857 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001566/0.1582, allocations: 15.98 kB / 0.6857 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.1582, allocations: 12.19 kB / 0.6857 GB, free: 10.79 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,numReq.y,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001124/0.1583, allocations: 156.8 kB / 0.6858 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.253e-05/0.1583, allocations: 11.91 kB / 0.6858 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.959e-05/0.1584, allocations: 12.38 kB / 0.6858 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1584, allocations: 0 / 0.6858 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1584, allocations: 7.984 kB / 0.6859 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.1584, allocations: 0 / 0.6859 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001372/0.1586, allocations: 197.6 kB / 0.686 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.1586, allocations: 3.984 kB / 0.686 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.236e-05/0.1587, allocations: 11.98 kB / 0.6861 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.1587, allocations: 0 / 0.6861 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.55e-05/0.1587, allocations: 11.94 kB / 0.6861 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.1587, allocations: 3.938 kB / 0.6861 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1587, allocations: 0 / 0.6861 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004906/0.1592, allocations: 246.6 kB / 0.6863 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.486e-05/0.1592, allocations: 81.11 kB / 0.6864 GB, free: 9.957 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.861e-05/0.1593, allocations: 11.94 kB / 0.6864 GB, free: 9.945 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001508/0.1594, allocations: 23.97 kB / 0.6864 GB, free: 9.922 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.1596, allocations: 35.95 kB / 0.6865 GB, free: 9.887 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.1596, allocations: 8 kB / 0.6865 GB, free: 9.879 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.575e-05/0.1596, allocations: 99.2 kB / 0.6866 GB, free: 9.781 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1597, allocations: 0 / 0.6866 GB, free: 9.781 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002182/0.1599, allocations: 24 kB / 0.6866 GB, free: 9.758 MB / 494.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000752/0.1606, allocations: 0.7819 MB / 0.6873 GB, free: 8.941 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004952/0.1611, allocations: 270.7 kB / 0.6876 GB, free: 8.652 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1612, allocations: 3.938 kB / 0.6876 GB, free: 8.648 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000246/0.1614, allocations: 139.4 kB / 0.6877 GB, free: 8.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000205/0.1616, allocations: 12.3 kB / 0.6878 GB, free: 8.488 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002206/0.1638, allocations: 1.735 MB / 0.6894 GB, free: 6.66 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002154/0.1641, allocations: 0.6924 MB / 0.6901 GB, free: 5.941 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.432e-05/0.1641, allocations: 7.984 kB / 0.6901 GB, free: 5.934 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.419e-05/0.1642, allocations: 23.44 kB / 0.6902 GB, free: 5.91 MB / 494.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1642, allocations: 0 / 0.6902 GB, free: 5.91 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.327/0.4912, allocations: 2.993 MB / 0.6931 GB, free: 3.031 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.935/9.426, allocations: 11.03 kB / 0.6931 GB, free: 3.023 MB / 494.1 MB (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/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)