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.007237/0.007237, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001253/0.001253, allocations: 196.7 kB / 16.68 MB, free: 5.926 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.493/1.493, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9123/0.9123, allocations: 135.1 MB / 425.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 62.48 kB / 0.5851 GB, free: 22.05 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.2153, allocations: 80.92 MB / 0.6641 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.NumberOfRequests): time 0.003405/0.2188, allocations: 1.477 MB / 0.6656 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001006/0.2198, allocations: 466.9 kB / 0.666 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.228e-05/0.2199, allocations: 0 / 0.666 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001193/0.22, allocations: 11.92 kB / 0.666 GB, free: 4.375 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.697e-05/0.2201, allocations: 11.88 kB / 0.666 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002786/0.2204, allocations: 31.89 kB / 0.6661 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002275/0.2207, allocations: 107.7 kB / 0.6662 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.2208, allocations: 20.12 kB / 0.6662 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001733/0.221, allocations: 43.84 kB / 0.6662 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001129/0.2211, allocations: 47.81 kB / 0.6663 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.855e-05/0.2211, allocations: 8 kB / 0.6663 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.2e-05/0.2212, allocations: 8 kB / 0.6663 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.416e-05/0.2212, allocations: 11.98 kB / 0.6663 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.961e-05/0.2213, allocations: 43.78 kB / 0.6663 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001861/0.2215, allocations: 82.58 kB / 0.6664 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.2215, allocations: 0 / 0.6664 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2215, allocations: 0 / 0.6664 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.625e-06/0.2216, allocations: 0 / 0.6664 GB, free: 3.969 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.0008962/0.2225, allocations: 447.5 kB / 0.6668 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.2225, allocations: 13.05 kB / 0.6668 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.887e-05/0.2226, allocations: 38.75 kB / 0.6669 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.813e-05/0.2226, allocations: 8.844 kB / 0.6669 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002387/0.2229, allocations: 195.1 kB / 0.6671 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.2229, allocations: 4.375 kB / 0.6671 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.542e-05/0.2229, allocations: 12.38 kB / 0.6671 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003791/0.2233, allocations: 109.6 kB / 0.6672 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.2233, allocations: 0 / 0.6672 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.2233, allocations: 11.98 kB / 0.6672 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.2234, allocations: 0 / 0.6672 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003152/0.2237, allocations: 95.86 kB / 0.6673 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006267/0.2243, allocations: 328.6 kB / 0.6676 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003312/0.2247, allocations: 106.5 kB / 0.6677 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001943/0.2249, allocations: 80.92 kB / 0.6678 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.543e-05/0.2249, allocations: 0 / 0.6678 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003897/0.2253, allocations: 123.3 kB / 0.6679 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=6): time 1.573e-06/0.2253, allocations: 0 / 0.6679 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.0007671/0.2261, allocations: 283.2 kB / 0.6682 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.535e-05/0.2262, allocations: 85.11 kB / 0.6683 GB, free: 1.855 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001244/0.2263, allocations: 133.1 kB / 0.6684 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.2263, allocations: 25.7 kB / 0.6684 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.018e-05/0.2264, allocations: 104 kB / 0.6685 GB, free: 1.582 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.566e-05/0.2264, allocations: 15.81 kB / 0.6685 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.602e-05/0.2265, allocations: 25.72 kB / 0.6686 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001407/0.2267, allocations: 330.8 kB / 0.6689 GB, free: 1.203 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002022/0.2269, allocations: 67.89 kB / 0.6689 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.2271, allocations: 71.88 kB / 0.669 GB, free: 1.066 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003607/0.2274, allocations: 177.9 kB / 0.6692 GB, free: 0.8711 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.2275, allocations: 0 / 0.6692 GB, free: 0.8711 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005083/0.228, allocations: 256.9 kB / 0.6694 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.344e-05/0.228, allocations: 67.39 kB / 0.6695 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2281, allocations: 0 / 0.6695 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.2281, allocations: 4 kB / 0.6695 GB, free: 0.5195 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.2282, allocations: 11.98 kB / 0.6695 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.2282, allocations: 0 / 0.6695 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000165/0.2284, allocations: 27.88 kB / 0.6695 GB, free: 492 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.438e-05/0.2284, allocations: 15.94 kB / 0.6695 GB, free: 476 kB / 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.0001276/0.2286, allocations: 147.5 kB / 0.6697 GB, free: 312 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.359e-05/0.2286, allocations: 7.906 kB / 0.6697 GB, free: 304 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.166e-05/0.2286, allocations: 12.38 kB / 0.6697 GB, free: 292 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2287, allocations: 0 / 0.6697 GB, free: 292 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.2287, allocations: 0 / 0.6697 GB, free: 292 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.2287, allocations: 0 / 0.6697 GB, free: 292 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001813/0.2289, allocations: 205.5 kB / 0.6699 GB, free: 36 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2289, allocations: 0 / 0.6699 GB, free: 36 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.266e-05/0.229, allocations: 19.92 kB / 0.6699 GB, free: 16 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.229, allocations: 0 / 0.6699 GB, free: 16 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.229, allocations: 11.92 kB / 0.6699 GB, free: 4 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.229, allocations: 0 / 0.6699 GB, free: 4 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.229, allocations: 0 / 0.6699 GB, free: 4 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005312/0.2295, allocations: 250.6 kB / 0.6702 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.228e-05/0.2296, allocations: 85.02 kB / 0.6702 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.574e-05/0.2296, allocations: 320 / 0.6702 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.2298, allocations: 24.06 kB / 0.6703 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001341/0.2299, allocations: 39.91 kB / 0.6703 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.45e-05/0.23, allocations: 8 kB / 0.6703 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 7.572e-05/0.23, allocations: 103.2 kB / 0.6704 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2301, allocations: 0 / 0.6704 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002082/0.2303, allocations: 24 kB / 0.6704 GB, free: 15.44 MB / 0.5137 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.0008487/0.2311, allocations: 0.7794 MB / 0.6712 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005435/0.2317, allocations: 266.6 kB / 0.6714 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2317, allocations: 4 kB / 0.6715 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000258/0.232, allocations: 135.3 kB / 0.6716 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002238/0.2322, allocations: 15.91 kB / 0.6716 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00258/0.2348, allocations: 1.754 MB / 0.6733 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003136/0.2351, allocations: 0.6885 MB / 0.674 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 5.622e-05/0.2352, allocations: 7.984 kB / 0.674 GB, free: 11.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.122e-05/0.2352, allocations: 19.44 kB / 0.674 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of SimCode: time 3.51e-07/0.2352, allocations: 8 kB / 0.674 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.023/0.2583, allocations: 3.069 MB / 0.677 GB, free: 8.59 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.996/8.255, allocations: 14.5 kB / 0.677 GB, free: 8.582 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Continuous_Examples_NumberOfRequests.fmu > IDEAS_dev_IDEAS.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)