Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="IDEAS_dev_IDEAS_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.009704/0.009704, allocations: 95.44 kB / 15.73 MB, free: 6.051 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.002067/0.002067, allocations: 203.3 kB / 16.68 MB, free: 5.973 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.623/1.623, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.092/1.092, allocations: 135.6 MB / 426.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002009/0.002009, allocations: 67.88 kB / 0.5857 GB, free: 3.258 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5722/0.5742, allocations: 81.01 MB / 0.6648 GB, free: 6.867 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.NumberOfRequests): time 0.002644/0.5769, allocations: 1.479 MB / 0.6663 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008179/0.5777, allocations: 455.2 kB / 0.6667 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.264e-05/0.5778, allocations: 1.156 kB / 0.6667 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001258/0.578, allocations: 11.86 kB / 0.6667 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.092e-05/0.578, allocations: 18.36 kB / 0.6667 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000253/0.5783, allocations: 29.36 kB / 0.6668 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002229/0.5785, allocations: 109.6 kB / 0.6669 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.5787, allocations: 11.94 kB / 0.6669 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00015/0.5788, allocations: 52.83 kB / 0.6669 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001055/0.5789, allocations: 39.98 kB / 0.667 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.824e-05/0.579, allocations: 8.438 kB / 0.667 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.999e-05/0.579, allocations: 7.719 kB / 0.667 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.385e-05/0.5791, allocations: 14.83 kB / 0.667 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.46e-05/0.5792, allocations: 44.03 kB / 0.6671 GB, free: 5.125 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001962/0.5794, allocations: 80.28 kB / 0.6671 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.5794, allocations: 0 / 0.6671 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.873e-06/0.5794, allocations: 0 / 0.6671 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.233e-06/0.5794, allocations: 0 / 0.6671 GB, free: 5.07 MB / 0.4981 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.0007921/0.5802, allocations: 458.9 kB / 0.6676 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.495e-05/0.5803, allocations: 9.5 kB / 0.6676 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.6e-05/0.5803, allocations: 37.47 kB / 0.6676 GB, free: 4.559 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.718e-05/0.5804, allocations: 10.2 kB / 0.6676 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002127/0.5806, allocations: 188.3 kB / 0.6678 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.5806, allocations: 15.77 kB / 0.6678 GB, free: 4.328 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.09e-05/0.5806, allocations: 6.438 kB / 0.6678 GB, free: 4.328 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003466/0.581, allocations: 119.2 kB / 0.6679 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.581, allocations: 7.922 kB / 0.6679 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.581, allocations: 2.875 kB / 0.6679 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.229e-06/0.5811, allocations: 0 / 0.6679 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003286/0.5814, allocations: 87.45 kB / 0.668 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005646/0.582, allocations: 323.4 kB / 0.6683 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003214/0.5823, allocations: 109.5 kB / 0.6684 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000187/0.5825, allocations: 72.16 kB / 0.6685 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/0.5825, allocations: 0 / 0.6685 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003727/0.5829, allocations: 132.1 kB / 0.6686 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=6): time 1.313e-06/0.5829, allocations: 0 / 0.6686 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.0007486/0.5837, allocations: 273.5 kB / 0.6689 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.791e-05/0.5837, allocations: 80.48 kB / 0.669 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.628e-05/0.5838, allocations: 137.9 kB / 0.6691 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.5838, allocations: 27.98 kB / 0.6691 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.058e-05/0.5839, allocations: 96.22 kB / 0.6692 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.095e-05/0.5839, allocations: 18.75 kB / 0.6692 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.736e-05/0.584, allocations: 29.45 kB / 0.6693 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.466e-05/0.5841, allocations: 321.4 kB / 0.6696 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001928/0.5843, allocations: 65.94 kB / 0.6696 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001796/0.5844, allocations: 73.48 kB / 0.6697 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003416/0.5848, allocations: 192.5 kB / 0.6699 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.5848, allocations: 0 / 0.6699 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004811/0.5853, allocations: 253.8 kB / 0.6701 GB, free: 2.449 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.574e-05/0.5853, allocations: 68.36 kB / 0.6702 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/0.5854, allocations: 4 kB / 0.6702 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.5854, allocations: 1.156 kB / 0.6702 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/0.5855, allocations: 17.3 kB / 0.6702 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.5855, allocations: 0 / 0.6702 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001489/0.5857, allocations: 29.48 kB / 0.6702 GB, free: 2.352 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.016e-05/0.5857, allocations: 7.906 kB / 0.6703 GB, free: 2.348 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.0001027/0.5858, allocations: 154.6 kB / 0.6704 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.113e-05/0.5858, allocations: 13.42 kB / 0.6704 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.859e-05/0.5859, allocations: 10.19 kB / 0.6704 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.5859, allocations: 0 / 0.6704 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.5859, allocations: 1.406 kB / 0.6704 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.85e-06/0.5859, allocations: 0 / 0.6704 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001146/0.586, allocations: 196.6 kB / 0.6706 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.586, allocations: 0 / 0.6706 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.918e-05/0.5861, allocations: 12.39 kB / 0.6706 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.5861, allocations: 0 / 0.6706 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.5861, allocations: 6.641 kB / 0.6706 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.5861, allocations: 5.406 kB / 0.6706 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.5862, allocations: 3.984 kB / 0.6706 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004726/0.5866, allocations: 249.6 kB / 0.6709 GB, free: 1.766 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.186e-05/0.5867, allocations: 86.34 kB / 0.671 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.936e-05/0.5867, allocations: 8.469 kB / 0.671 GB, free: 1.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001395/0.5869, allocations: 23.06 kB / 0.671 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.587, allocations: 34.84 kB / 0.671 GB, free: 1.629 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.5e-05/0.587, allocations: 6.797 kB / 0.671 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.96e-05/0.5871, allocations: 106.1 kB / 0.6711 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5871, allocations: 0 / 0.6711 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002098/0.5873, allocations: 21.59 kB / 0.6712 GB, free: 1.535 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.0007131/0.588, allocations: 0.7891 MB / 0.6719 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000517/0.5885, allocations: 260.2 kB / 0.6722 GB, free: 0.6445 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.5886, allocations: 1.312 kB / 0.6722 GB, free: 0.6445 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002616/0.5888, allocations: 145.7 kB / 0.6723 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002257/0.5891, allocations: 15.81 kB / 0.6723 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002549/0.5916, allocations: 1.749 MB / 0.674 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003709/0.592, allocations: 0.6935 MB / 0.6747 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 5.691e-05/0.5921, allocations: 8.359 kB / 0.6747 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.536e-05/0.5921, allocations: 23.8 kB / 0.6747 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of SimCode: time 2.3e-07/0.5922, allocations: 0 / 0.6747 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02963/0.6218, allocations: 2.997 MB / 0.6777 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.002/8.623, allocations: 11.58 kB / 0.6777 GB, free: 12.77 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Continuous.Examples.NumberOfRequests.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.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 IDEAS_dev_IDEAS_Controls_Continuous_Examples_NumberOfRequests.fmu > IDEAS_dev_IDEAS.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)