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.001908/0.001908, 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.002103/0.002103, allocations: 196.3 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.444/1.444, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002476/0.002475, allocations: 283 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.082/1.082, allocations: 178.6 MB / 0.5073 GB, free: 4.59 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002749/0.002749, allocations: 101.3 kB / 0.6065 GB, free: 24.68 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1452, allocations: 89.14 MB / 0.6936 GB, free: 4.242 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002718/0.1479, allocations: 1.476 MB / 0.695 GB, free: 2.766 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007442/0.1487, allocations: 457 kB / 0.6955 GB, free: 2.316 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.2e-05/0.1488, allocations: 3.938 kB / 0.6955 GB, free: 2.312 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 7.758e-05/0.1488, allocations: 9.297 kB / 0.6955 GB, free: 2.305 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.12e-05/0.1489, allocations: 11.88 kB / 0.6955 GB, free: 2.293 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001809/0.1491, allocations: 40.56 kB / 0.6955 GB, free: 2.254 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001644/0.1493, allocations: 104 kB / 0.6956 GB, free: 2.156 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.244e-05/0.1494, allocations: 12.17 kB / 0.6956 GB, free: 2.145 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001127/0.1495, allocations: 47.84 kB / 0.6957 GB, free: 2.098 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.537e-05/0.1496, allocations: 47.81 kB / 0.6957 GB, free: 2.051 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.816e-05/0.1496, allocations: 8 kB / 0.6957 GB, free: 2.043 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.111e-05/0.1496, allocations: 8.781 kB / 0.6958 GB, free: 2.035 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.174e-05/0.1497, allocations: 15.92 kB / 0.6958 GB, free: 2.02 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.3e-05/0.1497, allocations: 37.48 kB / 0.6958 GB, free: 1.984 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001365/0.1499, allocations: 83.97 kB / 0.6959 GB, free: 1.902 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.1499, allocations: 0 / 0.6959 GB, free: 1.902 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1499, allocations: 0 / 0.6959 GB, free: 1.902 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.1499, allocations: 0 / 0.6959 GB, free: 1.902 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.0007026/0.1506, allocations: 453.3 kB / 0.6963 GB, free: 1.402 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.138e-05/0.1507, allocations: 8.031 kB / 0.6963 GB, free: 1.395 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.626e-05/0.1507, allocations: 38.75 kB / 0.6964 GB, free: 1.348 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.708e-05/0.1508, allocations: 16.77 kB / 0.6964 GB, free: 1.332 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001888/0.1509, allocations: 188.2 kB / 0.6966 GB, free: 1.109 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.151, allocations: 4.375 kB / 0.6966 GB, free: 1.105 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.167e-05/0.151, allocations: 8.375 kB / 0.6966 GB, free: 1.098 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003351/0.1513, allocations: 117.5 kB / 0.6967 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.874e-06/0.1514, allocations: 4 kB / 0.6967 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.527e-05/0.1514, allocations: 4 kB / 0.6967 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.1514, allocations: 0 / 0.6967 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003193/0.1517, allocations: 83.92 kB / 0.6968 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005636/0.1523, allocations: 336.7 kB / 0.6971 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003331/0.1526, allocations: 106.5 kB / 0.6972 GB, free: 404 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000207/0.1528, allocations: 76.88 kB / 0.6973 GB, free: 324 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.071e-05/0.1529, allocations: 0 / 0.6973 GB, free: 324 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003145/0.1532, allocations: 127.3 kB / 0.6974 GB, free: 184 kB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.412e-06/0.1532, allocations: 0 / 0.6974 GB, free: 184 kB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007565/0.154, allocations: 279.1 kB / 0.6977 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.266e-05/0.154, allocations: 89.09 kB / 0.6977 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.1542, allocations: 119 kB / 0.6978 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.394e-05/0.1542, allocations: 37.7 kB / 0.6979 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.516e-05/0.1543, allocations: 104 kB / 0.698 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.329e-05/0.1543, allocations: 11.81 kB / 0.698 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.432e-05/0.1544, allocations: 33.7 kB / 0.698 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001469/0.1545, allocations: 322.8 kB / 0.6983 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/0.1547, allocations: 63.95 kB / 0.6984 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001934/0.1549, allocations: 67.95 kB / 0.6985 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003932/0.1553, allocations: 185.8 kB / 0.6986 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1553, allocations: 0 / 0.6986 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005406/0.1559, allocations: 260.9 kB / 0.6989 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.462e-05/0.156, allocations: 63.41 kB / 0.6989 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.156, allocations: 0 / 0.6989 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.156, allocations: 11.98 kB / 0.699 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.1561, allocations: 15.92 kB / 0.699 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.1561, allocations: 0 / 0.699 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001569/0.1563, allocations: 15.98 kB / 0.699 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.059e-05/0.1563, allocations: 11.92 kB / 0.699 GB, free: 14.41 MB / 0.4981 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 (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.0001243/0.1564, allocations: 151.5 kB / 0.6991 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.119e-05/0.1565, allocations: 7.906 kB / 0.6992 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.775e-05/0.1565, allocations: 20.36 kB / 0.6992 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.1565, allocations: 0 / 0.6992 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.1565, allocations: 0 / 0.6992 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.1565, allocations: 0 / 0.6992 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001767/0.1567, allocations: 201.5 kB / 0.6994 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1567, allocations: 0 / 0.6994 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.386e-05/0.1568, allocations: 15.98 kB / 0.6994 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.1568, allocations: 0 / 0.6994 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.1569, allocations: 4 kB / 0.6994 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.1569, allocations: 0 / 0.6994 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1569, allocations: 7.938 kB / 0.6994 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005245/0.1574, allocations: 250.5 kB / 0.6996 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.041e-05/0.1575, allocations: 81.02 kB / 0.6997 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.681e-05/0.1575, allocations: 4.312 kB / 0.6997 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001581/0.1577, allocations: 27.97 kB / 0.6997 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.1578, allocations: 43.94 kB / 0.6998 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.1578, allocations: 4 kB / 0.6998 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.912e-05/0.1579, allocations: 104.8 kB / 0.6999 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1579, allocations: 0 / 0.6999 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002174/0.1581, allocations: 24 kB / 0.6999 GB, free: 13.37 MB / 0.4981 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 (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.0008629/0.159, allocations: 0.778 MB / 0.7007 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005531/0.1595, allocations: 274.7 kB / 0.7009 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1596, allocations: 0 / 0.7009 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002711/0.1598, allocations: 143.3 kB / 0.7011 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002128/0.1601, allocations: 20.23 kB / 0.7011 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002473/0.1625, allocations: 1.73 MB / 0.7028 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.1629, allocations: 0.6923 MB / 0.7035 GB, free: 9.543 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.229e-05/0.1629, allocations: 7.984 kB / 0.7035 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.781e-05/0.163, allocations: 19.44 kB / 0.7035 GB, free: 9.52 MB / 0.4981 GB Notification: Performance of SimCode: time 2.71e-07/0.163, allocations: 4 kB / 0.7035 GB, free: 9.516 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0235/0.1865, allocations: 2.993 MB / 0.7064 GB, free: 6.637 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.782/7.969, allocations: 9.375 kB / 0.7064 GB, free: 6.629 MB / 0.4981 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)