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.001312/0.001312, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001461/0.001461, allocations: 195.9 kB / 16.14 MB, free: 6.664 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.398/1.398, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8007/0.8007, allocations: 132.2 MB / 422.1 MB, free: 2.035 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002073/0.002073, allocations: 64.28 kB / 0.5012 GB, free: 9.121 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1935/0.1956, allocations: 80.2 MB / 0.5795 GB, free: 9.145 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.NumberOfRequests): time 0.003123/0.1988, allocations: 1.542 MB / 0.581 GB, free: 7.594 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008181/0.1996, allocations: 466.8 kB / 0.5814 GB, free: 7.133 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.588e-05/0.1997, allocations: 0 / 0.5814 GB, free: 7.133 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001102/0.1998, allocations: 3.938 kB / 0.5814 GB, free: 7.129 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.624e-05/0.1999, allocations: 7.938 kB / 0.5815 GB, free: 7.121 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002268/0.2001, allocations: 31.95 kB / 0.5815 GB, free: 7.09 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001352/0.2003, allocations: 95.75 kB / 0.5816 GB, free: 6.996 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.2004, allocations: 8.188 kB / 0.5816 GB, free: 6.988 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001361/0.2005, allocations: 47.78 kB / 0.5816 GB, free: 6.941 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.504e-05/0.2006, allocations: 39.88 kB / 0.5817 GB, free: 6.902 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.583e-05/0.2007, allocations: 4 kB / 0.5817 GB, free: 6.898 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.749e-05/0.2007, allocations: 4 kB / 0.5817 GB, free: 6.895 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.051e-05/0.2008, allocations: 19.86 kB / 0.5817 GB, free: 6.875 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.854e-05/0.2008, allocations: 31.86 kB / 0.5817 GB, free: 6.844 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001451/0.201, allocations: 84.03 kB / 0.5818 GB, free: 6.762 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.201, allocations: 0 / 0.5818 GB, free: 6.762 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.201, allocations: 0 / 0.5818 GB, free: 6.762 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.201, allocations: 0 / 0.5818 GB, free: 6.762 MB / 494.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.0007585/0.2018, allocations: 455.7 kB / 0.5822 GB, free: 6.258 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.2018, allocations: 16.02 kB / 0.5823 GB, free: 6.242 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.605e-05/0.2019, allocations: 38.75 kB / 0.5823 GB, free: 6.195 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.554e-05/0.2019, allocations: 8.844 kB / 0.5823 GB, free: 6.188 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002192/0.2022, allocations: 184.2 kB / 0.5825 GB, free: 5.969 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.2022, allocations: 16.36 kB / 0.5825 GB, free: 5.953 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.462e-05/0.2022, allocations: 4.375 kB / 0.5825 GB, free: 5.949 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003558/0.2026, allocations: 121.5 kB / 0.5826 GB, free: 5.824 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.036e-06/0.2026, allocations: 0 / 0.5826 GB, free: 5.824 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.534e-05/0.2026, allocations: 0 / 0.5826 GB, free: 5.824 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.2026, allocations: 4 kB / 0.5826 GB, free: 5.82 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003003/0.2029, allocations: 87.92 kB / 0.5827 GB, free: 5.734 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005602/0.2035, allocations: 336.6 kB / 0.583 GB, free: 5.355 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003207/0.2038, allocations: 106.4 kB / 0.5831 GB, free: 5.242 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000184/0.204, allocations: 72.94 kB / 0.5832 GB, free: 5.168 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.2041, allocations: 8 kB / 0.5832 GB, free: 5.16 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003653/0.2044, allocations: 119.3 kB / 0.5833 GB, free: 5.031 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.443e-06/0.2044, allocations: 0 / 0.5833 GB, free: 5.031 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007144/0.2052, allocations: 275.2 kB / 0.5836 GB, free: 4.75 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.125e-05/0.2052, allocations: 81.11 kB / 0.5837 GB, free: 4.652 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.2054, allocations: 136.8 kB / 0.5838 GB, free: 4.512 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.393e-05/0.2054, allocations: 29.7 kB / 0.5838 GB, free: 4.477 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.494e-05/0.2055, allocations: 92.14 kB / 0.5839 GB, free: 4.383 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.631e-05/0.2055, allocations: 23.73 kB / 0.5839 GB, free: 4.359 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.135e-05/0.2056, allocations: 29.72 kB / 0.584 GB, free: 4.324 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.2057, allocations: 322.8 kB / 0.5843 GB, free: 4 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000188/0.2059, allocations: 67.95 kB / 0.5843 GB, free: 3.934 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.2061, allocations: 63.95 kB / 0.5844 GB, free: 3.871 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003333/0.2064, allocations: 185.9 kB / 0.5846 GB, free: 3.668 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.2064, allocations: 4 kB / 0.5846 GB, free: 3.664 MB / 494.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004837/0.2069, allocations: 256.8 kB / 0.5848 GB, free: 3.395 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.874e-05/0.207, allocations: 67.39 kB / 0.5849 GB, free: 3.316 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.207, allocations: 0 / 0.5849 GB, free: 3.316 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.207, allocations: 3.938 kB / 0.5849 GB, free: 3.312 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.2071, allocations: 15.98 kB / 0.5849 GB, free: 3.297 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.2072, allocations: 0 / 0.5849 GB, free: 3.297 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001533/0.2073, allocations: 27.97 kB / 0.5849 GB, free: 3.27 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.396e-05/0.2073, allocations: 7.938 kB / 0.5849 GB, free: 3.262 MB / 494.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 0.000149/0.2075, allocations: 159.5 kB / 0.5851 GB, free: 3.09 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.69e-05/0.2075, allocations: 11.89 kB / 0.5851 GB, free: 3.078 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.657e-05/0.2076, allocations: 12.38 kB / 0.5851 GB, free: 3.066 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.2076, allocations: 0 / 0.5851 GB, free: 3.066 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.2076, allocations: 256 / 0.5851 GB, free: 3.066 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.2076, allocations: 0 / 0.5851 GB, free: 3.066 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001928/0.2078, allocations: 205.5 kB / 0.5853 GB, free: 2.816 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.2078, allocations: 4 kB / 0.5853 GB, free: 2.812 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.358e-05/0.2079, allocations: 11.98 kB / 0.5853 GB, free: 2.801 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.2079, allocations: 0 / 0.5853 GB, free: 2.801 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.2079, allocations: 4 kB / 0.5853 GB, free: 2.797 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.208, allocations: 0 / 0.5853 GB, free: 2.797 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.208, allocations: 0 / 0.5853 GB, free: 2.797 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000482/0.2084, allocations: 250.6 kB / 0.5856 GB, free: 2.527 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.079e-05/0.2085, allocations: 92.94 kB / 0.5856 GB, free: 2.418 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.874e-05/0.2086, allocations: 4 kB / 0.5857 GB, free: 2.414 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.2087, allocations: 15.98 kB / 0.5857 GB, free: 2.398 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/0.2088, allocations: 35.95 kB / 0.5857 GB, free: 2.363 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/0.2089, allocations: 7.984 kB / 0.5857 GB, free: 2.355 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.725e-05/0.2089, allocations: 99.2 kB / 0.5858 GB, free: 2.258 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2089, allocations: 4 kB / 0.5858 GB, free: 2.254 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002104/0.2091, allocations: 28 kB / 0.5858 GB, free: 2.227 MB / 494.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.0007677/0.2099, allocations: 0.7819 MB / 0.5866 GB, free: 1.41 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004986/0.2104, allocations: 266.6 kB / 0.5869 GB, free: 1.125 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2104, allocations: 0 / 0.5869 GB, free: 1.125 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002472/0.2107, allocations: 139.3 kB / 0.587 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000227/0.2109, allocations: 15.94 kB / 0.587 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002319/0.2133, allocations: 1.753 MB / 0.5887 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002658/0.2135, allocations: 0.6926 MB / 0.5894 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.429e-05/0.2136, allocations: 8 kB / 0.5894 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.247e-05/0.2137, allocations: 15.42 kB / 0.5894 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of SimCode: time 4.01e-07/0.2137, allocations: 0 / 0.5894 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01788/0.2316, allocations: 2.596 MB / 0.5919 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001845/0.2318, allocations: 192.8 kB / 0.5921 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.731/1.963, allocations: 0 / 0.5921 GB, free: 11.65 MB / 0.4981 GB (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)