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.001114/0.001118, 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.001145/0.001146, allocations: 194.7 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.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7568/0.7568, allocations: 132.2 MB / 422.6 MB, free: 1.781 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 63.17 kB / 0.5019 GB, free: 3.789 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.3299, allocations: 80.19 MB / 0.5802 GB, free: 4.582 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.NumberOfRequests): time 0.002288/0.3323, allocations: 1.478 MB / 0.5816 GB, free: 3.543 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006372/0.3329, allocations: 464.2 kB / 0.5821 GB, free: 3.227 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.425e-05/0.333, allocations: 1 kB / 0.5821 GB, free: 3.227 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 8.327e-05/0.3331, allocations: 8.531 kB / 0.5821 GB, free: 3.219 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.058e-05/0.3331, allocations: 16.08 kB / 0.5821 GB, free: 3.207 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001803/0.3333, allocations: 41.2 kB / 0.5821 GB, free: 3.184 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001372/0.3334, allocations: 98.97 kB / 0.5822 GB, free: 3.141 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.195e-05/0.3335, allocations: 17.61 kB / 0.5822 GB, free: 3.133 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001067/0.3337, allocations: 46.3 kB / 0.5823 GB, free: 3.113 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.595e-05/0.3337, allocations: 47.55 kB / 0.5823 GB, free: 3.09 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.739e-05/0.3338, allocations: 8.656 kB / 0.5823 GB, free: 3.09 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.041e-05/0.3338, allocations: 7.406 kB / 0.5823 GB, free: 3.09 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.932e-05/0.3338, allocations: 14.95 kB / 0.5824 GB, free: 3.082 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.84e-05/0.3339, allocations: 37.45 kB / 0.5824 GB, free: 3.062 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001386/0.334, allocations: 83.17 kB / 0.5825 GB, free: 3.027 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3341, allocations: 2.219 kB / 0.5825 GB, free: 3.027 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3341, allocations: 0 / 0.5825 GB, free: 3.027 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.3341, allocations: 4 kB / 0.5825 GB, free: 3.023 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.000551/0.3346, allocations: 451 kB / 0.5829 GB, free: 2.578 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.3347, allocations: 9.031 kB / 0.5829 GB, free: 2.578 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.833e-05/0.3347, allocations: 38.36 kB / 0.583 GB, free: 2.535 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.716e-05/0.3347, allocations: 11.08 kB / 0.583 GB, free: 2.531 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.3349, allocations: 187.4 kB / 0.5831 GB, free: 2.324 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.3349, allocations: 4.125 kB / 0.5832 GB, free: 2.324 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.042e-05/0.3349, allocations: 5.719 kB / 0.5832 GB, free: 2.324 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002952/0.3352, allocations: 125.5 kB / 0.5833 GB, free: 2.262 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.3352, allocations: 1.375 kB / 0.5833 GB, free: 2.262 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.3353, allocations: 0.9375 kB / 0.5833 GB, free: 2.262 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.3353, allocations: 1.719 kB / 0.5833 GB, free: 2.262 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002913/0.3356, allocations: 90.88 kB / 0.5834 GB, free: 2.242 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004406/0.336, allocations: 338.2 kB / 0.5837 GB, free: 1.938 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000301/0.3363, allocations: 109.1 kB / 0.5838 GB, free: 1.891 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001743/0.3365, allocations: 71.42 kB / 0.5839 GB, free: 1.867 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.616e-05/0.3365, allocations: 4.812 kB / 0.5839 GB, free: 1.863 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003096/0.3368, allocations: 120.1 kB / 0.584 GB, free: 1.801 MB / 430.1 MB Notification: Performance of pre-optimization done (n=6): time 1.663e-06/0.3369, allocations: 0 / 0.584 GB, free: 1.801 MB / 430.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006612/0.3375, allocations: 272 kB / 0.5842 GB, free: 1.691 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.228e-05/0.3376, allocations: 90.42 kB / 0.5843 GB, free: 1.59 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.68e-05/0.3377, allocations: 135.1 kB / 0.5845 GB, free: 1.477 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.526e-05/0.3377, allocations: 32.45 kB / 0.5845 GB, free: 1.441 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.475e-05/0.3377, allocations: 92.89 kB / 0.5846 GB, free: 1.352 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.03e-05/0.3377, allocations: 13.95 kB / 0.5846 GB, free: 1.344 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.565e-05/0.3378, allocations: 31.36 kB / 0.5846 GB, free: 1.32 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.753e-05/0.3378, allocations: 324 kB / 0.5849 GB, free: 1 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001925/0.338, allocations: 66.62 kB / 0.585 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.3382, allocations: 70.53 kB / 0.5851 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003103/0.3385, allocations: 179.3 kB / 0.5852 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3386, allocations: 0 / 0.5852 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004653/0.339, allocations: 265.6 kB / 0.5855 GB, free: 0.6953 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.694e-05/0.3391, allocations: 65.72 kB / 0.5855 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.3391, allocations: 1.453 kB / 0.5855 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.3391, allocations: 4.734 kB / 0.5856 GB, free: 0.625 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.3392, allocations: 18.33 kB / 0.5856 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.3392, allocations: 1.062 kB / 0.5856 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000149/0.3394, allocations: 23.12 kB / 0.5856 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.819e-05/0.3394, allocations: 8.5 kB / 0.5856 GB, free: 0.6133 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.601e-05/0.3395, allocations: 160 kB / 0.5858 GB, free: 464 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.048e-05/0.3395, allocations: 9.969 kB / 0.5858 GB, free: 460 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.701e-05/0.3396, allocations: 11.48 kB / 0.5858 GB, free: 444 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3396, allocations: 1.094 kB / 0.5858 GB, free: 444 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.3396, allocations: 0.6875 kB / 0.5858 GB, free: 444 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.3396, allocations: 0.7031 kB / 0.5858 GB, free: 444 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001029/0.3397, allocations: 201.7 kB / 0.586 GB, free: 228 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3397, allocations: 3.938 kB / 0.586 GB, free: 224 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.373e-05/0.3398, allocations: 20.44 kB / 0.586 GB, free: 216 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.3398, allocations: 0 / 0.586 GB, free: 216 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.424e-05/0.3398, allocations: 4.625 kB / 0.586 GB, free: 216 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3398, allocations: 0 / 0.586 GB, free: 216 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3398, allocations: 0.7969 kB / 0.586 GB, free: 216 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000436/0.3403, allocations: 240.6 kB / 0.5862 GB, free: 80 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.144e-05/0.3403, allocations: 88.16 kB / 0.5863 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.916e-05/0.3404, allocations: 7.469 kB / 0.5863 GB, free: 15.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000143/0.3405, allocations: 22.69 kB / 0.5863 GB, free: 15.97 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.3406, allocations: 33.45 kB / 0.5864 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/0.3407, allocations: 4.359 kB / 0.5864 GB, free: 15.96 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.17e-05/0.3407, allocations: 103.6 kB / 0.5865 GB, free: 15.88 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3407, allocations: 0 / 0.5865 GB, free: 15.88 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002073/0.341, allocations: 26.59 kB / 0.5865 GB, free: 15.87 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.0007647/0.3417, allocations: 0.7781 MB / 0.5873 GB, free: 15.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005192/0.3423, allocations: 273.5 kB / 0.5875 GB, free: 15.04 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3423, allocations: 0 / 0.5875 GB, free: 15.04 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002565/0.3425, allocations: 136.6 kB / 0.5876 GB, free: 14.95 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002003/0.3427, allocations: 14.03 kB / 0.5877 GB, free: 14.95 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002243/0.345, allocations: 1.74 MB / 0.5894 GB, free: 13.61 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002609/0.3453, allocations: 0.6888 MB / 0.59 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.635e-05/0.3453, allocations: 16.58 kB / 0.5901 GB, free: 12.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.449e-05/0.3454, allocations: 20.98 kB / 0.5901 GB, free: 12.89 MB / 446.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3454, allocations: 1.375 kB / 0.5901 GB, free: 12.89 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2071/0.5525, allocations: 2.965 MB / 0.593 GB, free: 12.44 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.203/7.755, allocations: 6.609 kB / 0.593 GB, free: 12.44 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)