Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="BuildingSystems_BuildingSystems_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.00137/0.00137, 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.001659/0.001659, allocations: 190.9 kB / 16.25 MB, free: 6.625 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.344/1.344, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002257/0.002257, allocations: 287 kB / 290.3 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9416/0.9416, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001684/0.001685, allocations: 92.55 kB / 0.5948 GB, free: 28.23 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1935/0.1952, allocations: 86.99 MB / 0.6797 GB, free: 0.9375 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002927/0.1982, allocations: 1.525 MB / 0.6812 GB, free: 15.41 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007746/0.199, allocations: 461.8 kB / 0.6817 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.082e-05/0.1991, allocations: 0 / 0.6817 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001023/0.1992, allocations: 7.938 kB / 0.6817 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.803e-05/0.1993, allocations: 9.297 kB / 0.6817 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002161/0.1995, allocations: 31.91 kB / 0.6817 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001578/0.1996, allocations: 98.89 kB / 0.6818 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.1998, allocations: 20.44 kB / 0.6818 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001377/0.1999, allocations: 55.83 kB / 0.6819 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.226e-05/0.2, allocations: 39.83 kB / 0.6819 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.544e-05/0.2, allocations: 8 kB / 0.6819 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.728e-05/0.2001, allocations: 8 kB / 0.6819 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.161e-05/0.2001, allocations: 11.92 kB / 0.6819 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.124e-05/0.2002, allocations: 43.84 kB / 0.682 GB, free: 14.63 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001364/0.2003, allocations: 75.72 kB / 0.682 GB, free: 14.56 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2003, allocations: 4 kB / 0.6821 GB, free: 14.55 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2003, allocations: 0 / 0.6821 GB, free: 14.55 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.2003, allocations: 0 / 0.6821 GB, free: 14.55 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.0007018/0.201, allocations: 450.7 kB / 0.6825 GB, free: 14.05 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.2011, allocations: 12.03 kB / 0.6825 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.713e-05/0.2011, allocations: 34.75 kB / 0.6825 GB, free: 14 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.748e-05/0.2012, allocations: 16.78 kB / 0.6825 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001869/0.2014, allocations: 194.5 kB / 0.6827 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.034e-05/0.2014, allocations: 4.375 kB / 0.6827 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.494e-05/0.2014, allocations: 8.375 kB / 0.6827 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003038/0.2017, allocations: 121.5 kB / 0.6829 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/0.2018, allocations: 0 / 0.6829 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.2018, allocations: 4 kB / 0.6829 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.2018, allocations: 0 / 0.6829 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002854/0.2021, allocations: 87.92 kB / 0.6829 GB, free: 13.53 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005426/0.2026, allocations: 332.6 kB / 0.6833 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003012/0.2029, allocations: 106.5 kB / 0.6834 GB, free: 13.04 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001751/0.2031, allocations: 68.94 kB / 0.6834 GB, free: 12.97 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.582e-05/0.2031, allocations: 7.938 kB / 0.6834 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000347/0.2035, allocations: 123.4 kB / 0.6836 GB, free: 12.83 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.513e-06/0.2035, allocations: 0 / 0.6836 GB, free: 12.83 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006939/0.2042, allocations: 275.1 kB / 0.6838 GB, free: 12.55 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.964e-05/0.2043, allocations: 89.09 kB / 0.6839 GB, free: 12.45 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.2044, allocations: 135.7 kB / 0.684 GB, free: 12.3 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.2044, allocations: 29.7 kB / 0.6841 GB, free: 12.27 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.763e-05/0.2045, allocations: 104 kB / 0.6842 GB, free: 12.16 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.087e-05/0.2045, allocations: 15.81 kB / 0.6842 GB, free: 12.15 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.127e-05/0.2046, allocations: 25.7 kB / 0.6842 GB, free: 12.12 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.2047, allocations: 322.8 kB / 0.6845 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001827/0.2049, allocations: 67.94 kB / 0.6846 GB, free: 11.73 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001753/0.2051, allocations: 67.95 kB / 0.6846 GB, free: 11.66 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003249/0.2054, allocations: 185.8 kB / 0.6848 GB, free: 11.46 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.2055, allocations: 0 / 0.6848 GB, free: 11.46 MB / 494.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004768/0.2059, allocations: 260.9 kB / 0.6851 GB, free: 11.18 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.416e-05/0.206, allocations: 67.41 kB / 0.6851 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.206, allocations: 0 / 0.6851 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.206, allocations: 0 / 0.6851 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.2062, allocations: 15.92 kB / 0.6851 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.2062, allocations: 4 kB / 0.6851 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001736/0.2064, allocations: 20.22 kB / 0.6852 GB, free: 11.07 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/0.2064, allocations: 11.94 kB / 0.6852 GB, free: 11.05 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.0001288/0.2065, allocations: 160.8 kB / 0.6853 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.122e-05/0.2065, allocations: 11.91 kB / 0.6853 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.744e-05/0.2066, allocations: 8.375 kB / 0.6853 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.2066, allocations: 4 kB / 0.6854 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.2066, allocations: 0 / 0.6854 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.2066, allocations: 0 / 0.6854 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001571/0.2068, allocations: 197.5 kB / 0.6855 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2068, allocations: 0 / 0.6855 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.359e-05/0.2069, allocations: 11.98 kB / 0.6856 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.2069, allocations: 7.969 kB / 0.6856 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.2069, allocations: 4 kB / 0.6856 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.2069, allocations: 4 kB / 0.6856 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2069, allocations: 0 / 0.6856 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004696/0.2074, allocations: 250.5 kB / 0.6858 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.125e-05/0.2074, allocations: 85.02 kB / 0.6859 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.963e-05/0.2075, allocations: 8 kB / 0.6859 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.2076, allocations: 23.97 kB / 0.6859 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.2077, allocations: 27.97 kB / 0.6859 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.2078, allocations: 11.98 kB / 0.686 GB, free: 10.15 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.468e-05/0.2078, allocations: 100.6 kB / 0.6861 GB, free: 10.05 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2078, allocations: 0 / 0.6861 GB, free: 10.05 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002067/0.2081, allocations: 28 kB / 0.6861 GB, free: 10.02 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.0007614/0.2088, allocations: 0.7858 MB / 0.6868 GB, free: 9.203 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004848/0.2093, allocations: 258.7 kB / 0.6871 GB, free: 8.926 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2093, allocations: 0 / 0.6871 GB, free: 8.926 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002473/0.2096, allocations: 155.3 kB / 0.6872 GB, free: 8.762 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.2098, allocations: 11.94 kB / 0.6873 GB, free: 8.75 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002353/0.2122, allocations: 1.762 MB / 0.689 GB, free: 6.895 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002668/0.2125, allocations: 0.6885 MB / 0.6896 GB, free: 6.18 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.319e-05/0.2125, allocations: 4 kB / 0.6896 GB, free: 6.176 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.047e-05/0.2126, allocations: 27.42 kB / 0.6897 GB, free: 6.148 MB / 494.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2126, allocations: 0 / 0.6897 GB, free: 6.148 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01324/0.2258, allocations: 2.726 MB / 0.6923 GB, free: 3.586 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002056/0.2261, allocations: 225.3 kB / 0.6926 GB, free: 3.324 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.892/2.118, allocations: 2.875 kB / 0.6926 GB, free: 3.324 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)