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.008619/0.00862, allocations: 99.11 kB / 15.73 MB, free: 6.035 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.001404/0.001404, allocations: 193.3 kB / 16.67 MB, free: 5.961 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.465/1.465, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.048/1.048, allocations: 135.1 MB / 425.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001806/0.001806, allocations: 63.91 kB / 0.5851 GB, free: 3.883 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5483/0.5501, allocations: 80.92 MB / 0.6641 GB, free: 7.262 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.NumberOfRequests): time 0.002633/0.5528, allocations: 1.474 MB / 0.6656 GB, free: 6.109 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007739/0.5536, allocations: 468 kB / 0.666 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.754e-05/0.5537, allocations: 0 / 0.666 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001055/0.5538, allocations: 5.062 kB / 0.666 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.939e-05/0.5538, allocations: 9.062 kB / 0.666 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002253/0.5541, allocations: 41.09 kB / 0.6661 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001812/0.5543, allocations: 114.1 kB / 0.6662 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.5544, allocations: 8.375 kB / 0.6662 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001336/0.5545, allocations: 45.55 kB / 0.6662 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.752e-05/0.5546, allocations: 46.94 kB / 0.6663 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.038e-05/0.5547, allocations: 8.531 kB / 0.6663 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.087e-05/0.5547, allocations: 7.75 kB / 0.6663 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.363e-05/0.5547, allocations: 10.81 kB / 0.6663 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.048e-05/0.5548, allocations: 44.06 kB / 0.6663 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.555, allocations: 84.41 kB / 0.6664 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.555, allocations: 0 / 0.6664 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.724e-06/0.555, allocations: 0 / 0.6664 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.814e-06/0.555, allocations: 3.984 kB / 0.6664 GB, free: 5.465 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.0006963/0.5557, allocations: 450.4 kB / 0.6668 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.5558, allocations: 10.31 kB / 0.6669 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.265e-05/0.5558, allocations: 33.47 kB / 0.6669 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.525e-05/0.5559, allocations: 17.89 kB / 0.6669 GB, free: 4.953 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001811/0.556, allocations: 188.7 kB / 0.6671 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.5561, allocations: 4.062 kB / 0.6671 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.697e-05/0.5561, allocations: 5.562 kB / 0.6671 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000314/0.5564, allocations: 124 kB / 0.6672 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.5564, allocations: 3.938 kB / 0.6672 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.5565, allocations: 5.359 kB / 0.6672 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.5565, allocations: 1.125 kB / 0.6672 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002985/0.5568, allocations: 90.52 kB / 0.6673 GB, free: 4.609 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004994/0.5573, allocations: 332.7 kB / 0.6676 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003254/0.5576, allocations: 105.6 kB / 0.6677 GB, free: 4.211 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000193/0.5578, allocations: 83.41 kB / 0.6678 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.498e-05/0.5578, allocations: 0 / 0.6678 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003771/0.5582, allocations: 120.9 kB / 0.6679 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=6): time 1.332e-06/0.5582, allocations: 0 / 0.6679 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.0007385/0.559, allocations: 281 kB / 0.6682 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.809e-05/0.559, allocations: 85.17 kB / 0.6683 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.5591, allocations: 129.1 kB / 0.6684 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.5592, allocations: 32.45 kB / 0.6684 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.395e-05/0.5592, allocations: 94.75 kB / 0.6685 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.131e-05/0.5593, allocations: 15.78 kB / 0.6685 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.909e-05/0.5593, allocations: 38.47 kB / 0.6686 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.758e-05/0.5594, allocations: 324.4 kB / 0.6689 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002003/0.5596, allocations: 65.94 kB / 0.6689 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001795/0.5598, allocations: 65.77 kB / 0.669 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003208/0.5601, allocations: 178.8 kB / 0.6692 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.5601, allocations: 5.656 kB / 0.6692 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004853/0.5606, allocations: 261.4 kB / 0.6694 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.334e-05/0.5607, allocations: 63.81 kB / 0.6695 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.5607, allocations: 0 / 0.6695 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.5607, allocations: 0.9688 kB / 0.6695 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.5608, allocations: 13.39 kB / 0.6695 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.5608, allocations: 5.547 kB / 0.6695 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001576/0.561, allocations: 21.36 kB / 0.6695 GB, free: 2.758 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.119e-05/0.561, allocations: 6.906 kB / 0.6695 GB, free: 2.754 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.000116/0.5612, allocations: 162.2 kB / 0.6697 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.196e-05/0.5612, allocations: 9.203 kB / 0.6697 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.229e-05/0.5612, allocations: 10.81 kB / 0.6697 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.5612, allocations: 0 / 0.6697 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.5612, allocations: 1.219 kB / 0.6697 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.5613, allocations: 7.922 kB / 0.6697 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001404/0.5614, allocations: 196.8 kB / 0.6699 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.5614, allocations: 0 / 0.6699 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.382e-05/0.5615, allocations: 16.81 kB / 0.6699 GB, free: 2.336 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.5615, allocations: 0 / 0.6699 GB, free: 2.336 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.5615, allocations: 6.594 kB / 0.6699 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.5615, allocations: 1.125 kB / 0.6699 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.5615, allocations: 0 / 0.6699 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004895/0.562, allocations: 249 kB / 0.6702 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.414e-05/0.5621, allocations: 87.34 kB / 0.6702 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.077e-05/0.5621, allocations: 3.594 kB / 0.6703 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.5623, allocations: 23.81 kB / 0.6703 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/0.5624, allocations: 38.53 kB / 0.6703 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.5624, allocations: 6.797 kB / 0.6703 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.785e-05/0.5625, allocations: 107.6 kB / 0.6704 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5625, allocations: 4 kB / 0.6704 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00022/0.5627, allocations: 25.16 kB / 0.6704 GB, free: 1.926 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.0007478/0.5635, allocations: 0.7709 MB / 0.6712 GB, free: 1.242 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005402/0.564, allocations: 271.5 kB / 0.6715 GB, free: 1.043 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.5641, allocations: 1.25 kB / 0.6715 GB, free: 1.043 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002468/0.5643, allocations: 138.2 kB / 0.6716 GB, free: 0.9453 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002272/0.5645, allocations: 11.69 kB / 0.6716 GB, free: 0.9414 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002469/0.567, allocations: 1.759 MB / 0.6733 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002856/0.5673, allocations: 0.6889 MB / 0.674 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.026e-05/0.5674, allocations: 13.58 kB / 0.674 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.417e-05/0.5675, allocations: 27.95 kB / 0.674 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of SimCode: time 2.5e-07/0.5675, allocations: 0 / 0.674 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02323/0.5907, allocations: 3.005 MB / 0.677 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.859/8.45, allocations: 2.031 kB / 0.677 GB, free: 13.16 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)