Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="IBPSA_latest_IBPSA_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.001105/0.001105, allocations: 106.4 kB / 16.27 MB, free: 6.41 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.001099/0.001099, allocations: 184.1 kB / 17.2 MB, free: 5.953 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.24/1.24, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7005/0.7005, allocations: 122.9 MB / 413.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.001271, allocations: 60.09 kB / 0.4912 GB, free: 7.359 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2817, allocations: 77.92 MB / 0.5673 GB, free: 32.79 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Continuous.Examples.NumberOfRequests): time 0.002178/0.2839, allocations: 1.462 MB / 0.5687 GB, free: 31.78 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005481/0.2845, allocations: 461.4 kB / 0.5691 GB, free: 31.46 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.386e-05/0.2845, allocations: 1.062 kB / 0.5691 GB, free: 31.46 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 7.238e-05/0.2846, allocations: 7.359 kB / 0.5691 GB, free: 31.46 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.095e-05/0.2847, allocations: 19.67 kB / 0.5692 GB, free: 31.44 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001703/0.2849, allocations: 32.67 kB / 0.5692 GB, free: 31.43 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001278/0.285, allocations: 97.47 kB / 0.5693 GB, free: 31.39 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.666e-05/0.2851, allocations: 19.84 kB / 0.5693 GB, free: 31.38 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001034/0.2852, allocations: 49.95 kB / 0.5694 GB, free: 31.36 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.225e-05/0.2853, allocations: 40.41 kB / 0.5694 GB, free: 31.34 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.378e-05/0.2853, allocations: 7.688 kB / 0.5694 GB, free: 31.34 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.69e-05/0.2853, allocations: 8.469 kB / 0.5694 GB, free: 31.34 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.715e-05/0.2854, allocations: 14.72 kB / 0.5694 GB, free: 31.33 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.796e-05/0.2854, allocations: 42.78 kB / 0.5695 GB, free: 31.31 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001139/0.2856, allocations: 80.22 kB / 0.5695 GB, free: 31.28 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.2856, allocations: 1.062 kB / 0.5695 GB, free: 31.28 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2856, allocations: 0 / 0.5695 GB, free: 31.28 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.2856, allocations: 1.25 kB / 0.5695 GB, free: 31.28 MB / 446.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.0005269/0.2861, allocations: 455.8 kB / 0.57 GB, free: 30.83 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.048e-05/0.2862, allocations: 10.75 kB / 0.57 GB, free: 30.83 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.662e-05/0.2862, allocations: 41.08 kB / 0.57 GB, free: 30.79 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.709e-05/0.2862, allocations: 14.91 kB / 0.57 GB, free: 30.78 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001187/0.2864, allocations: 190.7 kB / 0.5702 GB, free: 30.57 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.275e-06/0.2864, allocations: 4.812 kB / 0.5702 GB, free: 30.57 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/0.2864, allocations: 10.34 kB / 0.5702 GB, free: 30.56 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002747/0.2867, allocations: 112.9 kB / 0.5703 GB, free: 30.51 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.241e-06/0.2867, allocations: 0 / 0.5703 GB, free: 30.51 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.2867, allocations: 7.438 kB / 0.5704 GB, free: 30.51 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.2867, allocations: 1.281 kB / 0.5704 GB, free: 30.51 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002946/0.287, allocations: 93.09 kB / 0.5704 GB, free: 30.49 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004186/0.2874, allocations: 328.3 kB / 0.5708 GB, free: 30.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002932/0.2877, allocations: 105.2 kB / 0.5709 GB, free: 30.15 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.2879, allocations: 72.55 kB / 0.5709 GB, free: 30.13 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.488e-05/0.2879, allocations: 2.688 kB / 0.5709 GB, free: 30.13 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002681/0.2882, allocations: 129.1 kB / 0.5711 GB, free: 30.06 MB / 446.1 MB Notification: Performance of pre-optimization done (n=6): time 1.533e-06/0.2882, allocations: 1.031 kB / 0.5711 GB, free: 30.06 MB / 446.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006431/0.2889, allocations: 272.4 kB / 0.5713 GB, free: 29.95 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.227e-05/0.2889, allocations: 87.64 kB / 0.5714 GB, free: 29.85 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.924e-05/0.289, allocations: 134.8 kB / 0.5715 GB, free: 29.74 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.289, allocations: 30.7 kB / 0.5716 GB, free: 29.71 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.133e-05/0.2891, allocations: 92.77 kB / 0.5716 GB, free: 29.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.843e-05/0.2891, allocations: 21.5 kB / 0.5717 GB, free: 29.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.159e-05/0.2891, allocations: 29.94 kB / 0.5717 GB, free: 29.58 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.612e-05/0.2892, allocations: 326.4 kB / 0.572 GB, free: 29.26 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001793/0.2894, allocations: 67.92 kB / 0.5721 GB, free: 29.24 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.2896, allocations: 63.28 kB / 0.5721 GB, free: 29.23 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002987/0.2899, allocations: 184.6 kB / 0.5723 GB, free: 29.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.2899, allocations: 0 / 0.5723 GB, free: 29.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004419/0.2903, allocations: 262.6 kB / 0.5726 GB, free: 28.96 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.388e-05/0.2904, allocations: 67.44 kB / 0.5726 GB, free: 28.89 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.2904, allocations: 0.75 kB / 0.5726 GB, free: 28.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.2904, allocations: 1.188 kB / 0.5726 GB, free: 28.89 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.2905, allocations: 14.59 kB / 0.5726 GB, free: 28.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.2905, allocations: 5.094 kB / 0.5726 GB, free: 28.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001491/0.2907, allocations: 24.23 kB / 0.5727 GB, free: 28.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.2907, allocations: 13.27 kB / 0.5727 GB, free: 28.88 MB / 446.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 7.319e-05/0.2908, allocations: 149.6 kB / 0.5728 GB, free: 28.73 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.063e-05/0.2908, allocations: 13.98 kB / 0.5728 GB, free: 28.72 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.525e-05/0.2908, allocations: 12.28 kB / 0.5728 GB, free: 28.71 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.2908, allocations: 1.75 kB / 0.5728 GB, free: 28.71 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.095e-06/0.2908, allocations: 1.375 kB / 0.5728 GB, free: 28.71 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.2909, allocations: 0.6094 kB / 0.5728 GB, free: 28.71 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.098e-05/0.2909, allocations: 191.3 kB / 0.573 GB, free: 28.51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-06/0.291, allocations: 5.531 kB / 0.573 GB, free: 28.51 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.261e-05/0.291, allocations: 14.88 kB / 0.5731 GB, free: 28.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.2911, allocations: 0.6875 kB / 0.5731 GB, free: 28.51 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.2911, allocations: 4.531 kB / 0.5731 GB, free: 28.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.2911, allocations: 0 / 0.5731 GB, free: 28.51 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.2911, allocations: 1.219 kB / 0.5731 GB, free: 28.51 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004209/0.2915, allocations: 246.9 kB / 0.5733 GB, free: 28.37 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.082e-05/0.2915, allocations: 88.53 kB / 0.5734 GB, free: 28.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.695e-05/0.2916, allocations: 12.42 kB / 0.5734 GB, free: 28.26 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001411/0.2917, allocations: 19.7 kB / 0.5734 GB, free: 28.26 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.2918, allocations: 32.89 kB / 0.5734 GB, free: 28.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.301e-05/0.2919, allocations: 9.188 kB / 0.5734 GB, free: 28.25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 4.004e-05/0.2919, allocations: 100.9 kB / 0.5735 GB, free: 28.17 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2919, allocations: 1.375 kB / 0.5735 GB, free: 28.17 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000203/0.2921, allocations: 25.47 kB / 0.5736 GB, free: 28.16 MB / 446.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.0005783/0.2927, allocations: 0.7813 MB / 0.5743 GB, free: 27.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004441/0.2931, allocations: 268.1 kB / 0.5746 GB, free: 27.34 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2932, allocations: 0 / 0.5746 GB, free: 27.34 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002204/0.2934, allocations: 140.5 kB / 0.5747 GB, free: 27.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001908/0.2936, allocations: 15.95 kB / 0.5747 GB, free: 27.25 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001873/0.2955, allocations: 1.751 MB / 0.5764 GB, free: 25.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.771e-05/0.2956, allocations: 0.6936 MB / 0.5771 GB, free: 25.21 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.026e-05/0.2956, allocations: 7.234 kB / 0.5771 GB, free: 25.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.515e-05/0.2957, allocations: 25.52 kB / 0.5772 GB, free: 25.19 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2957, allocations: 0 / 0.5772 GB, free: 25.19 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01659/0.3123, allocations: 2.978 MB / 0.5801 GB, free: 24.53 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.861/7.174, allocations: 6.328 kB / 0.5801 GB, free: 24.53 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Continuous.Examples.NumberOfRequests.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Controls_Continuous_Examples_NumberOfRequests.fmu > IBPSA_latest_IBPSA.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)