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.001215/0.001215, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001252/0.001252, allocations: 191.8 kB / 16.25 MB, free: 6.633 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.276/1.276, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7339/0.7339, allocations: 132.2 MB / 422.3 MB, free: 1.918 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 59.5 kB / 0.5014 GB, free: 4.105 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3638/0.365, allocations: 80.19 MB / 0.5797 GB, free: 4.543 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.NumberOfRequests): time 0.002226/0.3672, allocations: 1.544 MB / 0.5812 GB, free: 3.469 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006226/0.3679, allocations: 463 kB / 0.5816 GB, free: 3.148 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.025e-05/0.3679, allocations: 1.031 kB / 0.5816 GB, free: 3.148 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 8.437e-05/0.368, allocations: 1.406 kB / 0.5816 GB, free: 3.148 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.472e-05/0.3681, allocations: 11.11 kB / 0.5816 GB, free: 3.141 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001776/0.3682, allocations: 38.08 kB / 0.5817 GB, free: 3.117 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001378/0.3684, allocations: 103.9 kB / 0.5818 GB, free: 3.07 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.537e-05/0.3685, allocations: 8.531 kB / 0.5818 GB, free: 3.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001223/0.3686, allocations: 47.48 kB / 0.5818 GB, free: 3.051 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.632e-05/0.3687, allocations: 46.45 kB / 0.5819 GB, free: 3.027 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.734e-05/0.3687, allocations: 8.625 kB / 0.5819 GB, free: 3.027 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.791e-05/0.3688, allocations: 7.25 kB / 0.5819 GB, free: 3.027 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.773e-05/0.3688, allocations: 19.42 kB / 0.5819 GB, free: 3.016 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.006e-05/0.3689, allocations: 37.95 kB / 0.5819 GB, free: 2.996 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001198/0.369, allocations: 80.09 kB / 0.582 GB, free: 2.965 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.369, allocations: 0 / 0.582 GB, free: 2.965 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.369, allocations: 3.938 kB / 0.582 GB, free: 2.961 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.369, allocations: 0.7031 kB / 0.582 GB, free: 2.961 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.0005559/0.3696, allocations: 459.7 kB / 0.5824 GB, free: 2.508 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.3696, allocations: 9.938 kB / 0.5825 GB, free: 2.508 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.796e-05/0.3697, allocations: 34.95 kB / 0.5825 GB, free: 2.469 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.639e-05/0.3697, allocations: 14.67 kB / 0.5825 GB, free: 2.461 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000125/0.3698, allocations: 187.2 kB / 0.5827 GB, free: 2.254 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.457e-06/0.3698, allocations: 3.812 kB / 0.5827 GB, free: 2.254 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.091e-05/0.3699, allocations: 7.188 kB / 0.5827 GB, free: 2.254 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002791/0.3702, allocations: 116.3 kB / 0.5828 GB, free: 2.199 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.3702, allocations: 9.047 kB / 0.5828 GB, free: 2.191 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.3702, allocations: 2.453 kB / 0.5828 GB, free: 2.191 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.3702, allocations: 1.688 kB / 0.5828 GB, free: 2.191 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002823/0.3705, allocations: 90.05 kB / 0.5829 GB, free: 2.172 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004288/0.3709, allocations: 342.1 kB / 0.5832 GB, free: 1.863 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002772/0.3712, allocations: 105.2 kB / 0.5833 GB, free: 1.82 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.3714, allocations: 71.39 kB / 0.5834 GB, free: 1.797 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.509e-05/0.3714, allocations: 0 / 0.5834 GB, free: 1.797 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002788/0.3717, allocations: 128.4 kB / 0.5835 GB, free: 1.727 MB / 430.1 MB Notification: Performance of pre-optimization done (n=6): time 1.342e-06/0.3717, allocations: 0.875 kB / 0.5835 GB, free: 1.727 MB / 430.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006205/0.3723, allocations: 267.8 kB / 0.5838 GB, free: 1.621 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.149e-05/0.3724, allocations: 86.58 kB / 0.5839 GB, free: 1.523 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.3e-05/0.3724, allocations: 132 kB / 0.584 GB, free: 1.41 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/0.3725, allocations: 33.53 kB / 0.584 GB, free: 1.375 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.379e-05/0.3725, allocations: 93.06 kB / 0.5841 GB, free: 1.285 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.3725, allocations: 12.59 kB / 0.5841 GB, free: 1.277 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.488e-05/0.3726, allocations: 32.03 kB / 0.5841 GB, free: 1.254 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.444e-05/0.3726, allocations: 327.5 kB / 0.5845 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001846/0.3728, allocations: 63.53 kB / 0.5845 GB, free: 0.918 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001629/0.373, allocations: 70.94 kB / 0.5846 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000284/0.3733, allocations: 186.2 kB / 0.5848 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3733, allocations: 1.438 kB / 0.5848 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004331/0.3737, allocations: 260.6 kB / 0.585 GB, free: 0.625 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.357e-05/0.3738, allocations: 66.52 kB / 0.5851 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.3738, allocations: 5.875 kB / 0.5851 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.3738, allocations: 0 / 0.5851 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.3739, allocations: 17.16 kB / 0.5851 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.96e-06/0.3739, allocations: 1.547 kB / 0.5851 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000143/0.3741, allocations: 24.38 kB / 0.5851 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.707e-05/0.3741, allocations: 7.484 kB / 0.5851 GB, free: 0.543 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 8.065e-05/0.3742, allocations: 152.7 kB / 0.5853 GB, free: 400 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.062e-05/0.3742, allocations: 13.81 kB / 0.5853 GB, free: 392 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.579e-05/0.3742, allocations: 11.05 kB / 0.5853 GB, free: 376 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.3743, allocations: 1.922 kB / 0.5853 GB, free: 376 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.3743, allocations: 0 / 0.5853 GB, free: 376 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.3743, allocations: 1.125 kB / 0.5853 GB, free: 376 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.932e-05/0.3744, allocations: 203 kB / 0.5855 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.3744, allocations: 1.625 kB / 0.5855 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.897e-05/0.3745, allocations: 12.61 kB / 0.5855 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.3745, allocations: 0 / 0.5855 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.3745, allocations: 7.156 kB / 0.5855 GB, free: 152 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.3745, allocations: 5.75 kB / 0.5855 GB, free: 148 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.3745, allocations: 0 / 0.5855 GB, free: 148 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004106/0.3749, allocations: 241.5 kB / 0.5858 GB, free: 12 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.823e-05/0.375, allocations: 84.81 kB / 0.5858 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.756e-05/0.375, allocations: 3.203 kB / 0.5858 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.3752, allocations: 26.52 kB / 0.5859 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.3753, allocations: 32.88 kB / 0.5859 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.3753, allocations: 4.281 kB / 0.5859 GB, free: 15.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.684e-05/0.3754, allocations: 105.5 kB / 0.586 GB, free: 15.81 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3754, allocations: 0.9688 kB / 0.586 GB, free: 15.81 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000199/0.3756, allocations: 26.14 kB / 0.586 GB, free: 15.81 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.0006988/0.3763, allocations: 0.7857 MB / 0.5868 GB, free: 15.14 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004937/0.3768, allocations: 269.2 kB / 0.5871 GB, free: 14.97 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3768, allocations: 1.031 kB / 0.5871 GB, free: 14.97 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002482/0.377, allocations: 139.6 kB / 0.5872 GB, free: 14.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001946/0.3773, allocations: 14.27 kB / 0.5872 GB, free: 14.88 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002101/0.3794, allocations: 1.754 MB / 0.5889 GB, free: 13.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002056/0.3796, allocations: 0.69 MB / 0.5896 GB, free: 12.82 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.073e-05/0.3796, allocations: 11.81 kB / 0.5896 GB, free: 12.82 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.823e-05/0.3797, allocations: 26.28 kB / 0.5896 GB, free: 12.8 MB / 446.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3797, allocations: 0 / 0.5896 GB, free: 12.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.692/2.071, allocations: 2.717 MB / 0.5923 GB, free: 12.48 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002106/2.072, allocations: 186 kB / 0.5925 GB, free: 12.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.746/3.817, allocations: 7.328 kB / 0.5925 GB, free: 12.22 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Continuous_Examples_NumberOfRequests.fmu > IDEAS_IDEAS.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)