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.005988/0.005988, allocations: 96.83 kB / 15.73 MB, free: 6.055 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.001273/0.001273, allocations: 197.2 kB / 16.68 MB, free: 5.977 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9227/0.9227, allocations: 135.5 MB / 426.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 63.91 kB / 0.5857 GB, free: 3.262 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3588/0.3606, allocations: 81.02 MB / 0.6648 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.NumberOfRequests): time 0.001869/0.3625, allocations: 1.464 MB / 0.6663 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0005487/0.3631, allocations: 471.9 kB / 0.6667 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.145e-05/0.3631, allocations: 0 / 0.6667 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 8.538e-05/0.3632, allocations: 5.219 kB / 0.6667 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.656e-05/0.3633, allocations: 13.05 kB / 0.6667 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001715/0.3634, allocations: 37.45 kB / 0.6668 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001327/0.3636, allocations: 102.6 kB / 0.6669 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.338e-05/0.3637, allocations: 18.41 kB / 0.6669 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.686e-05/0.3638, allocations: 45.41 kB / 0.6669 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.556e-05/0.3639, allocations: 40.02 kB / 0.667 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.503e-05/0.3639, allocations: 7.75 kB / 0.667 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.924e-05/0.3639, allocations: 8.594 kB / 0.667 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.535e-05/0.3639, allocations: 22.84 kB / 0.667 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.416e-05/0.364, allocations: 39.48 kB / 0.667 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001049/0.3641, allocations: 79.77 kB / 0.6671 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.3641, allocations: 1.5 kB / 0.6671 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3641, allocations: 0 / 0.6671 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.637e-06/0.3641, allocations: 0 / 0.6671 GB, free: 5.031 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.0005151/0.3647, allocations: 454 kB / 0.6676 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.3647, allocations: 9.281 kB / 0.6676 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.434e-05/0.3647, allocations: 41.86 kB / 0.6676 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.108e-05/0.3648, allocations: 10.05 kB / 0.6676 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.3649, allocations: 188.9 kB / 0.6678 GB, free: 4.301 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.3649, allocations: 8.344 kB / 0.6678 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.809e-05/0.3649, allocations: 10.31 kB / 0.6678 GB, free: 4.293 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002514/0.3652, allocations: 118.3 kB / 0.6679 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.3652, allocations: 0 / 0.6679 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.3652, allocations: 2.406 kB / 0.6679 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.3652, allocations: 1.219 kB / 0.6679 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002651/0.3655, allocations: 95.39 kB / 0.668 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003795/0.3659, allocations: 326.9 kB / 0.6683 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002741/0.3661, allocations: 106.3 kB / 0.6684 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001561/0.3663, allocations: 74.97 kB / 0.6685 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.572e-05/0.3663, allocations: 5.25 kB / 0.6685 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002507/0.3666, allocations: 127.7 kB / 0.6686 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=6): time 1.383e-06/0.3666, allocations: 0 / 0.6686 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.0005891/0.3672, allocations: 273 kB / 0.6689 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.903e-05/0.3672, allocations: 88.62 kB / 0.669 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.539e-05/0.3673, allocations: 129.4 kB / 0.6691 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.3673, allocations: 33.33 kB / 0.6691 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.974e-05/0.3674, allocations: 86.89 kB / 0.6692 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.714e-05/0.3674, allocations: 23.83 kB / 0.6692 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.992e-05/0.3674, allocations: 33.72 kB / 0.6693 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 3.57e-05/0.3675, allocations: 328.1 kB / 0.6696 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.3676, allocations: 61.89 kB / 0.6696 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001553/0.3678, allocations: 71.23 kB / 0.6697 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002746/0.3681, allocations: 177.8 kB / 0.6699 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3681, allocations: 5.594 kB / 0.6699 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004171/0.3685, allocations: 261 kB / 0.6701 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.069e-05/0.3686, allocations: 65.08 kB / 0.6702 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.3686, allocations: 0 / 0.6702 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.3686, allocations: 0 / 0.6702 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.3687, allocations: 14.27 kB / 0.6702 GB, free: 2.336 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.3687, allocations: 0 / 0.6702 GB, free: 2.336 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000137/0.3688, allocations: 33.98 kB / 0.6702 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.695e-05/0.3689, allocations: 7.875 kB / 0.6702 GB, free: 2.312 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 7.114e-05/0.3689, allocations: 149.7 kB / 0.6704 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.793e-05/0.369, allocations: 9.141 kB / 0.6704 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.303e-05/0.369, allocations: 17.59 kB / 0.6704 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.369, allocations: 1.375 kB / 0.6704 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.369, allocations: 3.938 kB / 0.6704 GB, free: 2.137 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.369, allocations: 1.219 kB / 0.6704 GB, free: 2.137 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.379e-05/0.3691, allocations: 192.5 kB / 0.6706 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3691, allocations: 4 kB / 0.6706 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.67e-05/0.3692, allocations: 16.42 kB / 0.6706 GB, free: 1.902 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.3692, allocations: 0 / 0.6706 GB, free: 1.902 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.3692, allocations: 7.375 kB / 0.6706 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.3692, allocations: 3.938 kB / 0.6706 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3692, allocations: 1.344 kB / 0.6706 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003948/0.3696, allocations: 249.2 kB / 0.6709 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.869e-05/0.3697, allocations: 87.28 kB / 0.671 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.285e-05/0.3697, allocations: 6.859 kB / 0.671 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001256/0.3698, allocations: 16.2 kB / 0.671 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.916e-05/0.3699, allocations: 43.11 kB / 0.671 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.3699, allocations: 2.094 kB / 0.671 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.753e-05/0.37, allocations: 107 kB / 0.6711 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.37, allocations: 0 / 0.6711 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001884/0.3702, allocations: 26.25 kB / 0.6711 GB, free: 1.496 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.0005387/0.3707, allocations: 0.7809 MB / 0.6719 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004041/0.3711, allocations: 268.3 kB / 0.6722 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.3711, allocations: 3.938 kB / 0.6722 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002041/0.3714, allocations: 137.9 kB / 0.6723 GB, free: 0.5039 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00018/0.3715, allocations: 21.95 kB / 0.6723 GB, free: 0.4922 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002032/0.3736, allocations: 1.751 MB / 0.674 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002844/0.3739, allocations: 0.6897 MB / 0.6747 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 4.932e-05/0.3739, allocations: 12.86 kB / 0.6747 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.838e-05/0.374, allocations: 19.66 kB / 0.6747 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of SimCode: time 2.2e-07/0.374, allocations: 0 / 0.6747 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2278/0.6018, allocations: 3 MB / 0.6777 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.634/8.236, allocations: 8.578 kB / 0.6777 GB, free: 12.73 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)