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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001709/0.001709, allocations: 113.5 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001482/0.001482, allocations: 216.1 kB / 23.04 MB, free: 5.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.395/1.395, allocations: 230.6 MB / 256.8 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002539/0.002539, allocations: 294 kB / 313.5 MB, free: 2.809 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.174/1.174, allocations: 180.6 MB / 0.5377 GB, free: 12.91 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002814/0.002814, allocations: 107.7 kB / 0.7403 GB, free: 28.52 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1523/0.1551, allocations: 95.39 MB / 0.8335 GB, free: 8.676 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002608/0.1577, allocations: 1.506 MB / 0.8349 GB, free: 7.156 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0009118/0.1586, allocations: 0.5315 MB / 0.8355 GB, free: 6.621 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.657e-05/0.1586, allocations: 0 / 0.8355 GB, free: 6.621 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 8.593e-05/0.1587, allocations: 7.875 kB / 0.8355 GB, free: 6.613 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 5.24e-05/0.1588, allocations: 19.86 kB / 0.8355 GB, free: 6.594 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002458/0.159, allocations: 43.88 kB / 0.8355 GB, free: 6.551 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001859/0.1592, allocations: 99.75 kB / 0.8356 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 9.869e-05/0.1593, allocations: 12.17 kB / 0.8356 GB, free: 6.441 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001763/0.1595, allocations: 59.84 kB / 0.8357 GB, free: 6.383 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 9.247e-05/0.1596, allocations: 43.83 kB / 0.8357 GB, free: 6.34 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.244e-05/0.1596, allocations: 8 kB / 0.8357 GB, free: 6.332 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 4.613e-05/0.1597, allocations: 15.98 kB / 0.8358 GB, free: 6.316 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.04e-05/0.1597, allocations: 15.92 kB / 0.8358 GB, free: 6.301 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 6.197e-05/0.1598, allocations: 39.8 kB / 0.8358 GB, free: 6.262 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001665/0.1599, allocations: 91.91 kB / 0.8359 GB, free: 6.172 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1599, allocations: 4 kB / 0.8359 GB, free: 6.168 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.483e-06/0.1599, allocations: 3.938 kB / 0.8359 GB, free: 6.164 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.179e-06/0.1599, allocations: 3.938 kB / 0.8359 GB, free: 6.16 MB / 0.5762 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.0006637/0.1606, allocations: 377.4 kB / 0.8363 GB, free: 5.75 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.1606, allocations: 9.344 kB / 0.8363 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.553e-05/0.1606, allocations: 4.188 kB / 0.8363 GB, free: 5.738 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.168e-05/0.1607, allocations: 38.73 kB / 0.8363 GB, free: 5.691 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001433/0.1608, allocations: 16.89 kB / 0.8363 GB, free: 5.676 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002136/0.161, allocations: 136.2 kB / 0.8365 GB, free: 5.52 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.1611, allocations: 4.375 kB / 0.8365 GB, free: 5.516 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.548e-05/0.1611, allocations: 20.11 kB / 0.8365 GB, free: 5.496 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003175/0.1614, allocations: 109.6 kB / 0.8366 GB, free: 5.383 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-06/0.1614, allocations: 0 / 0.8366 GB, free: 5.383 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.897e-05/0.1614, allocations: 8 kB / 0.8366 GB, free: 5.375 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.1614, allocations: 0 / 0.8366 GB, free: 5.375 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003143/0.1617, allocations: 91.86 kB / 0.8367 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005466/0.1623, allocations: 311.8 kB / 0.837 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003239/0.1626, allocations: 94.52 kB / 0.8371 GB, free: 4.836 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000193/0.1628, allocations: 64.94 kB / 0.8371 GB, free: 4.77 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.241e-05/0.1628, allocations: 4 kB / 0.8371 GB, free: 4.766 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003313/0.1632, allocations: 127.2 kB / 0.8373 GB, free: 4.629 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=6): time 1.422e-06/0.1632, allocations: 0 / 0.8373 GB, free: 4.629 MB / 0.5762 GB Notification: Performance of matching and sorting (n=6): time 0.0007366/0.1639, allocations: 279.2 kB / 0.8375 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.922e-05/0.164, allocations: 89.09 kB / 0.8376 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001163/0.1641, allocations: 130.1 kB / 0.8377 GB, free: 4.098 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.047e-05/0.1641, allocations: 33.7 kB / 0.8378 GB, free: 4.059 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.088e-05/0.1642, allocations: 88.09 kB / 0.8379 GB, free: 3.969 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.648e-05/0.1642, allocations: 23.83 kB / 0.8379 GB, free: 3.945 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.243e-05/0.1643, allocations: 33.66 kB / 0.8379 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.1644, allocations: 326.8 kB / 0.8382 GB, free: 3.578 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001945/0.1646, allocations: 63.95 kB / 0.8383 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001892/0.1648, allocations: 71.94 kB / 0.8383 GB, free: 3.445 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000367/0.1652, allocations: 177.9 kB / 0.8385 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1652, allocations: 0 / 0.8385 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005331/0.1657, allocations: 268.9 kB / 0.8388 GB, free: 2.969 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.795e-05/0.1657, allocations: 63.39 kB / 0.8388 GB, free: 2.895 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.1658, allocations: 0 / 0.8388 GB, free: 2.895 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.1658, allocations: 0 / 0.8388 GB, free: 2.895 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.1659, allocations: 15.98 kB / 0.8388 GB, free: 2.879 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.1659, allocations: 4 kB / 0.8389 GB, free: 2.875 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001491/0.166, allocations: 23.91 kB / 0.8389 GB, free: 2.852 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/0.1661, allocations: 4 kB / 0.8389 GB, free: 2.848 MB / 0.5762 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.0001384/0.1662, allocations: 160.2 kB / 0.839 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.307e-05/0.1662, allocations: 7.953 kB / 0.839 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.252e-05/0.1663, allocations: 8.719 kB / 0.839 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.1663, allocations: 4 kB / 0.8391 GB, free: 2.648 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.1663, allocations: 0 / 0.8391 GB, free: 2.648 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.1663, allocations: 7.875 kB / 0.8391 GB, free: 2.641 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001604/0.1664, allocations: 168.8 kB / 0.8392 GB, free: 2.434 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.1664, allocations: 0 / 0.8392 GB, free: 2.434 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.128e-05/0.1665, allocations: 15.98 kB / 0.8392 GB, free: 2.418 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.1665, allocations: 3.984 kB / 0.8392 GB, free: 2.414 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.1665, allocations: 4 kB / 0.8392 GB, free: 2.41 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.1665, allocations: 256 / 0.8392 GB, free: 2.41 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.1665, allocations: 4 kB / 0.8392 GB, free: 2.406 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005336/0.1671, allocations: 246.6 kB / 0.8395 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.599e-05/0.1671, allocations: 11.89 kB / 0.8395 GB, free: 2.129 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.068e-05/0.1671, allocations: 8 kB / 0.8395 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001373/0.1673, allocations: 23.91 kB / 0.8395 GB, free: 2.098 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.1674, allocations: 35.95 kB / 0.8396 GB, free: 2.062 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.597e-05/0.1674, allocations: 7.938 kB / 0.8396 GB, free: 2.055 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 7.464e-05/0.1675, allocations: 101.5 kB / 0.8397 GB, free: 1.957 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.1675, allocations: 0 / 0.8397 GB, free: 1.957 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000214/0.1677, allocations: 27.94 kB / 0.8397 GB, free: 1.93 MB / 0.5762 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.0008291/0.1685, allocations: 0.782 MB / 0.8405 GB, free: 1.113 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005204/0.169, allocations: 258.6 kB / 0.8407 GB, free: 0.8359 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.169, allocations: 3.938 kB / 0.8407 GB, free: 0.832 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002604/0.1693, allocations: 127.3 kB / 0.8408 GB, free: 0.6953 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002095/0.1695, allocations: 18.52 kB / 0.8408 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002497/0.172, allocations: 1.761 MB / 0.8426 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.1723, allocations: 0.6924 MB / 0.8432 GB, free: 14.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 4.788e-05/0.1724, allocations: 8 kB / 0.8432 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.017e-05/0.1724, allocations: 23.42 kB / 0.8433 GB, free: 14.07 MB / 0.5919 GB Notification: Performance of SimCode: time 4.31e-07/0.1724, allocations: 4 kB / 0.8433 GB, free: 14.07 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0243/0.1967, allocations: 3.26 MB / 0.8465 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/10.93, allocations: 6.812 kB / 0.8465 GB, free: 10.96 MB / 0.5919 GB " [Timeout remaining time 649] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.934674395015463] Failed to read output from testmodel.py, exit status != 0: 11.091549396980554 11.107028793 10.944158965 Calling exit ...