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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.442/1.442, allocations: 251.5 MB / 267.4 MB, free: 11.07 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.001044/0.001044, allocations: 174.7 kB / 326.5 MB, free: 2.715 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.853/1.853, allocations: 205 MB / 0.5766 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.0007719/0.0007721, allocations: 95.09 kB / 0.6804 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000362/0.0003621, allocations: 12.22 kB / 0.7938 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1982/0.1986, allocations: 105.4 MB / 0.8968 GB, free: 68.21 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001443/0.2001, allocations: 1.116 MB / 0.8978 GB, free: 67.08 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004124/0.2005, allocations: 224.9 kB / 0.8981 GB, free: 66.86 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.263e-05/0.2006, allocations: 0 / 0.8981 GB, free: 66.86 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3.177e-05/0.2006, allocations: 4 kB / 0.8981 GB, free: 66.85 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.604e-05/0.2007, allocations: 7.938 kB / 0.8981 GB, free: 66.84 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001741/0.2008, allocations: 15.97 kB / 0.8981 GB, free: 66.83 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.617e-05/0.2009, allocations: 43.86 kB / 0.8981 GB, free: 66.79 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.128e-05/0.201, allocations: 15.92 kB / 0.8981 GB, free: 66.77 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.528e-05/0.2011, allocations: 4 kB / 0.8981 GB, free: 66.77 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.412e-05/0.2012, allocations: 23.86 kB / 0.8982 GB, free: 66.74 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.783e-05/0.2012, allocations: 0 / 0.8982 GB, free: 66.74 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.123e-05/0.2012, allocations: 8 kB / 0.8982 GB, free: 66.73 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.878e-05/0.2012, allocations: 15.91 kB / 0.8982 GB, free: 66.72 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.571e-05/0.2013, allocations: 11.94 kB / 0.8982 GB, free: 66.71 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.692e-05/0.2013, allocations: 40.14 kB / 0.8982 GB, free: 66.67 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2014, allocations: 0 / 0.8982 GB, free: 66.67 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.453e-06/0.2014, allocations: 0 / 0.8982 GB, free: 66.67 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.757e-06/0.2014, allocations: 0 / 0.8982 GB, free: 66.67 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.0004611/0.2018, allocations: 359.5 kB / 0.8986 GB, free: 66.27 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.2019, allocations: 11.97 kB / 0.8986 GB, free: 66.25 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.121e-05/0.2019, allocations: 8.844 kB / 0.8986 GB, free: 66.25 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.638e-05/0.202, allocations: 164.3 kB / 0.8988 GB, free: 66.05 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.202, allocations: 4.375 kB / 0.8988 GB, free: 66.04 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.266e-05/0.202, allocations: 384 / 0.8988 GB, free: 66.04 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001786/0.2022, allocations: 82.14 kB / 0.8988 GB, free: 65.96 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.2022, allocations: 192 / 0.8988 GB, free: 65.96 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.2023, allocations: 3.938 kB / 0.8988 GB, free: 65.95 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.2023, allocations: 0 / 0.8988 GB, free: 65.95 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.2024, allocations: 55.95 kB / 0.8989 GB, free: 65.9 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003307/0.2028, allocations: 272.8 kB / 0.8992 GB, free: 65.58 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001475/0.2029, allocations: 70.41 kB / 0.8992 GB, free: 65.5 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.319e-05/0.203, allocations: 40.95 kB / 0.8993 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.087e-05/0.2031, allocations: 0 / 0.8993 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001748/0.2033, allocations: 71.39 kB / 0.8993 GB, free: 65.38 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 1.303e-06/0.2033, allocations: 0 / 0.8993 GB, free: 65.38 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0003527/0.2036, allocations: 133.6 kB / 0.8995 GB, free: 65.24 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.018e-05/0.2037, allocations: 63.34 kB / 0.8995 GB, free: 65.17 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.54e-05/0.2037, allocations: 114 kB / 0.8996 GB, free: 65.05 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.947e-06/0.2037, allocations: 29.7 kB / 0.8997 GB, free: 65.01 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.49e-05/0.2038, allocations: 88.12 kB / 0.8997 GB, free: 64.92 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.656e-05/0.2038, allocations: 15.75 kB / 0.8998 GB, free: 64.91 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.099e-05/0.2038, allocations: 13.72 kB / 0.8998 GB, free: 64.89 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.495e-05/0.2039, allocations: 318.8 kB / 0.9001 GB, free: 64.57 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.64e-05/0.204, allocations: 23.98 kB / 0.9001 GB, free: 64.54 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.11e-05/0.2041, allocations: 63.41 kB / 0.9002 GB, free: 64.47 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001737/0.2042, allocations: 95.27 kB / 0.9002 GB, free: 64.36 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.2043, allocations: 0 / 0.9002 GB, free: 64.36 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002117/0.2045, allocations: 105.7 kB / 0.9003 GB, free: 64.25 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.2045, allocations: 8 kB / 0.9004 GB, free: 64.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.2045, allocations: 0 / 0.9004 GB, free: 64.25 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.2045, allocations: 0 / 0.9004 GB, free: 64.25 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.735e-05/0.2046, allocations: 23.86 kB / 0.9004 GB, free: 64.22 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.2046, allocations: 4 kB / 0.9004 GB, free: 64.22 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.543e-05/0.2047, allocations: 11.98 kB / 0.9004 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.2047, allocations: 4 kB / 0.9004 GB, free: 64.2 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.739e-05/0.2048, allocations: 121.7 kB / 0.9005 GB, free: 64.07 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.189e-05/0.2048, allocations: 7.906 kB / 0.9005 GB, free: 64.07 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002502/0.205, allocations: 114 kB / 0.9006 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.2051, allocations: 4 kB / 0.9006 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.2051, allocations: 0 / 0.9006 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2051, allocations: 0 / 0.9006 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003545/0.2054, allocations: 362.5 kB / 0.901 GB, free: 63.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2054, allocations: 4 kB / 0.901 GB, free: 63.53 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.592e-05/0.2055, allocations: 15.98 kB / 0.901 GB, free: 63.52 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.2055, allocations: 4 kB / 0.901 GB, free: 63.51 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.828e-06/0.2055, allocations: 0 / 0.901 GB, free: 63.51 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.2055, allocations: 3.938 kB / 0.901 GB, free: 63.51 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2055, allocations: 0 / 0.901 GB, free: 63.51 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000232/0.2058, allocations: 212.2 kB / 0.9012 GB, free: 63.29 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.798e-05/0.2058, allocations: 77.11 kB / 0.9013 GB, free: 63.19 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.491e-05/0.2058, allocations: 448 / 0.9013 GB, free: 63.19 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.134e-05/0.2059, allocations: 11.98 kB / 0.9013 GB, free: 63.18 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.742e-05/0.206, allocations: 7.984 kB / 0.9013 GB, free: 63.17 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/0.206, allocations: 15.94 kB / 0.9013 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.288e-05/0.206, allocations: 83.28 kB / 0.9014 GB, free: 63.07 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/0.206, allocations: 0 / 0.9014 GB, free: 63.07 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002039/0.2062, allocations: 8 kB / 0.9014 GB, free: 63.07 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 8.644e-05/0.2063, allocations: 103.2 kB / 0.9015 GB, free: 62.96 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002144/0.2065, allocations: 75.89 kB / 0.9016 GB, free: 62.88 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2066, allocations: 0 / 0.9016 GB, free: 62.88 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 9.743e-05/0.2067, allocations: 39.92 kB / 0.9016 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002287/0.2069, allocations: 9.328 kB / 0.9016 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002852/0.2072, allocations: 177 kB / 0.9018 GB, free: 62.63 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001014/0.2073, allocations: 0.6809 MB / 0.9025 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.622e-05/0.2073, allocations: 11.44 kB / 0.9025 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of SimCode: time 3e-07/0.2073, allocations: 0 / 0.9025 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of Templates: time 0.001723/0.2091, allocations: 0.7643 MB / 0.9032 GB, free: 61.15 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)