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.0009329/0.0009332, allocations: 92.78 kB / 15.36 MB, free: 0.7383 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.005957/0.005957, allocations: 172.9 kB / 16.26 MB, free: 6.613 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.267/1.267, allocations: 223.2 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001654/0.001654, allocations: 263 kB / 291.7 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9034/0.9034, allocations: 169.5 MB / 0.5004 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003886/0.0003886, allocations: 17.28 kB / 0.5988 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1425, allocations: 88.54 MB / 0.6852 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.001408/0.1439, allocations: 1.188 MB / 0.6864 GB, free: 13.77 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006673/0.1446, allocations: 462 kB / 0.6868 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.525e-05/0.1446, allocations: 0.5 kB / 0.6868 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 7.469e-05/0.1447, allocations: 4.469 kB / 0.6868 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.731e-05/0.1448, allocations: 9.094 kB / 0.6868 GB, free: 13.31 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001812/0.145, allocations: 35.89 kB / 0.6869 GB, free: 13.27 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001115/0.1451, allocations: 93.25 kB / 0.687 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.946e-05/0.1452, allocations: 9.203 kB / 0.687 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001047/0.1453, allocations: 43.84 kB / 0.687 GB, free: 13.13 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.506e-05/0.1454, allocations: 41.53 kB / 0.687 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.012e-05/0.1454, allocations: 4 kB / 0.6871 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.462e-05/0.1454, allocations: 4 kB / 0.6871 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.485e-05/0.1455, allocations: 15.92 kB / 0.6871 GB, free: 13.07 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.385e-05/0.1455, allocations: 58.19 kB / 0.6871 GB, free: 13.01 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001036/0.1456, allocations: 79.67 kB / 0.6872 GB, free: 12.93 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1456, allocations: 0.5312 kB / 0.6872 GB, free: 12.93 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1457, allocations: 2.75 kB / 0.6872 GB, free: 12.93 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.035e-06/0.1457, allocations: 0 / 0.6872 GB, free: 12.93 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.0005538/0.1462, allocations: 438.7 kB / 0.6876 GB, free: 12.44 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.1463, allocations: 9.812 kB / 0.6876 GB, free: 12.43 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.954e-05/0.1463, allocations: 38.75 kB / 0.6877 GB, free: 12.39 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.272e-05/0.1463, allocations: 8.844 kB / 0.6877 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001535/0.1465, allocations: 198.8 kB / 0.6879 GB, free: 12.15 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.1465, allocations: 8.375 kB / 0.6879 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.976e-05/0.1466, allocations: 5.094 kB / 0.6879 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003033/0.1469, allocations: 128.5 kB / 0.688 GB, free: 12.01 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.761e-06/0.1469, allocations: 0 / 0.688 GB, free: 12.01 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.1469, allocations: 0 / 0.688 GB, free: 12.01 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.1469, allocations: 0 / 0.688 GB, free: 12.01 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003196/0.1472, allocations: 108.6 kB / 0.6881 GB, free: 11.9 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004835/0.1477, allocations: 340.7 kB / 0.6884 GB, free: 11.52 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003208/0.1481, allocations: 118.5 kB / 0.6885 GB, free: 11.39 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001904/0.1483, allocations: 80.94 kB / 0.6886 GB, free: 11.31 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.107e-05/0.1483, allocations: 3.938 kB / 0.6886 GB, free: 11.31 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002988/0.1486, allocations: 135.2 kB / 0.6888 GB, free: 11.16 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.432e-06/0.1486, allocations: 0 / 0.6888 GB, free: 11.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.000695/0.1493, allocations: 303.2 kB / 0.689 GB, free: 10.86 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.1494, allocations: 81.11 kB / 0.6891 GB, free: 10.76 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.905e-05/0.1494, allocations: 133.7 kB / 0.6892 GB, free: 10.62 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.1495, allocations: 29.7 kB / 0.6893 GB, free: 10.58 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.708e-05/0.1495, allocations: 96.06 kB / 0.6894 GB, free: 10.48 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.312e-05/0.1496, allocations: 15.81 kB / 0.6894 GB, free: 10.47 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-05/0.1496, allocations: 25.72 kB / 0.6894 GB, free: 10.44 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.686e-05/0.1497, allocations: 318.8 kB / 0.6897 GB, free: 10.12 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001966/0.1499, allocations: 71.95 kB / 0.6898 GB, free: 10.05 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001862/0.1501, allocations: 79.95 kB / 0.6899 GB, free: 9.969 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00035/0.1504, allocations: 193.8 kB / 0.69 GB, free: 9.758 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1505, allocations: 0 / 0.69 GB, free: 9.758 MB / 494.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004972/0.151, allocations: 280.9 kB / 0.6903 GB, free: 9.465 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.715e-05/0.151, allocations: 63.39 kB / 0.6904 GB, free: 9.391 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.151, allocations: 0 / 0.6904 GB, free: 9.391 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.227e-06/0.1511, allocations: 8 kB / 0.6904 GB, free: 9.383 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.1512, allocations: 19.92 kB / 0.6904 GB, free: 9.363 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.998e-06/0.1512, allocations: 0 / 0.6904 GB, free: 9.363 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001623/0.1514, allocations: 31.97 kB / 0.6904 GB, free: 9.332 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/0.1514, allocations: 7.938 kB / 0.6904 GB, free: 9.324 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.0001059/0.1515, allocations: 160.8 kB / 0.6906 GB, free: 9.152 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.852e-05/0.1515, allocations: 7.906 kB / 0.6906 GB, free: 9.145 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.802e-05/0.1516, allocations: 12.36 kB / 0.6906 GB, free: 9.133 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.1516, allocations: 4 kB / 0.6906 GB, free: 9.129 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1516, allocations: 0 / 0.6906 GB, free: 9.129 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.1516, allocations: 0 / 0.6906 GB, free: 9.129 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001322/0.1517, allocations: 201.8 kB / 0.6908 GB, free: 8.883 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1517, allocations: 0 / 0.6908 GB, free: 8.883 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.104e-05/0.1518, allocations: 23.98 kB / 0.6908 GB, free: 8.859 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1518, allocations: 0 / 0.6908 GB, free: 8.859 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.1518, allocations: 0 / 0.6908 GB, free: 8.859 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.1519, allocations: 4 kB / 0.6908 GB, free: 8.855 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1519, allocations: 0 / 0.6908 GB, free: 8.855 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000482/0.1523, allocations: 270.5 kB / 0.6911 GB, free: 8.566 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.535e-05/0.1524, allocations: 89 kB / 0.6912 GB, free: 8.461 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.571e-05/0.1524, allocations: 7.984 kB / 0.6912 GB, free: 8.453 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001498/0.1526, allocations: 23.98 kB / 0.6912 GB, free: 8.43 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.1527, allocations: 35.95 kB / 0.6912 GB, free: 8.395 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.1527, allocations: 8 kB / 0.6912 GB, free: 8.387 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.688e-05/0.1528, allocations: 101.2 kB / 0.6913 GB, free: 8.289 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1528, allocations: 0 / 0.6913 GB, free: 8.289 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002065/0.153, allocations: 31.98 kB / 0.6914 GB, free: 8.258 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.0007236/0.1537, allocations: 0.7975 MB / 0.6922 GB, free: 7.426 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004797/0.1542, allocations: 278.7 kB / 0.6924 GB, free: 7.129 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.1542, allocations: 0 / 0.6924 GB, free: 7.129 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002478/0.1545, allocations: 151.3 kB / 0.6926 GB, free: 6.969 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001989/0.1547, allocations: 17.83 kB / 0.6926 GB, free: 6.953 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002145/0.1568, allocations: 1.799 MB / 0.6943 GB, free: 5.055 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001929/0.157, allocations: 0.6926 MB / 0.695 GB, free: 4.336 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.017e-05/0.1571, allocations: 8 kB / 0.695 GB, free: 4.328 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.658e-05/0.1572, allocations: 19.42 kB / 0.695 GB, free: 4.309 MB / 494.1 MB Notification: Performance of SimCode: time 3.025e-06/0.1572, allocations: 0 / 0.695 GB, free: 4.309 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01432/0.1715, allocations: 2.536 MB / 0.6975 GB, free: 1.941 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001689/0.1717, allocations: 224.8 kB / 0.6977 GB, free: 1.68 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.617/1.789, allocations: 0 / 0.6977 GB, free: 1.68 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)