Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.317/1.317, allocations: 251.5 MB / 266.7 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009149/0.0009152, allocations: 168.5 kB / 325.8 MB, free: 2.719 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.481/1.481, allocations: 205 MB / 0.576 GB, free: 21.03 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006989/0.0006989, allocations: 93.23 kB / 0.6797 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003145/0.0003145, allocations: 8.938 kB / 0.7933 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1938/0.1941, allocations: 105.4 MB / 0.8962 GB, free: 68.14 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001211/0.1954, allocations: 1.124 MB / 0.8973 GB, free: 67 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003665/0.1957, allocations: 225 kB / 0.8975 GB, free: 66.78 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.773e-05/0.1958, allocations: 0 / 0.8975 GB, free: 66.78 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.953e-05/0.1958, allocations: 0 / 0.8975 GB, free: 66.78 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.579e-05/0.1959, allocations: 3.938 kB / 0.8975 GB, free: 66.77 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001494/0.196, allocations: 19.98 kB / 0.8975 GB, free: 66.75 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.041e-05/0.1961, allocations: 47.8 kB / 0.8976 GB, free: 66.71 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.17e-05/0.1962, allocations: 16.25 kB / 0.8976 GB, free: 66.69 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.341e-05/0.1963, allocations: 4 kB / 0.8976 GB, free: 66.69 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 3.783e-05/0.1963, allocations: 19.92 kB / 0.8976 GB, free: 66.67 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.416e-05/0.1963, allocations: 4 kB / 0.8976 GB, free: 66.66 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.181e-05/0.1963, allocations: 7.938 kB / 0.8976 GB, free: 66.66 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.063e-05/0.1964, allocations: 7.984 kB / 0.8976 GB, free: 66.65 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.058e-05/0.1964, allocations: 11.94 kB / 0.8977 GB, free: 66.64 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.838e-05/0.1965, allocations: 43.78 kB / 0.8977 GB, free: 66.59 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1965, allocations: 3.938 kB / 0.8977 GB, free: 66.59 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.522e-06/0.1965, allocations: 0 / 0.8977 GB, free: 66.59 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.637e-06/0.1965, allocations: 0 / 0.8977 GB, free: 66.59 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004046/0.1969, allocations: 359.5 kB / 0.898 GB, free: 66.19 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.197, allocations: 12.03 kB / 0.8981 GB, free: 66.18 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.869e-05/0.197, allocations: 34.75 kB / 0.8981 GB, free: 66.13 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.384e-05/0.1971, allocations: 4.938 kB / 0.8981 GB, free: 66.13 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.469e-05/0.1971, allocations: 168.3 kB / 0.8983 GB, free: 65.93 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.047e-05/0.1971, allocations: 12.31 kB / 0.8983 GB, free: 65.91 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.907e-06/0.1972, allocations: 384 / 0.8983 GB, free: 65.91 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000165/0.1973, allocations: 74.22 kB / 0.8983 GB, free: 65.84 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.1973, allocations: 3.938 kB / 0.8983 GB, free: 65.83 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.175e-06/0.1974, allocations: 0 / 0.8983 GB, free: 65.83 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.1974, allocations: 0 / 0.8983 GB, free: 65.83 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000161/0.1975, allocations: 51.97 kB / 0.8984 GB, free: 65.78 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002872/0.1978, allocations: 280.7 kB / 0.8987 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000139/0.198, allocations: 70.48 kB / 0.8987 GB, free: 65.38 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.647e-05/0.1981, allocations: 37.78 kB / 0.8988 GB, free: 65.34 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.693e-05/0.1981, allocations: 0 / 0.8988 GB, free: 65.34 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001828/0.1983, allocations: 79.38 kB / 0.8988 GB, free: 65.25 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 2.324e-06/0.1983, allocations: 3.984 kB / 0.8988 GB, free: 65.25 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0003625/0.1987, allocations: 133.6 kB / 0.899 GB, free: 65.11 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.78e-05/0.1987, allocations: 59.41 kB / 0.899 GB, free: 65.04 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.37e-05/0.1988, allocations: 113.8 kB / 0.8991 GB, free: 64.92 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.657e-06/0.1988, allocations: 25.7 kB / 0.8992 GB, free: 64.89 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.461e-05/0.1988, allocations: 80.14 kB / 0.8992 GB, free: 64.8 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.742e-05/0.1988, allocations: 23.73 kB / 0.8993 GB, free: 64.78 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.061e-05/0.1989, allocations: 13.72 kB / 0.8993 GB, free: 64.76 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.344e-05/0.1989, allocations: 318.8 kB / 0.8996 GB, free: 64.44 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.531e-05/0.199, allocations: 31.97 kB / 0.8996 GB, free: 64.41 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.449e-05/0.1991, allocations: 55.41 kB / 0.8997 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000159/0.1992, allocations: 87.34 kB / 0.8997 GB, free: 64.25 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1993, allocations: 0 / 0.8997 GB, free: 64.25 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001999/0.1995, allocations: 113.6 kB / 0.8998 GB, free: 64.13 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.032e-05/0.1995, allocations: 8 kB / 0.8999 GB, free: 64.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1995, allocations: 0 / 0.8999 GB, free: 64.12 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.368e-06/0.1995, allocations: 7.875 kB / 0.8999 GB, free: 64.11 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.151e-05/0.1996, allocations: 15.98 kB / 0.8999 GB, free: 64.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.1996, allocations: 8.094 kB / 0.8999 GB, free: 64.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.564e-05/0.1997, allocations: 7.984 kB / 0.8999 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.1997, allocations: 4 kB / 0.8999 GB, free: 64.08 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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 5.953e-05/0.1997, allocations: 117.8 kB / 0.9 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.041e-05/0.1998, allocations: 7.906 kB / 0.9 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002399/0.2, allocations: 118 kB / 0.9001 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.2, allocations: 0 / 0.9001 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.2, allocations: 0.5625 kB / 0.9001 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.2, allocations: 0 / 0.9001 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003152/0.2004, allocations: 370.4 kB / 0.9005 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.2004, allocations: 0 / 0.9005 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.99e-05/0.2004, allocations: 11.98 kB / 0.9005 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.2004, allocations: 0 / 0.9005 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.2005, allocations: 8 kB / 0.9005 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2005, allocations: 0 / 0.9005 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.2005, allocations: 0 / 0.9005 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002162/0.2007, allocations: 207.3 kB / 0.9007 GB, free: 63.17 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.881e-05/0.2007, allocations: 81.11 kB / 0.9008 GB, free: 63.07 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.453e-05/0.2007, allocations: 0 / 0.9008 GB, free: 63.07 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.895e-05/0.2008, allocations: 15.98 kB / 0.9008 GB, free: 63.05 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.436e-05/0.2009, allocations: 11.92 kB / 0.9008 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.2009, allocations: 3.938 kB / 0.9008 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.095e-05/0.2009, allocations: 87.28 kB / 0.9009 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of sort global known variables: time 5.51e-07/0.2009, allocations: 0 / 0.9009 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001998/0.2011, allocations: 11.94 kB / 0.9009 GB, free: 62.94 MB / 0.6042 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 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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.0004049/0.2015, allocations: 0.7358 MB / 0.9016 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002044/0.2017, allocations: 71.89 kB / 0.9017 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.676e-06/0.2018, allocations: 4 kB / 0.9017 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 9.512e-05/0.2019, allocations: 36.03 kB / 0.9017 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002322/0.2021, allocations: 24.69 kB / 0.9018 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.2032, allocations: 1.405 MB / 0.9031 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001183/0.2034, allocations: 0.6809 MB / 0.9038 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 2.945e-05/0.2034, allocations: 7.734 kB / 0.9038 GB, free: 59.83 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.577e-05/0.2035, allocations: 15.44 kB / 0.9038 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of SimCode: time 2.3e-07/0.2035, allocations: 0 / 0.9038 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01036/0.2138, allocations: 1.336 MB / 0.9051 GB, free: 58.62 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001246/0.214, allocations: 215 kB / 0.9053 GB, free: 58.37 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.548/1.762, allocations: 4 kB / 0.9053 GB, free: 58.37 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)