Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="IDEAS_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.001204/0.00121, allocations: 108 kB / 15.6 MB, free: 132 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.001241/0.001241, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.314/1.314, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7385/0.7385, allocations: 132.2 MB / 422.6 MB, free: 1.793 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001306, allocations: 59.88 kB / 0.5019 GB, free: 3.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4106/0.4119, allocations: 80.2 MB / 0.5802 GB, free: 4.547 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.NumberOfRequests): time 0.002815/0.4148, allocations: 1.471 MB / 0.5816 GB, free: 3.516 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007412/0.4156, allocations: 463 kB / 0.5821 GB, free: 3.199 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.415e-05/0.4156, allocations: 5.188 kB / 0.5821 GB, free: 3.195 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 9.685e-05/0.4158, allocations: 9.234 kB / 0.5821 GB, free: 3.188 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.456e-05/0.4158, allocations: 11.42 kB / 0.5821 GB, free: 3.18 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002174/0.416, allocations: 41.23 kB / 0.5821 GB, free: 3.156 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001626/0.4162, allocations: 99.2 kB / 0.5822 GB, free: 3.113 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001198/0.4163, allocations: 16.91 kB / 0.5822 GB, free: 3.105 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001345/0.4165, allocations: 55.31 kB / 0.5823 GB, free: 3.078 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.744e-05/0.4166, allocations: 42.92 kB / 0.5823 GB, free: 3.059 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.978e-05/0.4166, allocations: 8.062 kB / 0.5823 GB, free: 3.059 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.08e-05/0.4166, allocations: 8.281 kB / 0.5823 GB, free: 3.059 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 4.606e-05/0.4167, allocations: 15.06 kB / 0.5824 GB, free: 3.051 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.709e-05/0.4168, allocations: 37.27 kB / 0.5824 GB, free: 3.031 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001463/0.4169, allocations: 83.61 kB / 0.5825 GB, free: 2.996 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.4169, allocations: 4.812 kB / 0.5825 GB, free: 2.992 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4169, allocations: 0 / 0.5825 GB, free: 2.992 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.4169, allocations: 1.156 kB / 0.5825 GB, free: 2.992 MB / 430.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.0006169/0.4176, allocations: 450.8 kB / 0.5829 GB, free: 2.547 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.4176, allocations: 9.094 kB / 0.5829 GB, free: 2.547 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.564e-05/0.4176, allocations: 34.19 kB / 0.5829 GB, free: 2.508 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.921e-05/0.4177, allocations: 15.19 kB / 0.583 GB, free: 2.5 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.4178, allocations: 190.4 kB / 0.5831 GB, free: 2.293 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.4179, allocations: 7.344 kB / 0.5832 GB, free: 2.289 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.156e-05/0.4179, allocations: 9.938 kB / 0.5832 GB, free: 2.285 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003186/0.4182, allocations: 125.7 kB / 0.5833 GB, free: 2.223 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.4182, allocations: 0 / 0.5833 GB, free: 2.223 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.691e-05/0.4183, allocations: 3.188 kB / 0.5833 GB, free: 2.223 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.4183, allocations: 0.75 kB / 0.5833 GB, free: 2.223 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003187/0.4186, allocations: 86.67 kB / 0.5834 GB, free: 2.207 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004963/0.4191, allocations: 338.5 kB / 0.5837 GB, free: 1.902 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003174/0.4194, allocations: 109.4 kB / 0.5838 GB, free: 1.855 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001849/0.4196, allocations: 75.05 kB / 0.5839 GB, free: 1.828 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.201e-05/0.4196, allocations: 0 / 0.5839 GB, free: 1.828 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003212/0.42, allocations: 120.4 kB / 0.584 GB, free: 1.766 MB / 430.1 MB Notification: Performance of pre-optimization done (n=6): time 1.453e-06/0.42, allocations: 0 / 0.584 GB, free: 1.766 MB / 430.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007192/0.4207, allocations: 280.2 kB / 0.5842 GB, free: 1.648 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.121e-05/0.4207, allocations: 86.72 kB / 0.5843 GB, free: 1.551 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.49e-05/0.4208, allocations: 131.1 kB / 0.5845 GB, free: 1.441 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.4209, allocations: 32.08 kB / 0.5845 GB, free: 1.406 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.133e-05/0.4209, allocations: 93.75 kB / 0.5846 GB, free: 1.316 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.062e-05/0.4209, allocations: 13.53 kB / 0.5846 GB, free: 1.309 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.739e-05/0.421, allocations: 30.45 kB / 0.5846 GB, free: 1.285 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.682e-05/0.421, allocations: 328.3 kB / 0.5849 GB, free: 0.9609 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001934/0.4212, allocations: 62.83 kB / 0.585 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001816/0.4214, allocations: 66.69 kB / 0.5851 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003267/0.4218, allocations: 186.7 kB / 0.5852 GB, free: 0.8008 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.4218, allocations: 0 / 0.5852 GB, free: 0.8008 MB / 430.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005023/0.4223, allocations: 266.3 kB / 0.5855 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.471e-05/0.4223, allocations: 65.73 kB / 0.5856 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.4224, allocations: 1.359 kB / 0.5856 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.4224, allocations: 1.031 kB / 0.5856 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.4225, allocations: 13.66 kB / 0.5856 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.4225, allocations: 9.062 kB / 0.5856 GB, free: 0.582 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000163/0.4227, allocations: 23.98 kB / 0.5856 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.11e-05/0.4227, allocations: 12.72 kB / 0.5856 GB, free: 0.5703 MB / 430.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 0.0001041/0.4228, allocations: 152.5 kB / 0.5858 GB, free: 428 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.259e-05/0.4229, allocations: 9.203 kB / 0.5858 GB, free: 424 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.278e-05/0.4229, allocations: 11.81 kB / 0.5858 GB, free: 408 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.4229, allocations: 1 kB / 0.5858 GB, free: 408 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.4229, allocations: 0 / 0.5858 GB, free: 408 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.4229, allocations: 0.8906 kB / 0.5858 GB, free: 408 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001321/0.4231, allocations: 196.3 kB / 0.586 GB, free: 196 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-06/0.4231, allocations: 0 / 0.586 GB, free: 196 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.549e-05/0.4232, allocations: 17.36 kB / 0.586 GB, free: 192 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.4232, allocations: 0 / 0.586 GB, free: 192 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.745e-05/0.4232, allocations: 7.406 kB / 0.586 GB, free: 188 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.4232, allocations: 1.219 kB / 0.586 GB, free: 188 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.4232, allocations: 0.6562 kB / 0.586 GB, free: 188 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005104/0.4237, allocations: 249.3 kB / 0.5862 GB, free: 44 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.206e-05/0.4238, allocations: 84.97 kB / 0.5863 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.006e-05/0.4238, allocations: 2.719 kB / 0.5863 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001556/0.424, allocations: 27.31 kB / 0.5863 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/0.4241, allocations: 32.19 kB / 0.5864 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.4242, allocations: 7.594 kB / 0.5864 GB, free: 15.93 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.16e-05/0.4242, allocations: 107.5 kB / 0.5865 GB, free: 15.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4242, allocations: 0 / 0.5865 GB, free: 15.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002256/0.4245, allocations: 25.59 kB / 0.5865 GB, free: 15.84 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.0008365/0.4253, allocations: 0.7781 MB / 0.5873 GB, free: 15.17 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005897/0.4259, allocations: 269.6 kB / 0.5875 GB, free: 15 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.4259, allocations: 0 / 0.5875 GB, free: 15 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002941/0.4262, allocations: 140.1 kB / 0.5877 GB, free: 14.92 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002131/0.4265, allocations: 18.27 kB / 0.5877 GB, free: 14.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002481/0.4289, allocations: 1.74 MB / 0.5894 GB, free: 13.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002672/0.4292, allocations: 0.6894 MB / 0.59 GB, free: 12.88 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.262e-05/0.4293, allocations: 15.75 kB / 0.5901 GB, free: 12.87 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.002e-05/0.4294, allocations: 25.95 kB / 0.5901 GB, free: 12.85 MB / 446.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4294, allocations: 3.938 kB / 0.5901 GB, free: 12.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01964/0.449, allocations: 2.948 MB / 0.593 GB, free: 12.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.038/7.487, allocations: 9.062 kB / 0.593 GB, free: 12.4 MB / 446.1 MB (rm -f IDEAS_IDEAS.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo IDEAS_IDEAS.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/IDEAS_IDEAS.Controls.Continuous.Examples.NumberOfRequests.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Controls_Continuous_Examples_NumberOfRequests.fmu > IDEAS_IDEAS.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)