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.007605/0.007605, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.00147/0.00147, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.491/1.491, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8284/0.8284, allocations: 135.1 MB / 425.7 MB, free: 4.094 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 62.16 kB / 0.5851 GB, free: 21.93 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2212, 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.003655/0.2249, allocations: 1.473 MB / 0.6656 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00114/0.2261, allocations: 466.9 kB / 0.666 GB, free: 4.391 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001124/0.2262, allocations: 4 kB / 0.666 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001428/0.2264, allocations: 3.938 kB / 0.666 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 9.108e-05/0.2265, allocations: 15.86 kB / 0.666 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003518/0.2269, allocations: 35.89 kB / 0.6661 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000266/0.2271, allocations: 99.77 kB / 0.6662 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.2273, allocations: 16.16 kB / 0.6662 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002054/0.2275, allocations: 47.84 kB / 0.6662 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000126/0.2276, allocations: 43.83 kB / 0.6663 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.141e-05/0.2277, allocations: 8 kB / 0.6663 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.119e-05/0.2277, allocations: 15.94 kB / 0.6663 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.665e-05/0.2278, allocations: 15.97 kB / 0.6663 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 9.958e-05/0.2279, allocations: 39.8 kB / 0.6663 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001983/0.2281, allocations: 82.56 kB / 0.6664 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.2281, allocations: 0 / 0.6664 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.316e-06/0.2281, allocations: 0 / 0.6664 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.945e-06/0.2281, allocations: 0 / 0.6664 GB, free: 3.973 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.0009709/0.2291, allocations: 443.5 kB / 0.6668 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.151e-05/0.2292, allocations: 9.109 kB / 0.6668 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.53e-05/0.2293, allocations: 46.73 kB / 0.6669 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.153e-05/0.2293, allocations: 12.84 kB / 0.6669 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002564/0.2296, allocations: 190.2 kB / 0.6671 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.2296, allocations: 4.375 kB / 0.6671 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.52e-05/0.2297, allocations: 8.375 kB / 0.6671 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003716/0.23, allocations: 113.5 kB / 0.6672 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.2301, allocations: 0 / 0.6672 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.109e-05/0.2301, allocations: 8 kB / 0.6672 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.2301, allocations: 0 / 0.6672 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003301/0.2304, allocations: 91.92 kB / 0.6673 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006666/0.2311, allocations: 336.5 kB / 0.6676 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003232/0.2315, allocations: 102.5 kB / 0.6677 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001852/0.2316, allocations: 76.92 kB / 0.6678 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.2317, allocations: 4.062 kB / 0.6678 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004011/0.2321, allocations: 123.3 kB / 0.6679 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=6): time 4.569e-06/0.2321, allocations: 3.984 kB / 0.6679 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.0007745/0.2329, allocations: 275.2 kB / 0.6682 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.677e-05/0.233, allocations: 89.09 kB / 0.6683 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.2331, allocations: 131.9 kB / 0.6684 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.616e-05/0.2331, allocations: 25.7 kB / 0.6684 GB, free: 1.695 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.06e-05/0.2332, allocations: 99.98 kB / 0.6685 GB, free: 1.594 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.653e-05/0.2333, allocations: 15.81 kB / 0.6685 GB, free: 1.578 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.178e-05/0.2334, allocations: 33.7 kB / 0.6686 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001584/0.2335, allocations: 326.8 kB / 0.6689 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001868/0.2337, allocations: 63.95 kB / 0.6689 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001728/0.2339, allocations: 63.95 kB / 0.669 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003769/0.2343, allocations: 193.9 kB / 0.6692 GB, free: 0.875 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.2343, allocations: 0 / 0.6692 GB, free: 0.875 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005106/0.2348, allocations: 256.9 kB / 0.6694 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.751e-05/0.2349, allocations: 67.39 kB / 0.6695 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.2349, allocations: 0 / 0.6695 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.2349, allocations: 0 / 0.6695 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.2351, allocations: 11.98 kB / 0.6695 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.2351, allocations: 4 kB / 0.6695 GB, free: 0.5117 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001484/0.2353, allocations: 27.88 kB / 0.6695 GB, free: 496 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.584e-05/0.2353, allocations: 12.19 kB / 0.6695 GB, free: 484 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.0001474/0.2354, allocations: 143.5 kB / 0.6697 GB, free: 324 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.694e-05/0.2355, allocations: 11.91 kB / 0.6697 GB, free: 312 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.769e-05/0.2355, allocations: 12.36 kB / 0.6697 GB, free: 300 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-06/0.2355, allocations: 4 kB / 0.6697 GB, free: 296 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.2355, allocations: 0 / 0.6697 GB, free: 296 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.2356, allocations: 8 kB / 0.6697 GB, free: 288 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001815/0.2357, allocations: 197.5 kB / 0.6699 GB, free: 40 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2357, allocations: 0 / 0.6699 GB, free: 40 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.107e-05/0.2358, allocations: 11.98 kB / 0.6699 GB, free: 28 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.2359, allocations: 4 kB / 0.6699 GB, free: 24 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.2359, allocations: 3.938 kB / 0.6699 GB, free: 20 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.2359, allocations: 0 / 0.6699 GB, free: 20 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.2359, allocations: 7.938 kB / 0.6699 GB, free: 12 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005118/0.2364, allocations: 246.6 kB / 0.6702 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 7.016e-05/0.2365, allocations: 85.02 kB / 0.6702 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.238e-05/0.2365, allocations: 7.984 kB / 0.6702 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001354/0.2367, allocations: 19.98 kB / 0.6703 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/0.2368, allocations: 31.95 kB / 0.6703 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.892e-05/0.2369, allocations: 8 kB / 0.6703 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 7.545e-05/0.2369, allocations: 103.2 kB / 0.6704 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2369, allocations: 0 / 0.6704 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002288/0.2372, allocations: 31.94 kB / 0.6704 GB, free: 15.45 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.0009885/0.2382, allocations: 0.7794 MB / 0.6712 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0006051/0.2388, allocations: 266.7 kB / 0.6714 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.2388, allocations: 0 / 0.6714 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000302/0.2391, allocations: 135.3 kB / 0.6716 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.2394, allocations: 21.61 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.003167/0.2426, allocations: 1.754 MB / 0.6733 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004374/0.2431, allocations: 0.6885 MB / 0.674 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.956e-05/0.2432, allocations: 15.98 kB / 0.674 GB, free: 11.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.26e-05/0.2433, allocations: 19.44 kB / 0.674 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of SimCode: time 7.01e-07/0.2433, allocations: 0 / 0.674 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03375/0.277, allocations: 2.995 MB / 0.6769 GB, free: 8.676 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.886/8.163, allocations: 15.31 kB / 0.677 GB, free: 8.664 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)