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.00144/0.00144, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001672/0.001672, allocations: 192.7 kB / 16.13 MB, free: 6.707 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.189/1.189, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00192/0.00192, allocations: 291.1 kB / 290.2 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8559/0.8559, allocations: 169.2 MB / 0.4977 GB, free: 14.19 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 95.44 kB / 0.5946 GB, free: 28.35 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1245, allocations: 86.98 MB / 0.6795 GB, free: 1.09 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002288/0.1268, allocations: 1.52 MB / 0.681 GB, free: 15.57 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006134/0.1274, allocations: 462 kB / 0.6815 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.548e-05/0.1275, allocations: 4 kB / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 7.92e-05/0.1275, allocations: 7.938 kB / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.064e-05/0.1276, allocations: 12.56 kB / 0.6815 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001508/0.1277, allocations: 24.84 kB / 0.6815 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000101/0.1279, allocations: 91.7 kB / 0.6816 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.017e-05/0.1279, allocations: 22.5 kB / 0.6816 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.617e-05/0.128, allocations: 35.91 kB / 0.6817 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.036e-05/0.1281, allocations: 44.3 kB / 0.6817 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.153e-05/0.1282, allocations: 4 kB / 0.6817 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.561e-05/0.1282, allocations: 8 kB / 0.6817 GB, free: 14.87 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.648e-05/0.1282, allocations: 19.86 kB / 0.6817 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.007e-05/0.1283, allocations: 39.83 kB / 0.6818 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000111/0.1284, allocations: 75.72 kB / 0.6818 GB, free: 14.74 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.1284, allocations: 0 / 0.6818 GB, free: 14.74 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1284, allocations: 0 / 0.6818 GB, free: 14.74 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.1284, allocations: 0 / 0.6818 GB, free: 14.74 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.0005823/0.129, allocations: 448.6 kB / 0.6823 GB, free: 14.24 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.085e-05/0.129, allocations: 12.03 kB / 0.6823 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.277e-05/0.1291, allocations: 38.75 kB / 0.6823 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.275e-05/0.1291, allocations: 8.844 kB / 0.6823 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001556/0.1293, allocations: 192.2 kB / 0.6825 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.293e-06/0.1293, allocations: 4.375 kB / 0.6825 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.18e-05/0.1293, allocations: 16.38 kB / 0.6825 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002871/0.1296, allocations: 113.5 kB / 0.6826 GB, free: 13.81 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.792e-06/0.1296, allocations: 3.984 kB / 0.6826 GB, free: 13.81 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.1297, allocations: 8 kB / 0.6826 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.1297, allocations: 7.984 kB / 0.6827 GB, free: 13.79 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002796/0.1299, allocations: 87.92 kB / 0.6827 GB, free: 13.71 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004653/0.1304, allocations: 320.7 kB / 0.683 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003022/0.1307, allocations: 114.4 kB / 0.6831 GB, free: 13.22 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/0.1309, allocations: 72.94 kB / 0.6832 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.407e-05/0.1309, allocations: 3.938 kB / 0.6832 GB, free: 13.14 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000277/0.1312, allocations: 123.3 kB / 0.6833 GB, free: 13.01 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.373e-06/0.1312, allocations: 0 / 0.6833 GB, free: 13.01 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006509/0.1319, allocations: 275.2 kB / 0.6836 GB, free: 12.73 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.202e-05/0.132, allocations: 89.05 kB / 0.6837 GB, free: 12.62 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.431e-05/0.132, allocations: 132.2 kB / 0.6838 GB, free: 12.49 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.478e-05/0.1321, allocations: 25.7 kB / 0.6838 GB, free: 12.46 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.205e-05/0.1321, allocations: 112 kB / 0.6839 GB, free: 12.34 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.985e-05/0.1322, allocations: 15.81 kB / 0.684 GB, free: 12.33 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.294e-05/0.1322, allocations: 29.7 kB / 0.684 GB, free: 12.29 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.948e-05/0.1323, allocations: 322.8 kB / 0.6843 GB, free: 11.97 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/0.1325, allocations: 63.95 kB / 0.6844 GB, free: 11.91 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001655/0.1327, allocations: 67.94 kB / 0.6844 GB, free: 11.84 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003173/0.133, allocations: 189.9 kB / 0.6846 GB, free: 11.63 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.133, allocations: 0 / 0.6846 GB, free: 11.63 MB / 494.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004615/0.1335, allocations: 252.9 kB / 0.6848 GB, free: 11.37 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.009e-05/0.1335, allocations: 67.39 kB / 0.6849 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1335, allocations: 4 kB / 0.6849 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.546e-06/0.1336, allocations: 0 / 0.6849 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.1337, allocations: 15.98 kB / 0.6849 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.098e-06/0.1337, allocations: 0 / 0.6849 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001465/0.1338, allocations: 23.97 kB / 0.685 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.899e-05/0.1339, allocations: 11.94 kB / 0.685 GB, free: 11.23 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 9.846e-05/0.134, allocations: 156.8 kB / 0.6851 GB, free: 11.07 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.68e-05/0.134, allocations: 11.91 kB / 0.6851 GB, free: 11.05 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.476e-05/0.134, allocations: 8.375 kB / 0.6851 GB, free: 11.05 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.134, allocations: 4 kB / 0.6851 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.134, allocations: 0 / 0.6851 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.134, allocations: 0 / 0.6851 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001343/0.1342, allocations: 197.5 kB / 0.6853 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1342, allocations: 0 / 0.6853 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.221e-05/0.1343, allocations: 12.23 kB / 0.6853 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.1343, allocations: 0 / 0.6853 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.1343, allocations: 11.98 kB / 0.6853 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1343, allocations: 160 / 0.6853 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.1343, allocations: 0 / 0.6853 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004645/0.1348, allocations: 258.5 kB / 0.6856 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.653e-05/0.1348, allocations: 85.02 kB / 0.6857 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.452e-05/0.1349, allocations: 7.938 kB / 0.6857 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001348/0.135, allocations: 19.97 kB / 0.6857 GB, free: 10.37 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.1351, allocations: 35.95 kB / 0.6857 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.1352, allocations: 8 kB / 0.6857 GB, free: 10.33 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.215e-05/0.1352, allocations: 103.2 kB / 0.6858 GB, free: 10.23 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1352, allocations: 0 / 0.6858 GB, free: 10.23 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001942/0.1354, allocations: 24 kB / 0.6859 GB, free: 10.2 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.0006869/0.1361, allocations: 0.7819 MB / 0.6866 GB, free: 9.387 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004524/0.1366, allocations: 270.6 kB / 0.6869 GB, free: 9.098 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1366, allocations: 0 / 0.6869 GB, free: 9.098 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002275/0.1368, allocations: 135.3 kB / 0.687 GB, free: 8.953 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002027/0.137, allocations: 23.92 kB / 0.687 GB, free: 8.93 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002043/0.1391, allocations: 1.751 MB / 0.6887 GB, free: 7.082 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002047/0.1393, allocations: 0.6887 MB / 0.6894 GB, free: 6.367 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.211e-05/0.1393, allocations: 11.98 kB / 0.6894 GB, free: 6.355 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.601e-05/0.1394, allocations: 15.44 kB / 0.6894 GB, free: 6.34 MB / 494.1 MB Notification: Performance of SimCode: time 3e-07/0.1394, allocations: 3.938 kB / 0.6894 GB, free: 6.336 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9814/1.121, allocations: 2.618 MB / 0.692 GB, free: 3.863 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002047/1.121, allocations: 226.4 kB / 0.6922 GB, free: 3.598 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.765/2.886, allocations: 0 / 0.6922 GB, free: 3.598 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)