Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001685/0.001685, allocations: 100.9 kB / 16.27 MB, free: 6.418 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.001747/0.001747, allocations: 189.8 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.616/1.616, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.801/1.801, allocations: 292.3 MB / 0.5495 GB, free: 17.53 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 71.91 kB / 0.6722 GB, free: 6.508 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2951, allocations: 114.6 MB / 0.784 GB, free: 3.84 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002928/0.2981, allocations: 0.6703 MB / 0.7847 GB, free: 3.164 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001798/0.2999, allocations: 1.047 MB / 0.7857 GB, free: 2.102 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.974e-05/0.3, allocations: 0 / 0.7857 GB, free: 2.102 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.123e-05/0.3001, allocations: 3.938 kB / 0.7857 GB, free: 2.098 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.766e-05/0.3002, allocations: 3.938 kB / 0.7857 GB, free: 2.094 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003925/0.3006, allocations: 39.89 kB / 0.7858 GB, free: 2.055 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001065/0.3007, allocations: 51.84 kB / 0.7858 GB, free: 2.004 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.3009, allocations: 8 kB / 0.7858 GB, free: 1.996 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 8.854e-05/0.301, allocations: 19.92 kB / 0.7858 GB, free: 1.977 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.853e-05/0.301, allocations: 27.91 kB / 0.7859 GB, free: 1.949 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.839e-05/0.3011, allocations: 4 kB / 0.7859 GB, free: 1.945 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 9.066e-05/0.3012, allocations: 19.97 kB / 0.7859 GB, free: 1.926 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.509e-05/0.3012, allocations: 15.94 kB / 0.7859 GB, free: 1.91 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.218e-05/0.3012, allocations: 15.92 kB / 0.7859 GB, free: 1.895 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001664/0.3014, allocations: 51.84 kB / 0.786 GB, free: 1.844 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3014, allocations: 4 kB / 0.786 GB, free: 1.84 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3014, allocations: 0 / 0.786 GB, free: 1.84 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.512e-06/0.3014, allocations: 4 kB / 0.786 GB, free: 1.836 MB / 0.6544 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.0007572/0.3022, allocations: 367.7 kB / 0.7863 GB, free: 1.426 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/0.3023, allocations: 8.031 kB / 0.7863 GB, free: 1.418 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.025e-05/0.3023, allocations: 8.844 kB / 0.7863 GB, free: 1.41 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000189/0.3025, allocations: 168.3 kB / 0.7865 GB, free: 1.207 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.3026, allocations: 8.375 kB / 0.7865 GB, free: 1.199 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.952e-05/0.3026, allocations: 384 / 0.7865 GB, free: 1.199 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002716/0.3029, allocations: 66.22 kB / 0.7866 GB, free: 1.129 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.3029, allocations: 192 / 0.7866 GB, free: 1.129 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.3029, allocations: 3.938 kB / 0.7866 GB, free: 1.125 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.3029, allocations: 3.938 kB / 0.7866 GB, free: 1.121 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001886/0.3031, allocations: 39.97 kB / 0.7866 GB, free: 1.082 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005504/0.3037, allocations: 284.8 kB / 0.7869 GB, free: 0.7539 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001692/0.3039, allocations: 58.48 kB / 0.7869 GB, free: 0.6875 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.304, allocations: 28.95 kB / 0.787 GB, free: 0.6562 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.763e-05/0.304, allocations: 4 kB / 0.787 GB, free: 0.6523 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002655/0.3043, allocations: 79.23 kB / 0.7871 GB, free: 0.5625 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=6): time 1.843e-06/0.3043, allocations: 0 / 0.7871 GB, free: 0.5625 MB / 0.6544 GB Notification: Performance of matching and sorting (n=6): time 0.0004797/0.3048, allocations: 125.8 kB / 0.7872 GB, free: 444 kB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.093e-05/0.3049, allocations: 55.41 kB / 0.7872 GB, free: 376 kB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.305, allocations: 105.8 kB / 0.7873 GB, free: 260 kB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.305, allocations: 29.7 kB / 0.7874 GB, free: 224 kB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 8.214e-05/0.3051, allocations: 88.12 kB / 0.7874 GB, free: 132 kB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.286e-05/0.3051, allocations: 11.81 kB / 0.7874 GB, free: 120 kB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.986e-05/0.3052, allocations: 17.72 kB / 0.7875 GB, free: 96 kB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.3742/0.6793, allocations: 320.1 kB / 0.7878 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001874/0.6796, allocations: 18.42 kB / 0.7878 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001389/0.6797, allocations: 53.39 kB / 0.7878 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001917/0.6799, allocations: 83.67 kB / 0.7879 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.6799, allocations: 0.9375 kB / 0.7879 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.00028/0.6802, allocations: 103 kB / 0.788 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.6803, allocations: 11 kB / 0.788 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.6803, allocations: 2.625 kB / 0.788 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.6803, allocations: 0 / 0.788 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.6804, allocations: 18.2 kB / 0.788 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.6804, allocations: 5.562 kB / 0.7881 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.04e-05/0.6805, allocations: 11.7 kB / 0.7881 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.6805, allocations: 5.5 kB / 0.7881 GB, free: 48.3 MB / 0.6544 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 7.403e-05/0.6806, allocations: 114.8 kB / 0.7882 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.454e-05/0.6806, allocations: 6.875 kB / 0.7882 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002646/0.6809, allocations: 104.6 kB / 0.7883 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.6809, allocations: 1.844 kB / 0.7883 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.6809, allocations: 3.938 kB / 0.7883 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.6809, allocations: 0 / 0.7883 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003706/0.6813, allocations: 353.8 kB / 0.7886 GB, free: 47.86 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.6813, allocations: 0 / 0.7886 GB, free: 47.86 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.486e-05/0.6814, allocations: 16.31 kB / 0.7886 GB, free: 47.86 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.6814, allocations: 8.062 kB / 0.7887 GB, free: 47.85 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.6814, allocations: 0.5 kB / 0.7887 GB, free: 47.85 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.6814, allocations: 0 / 0.7887 GB, free: 47.85 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.6814, allocations: 0 / 0.7887 GB, free: 47.85 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000223/0.6816, allocations: 199.6 kB / 0.7888 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 1.905e-05/0.6817, allocations: 81.05 kB / 0.7889 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/0.6817, allocations: 2.844 kB / 0.7889 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.392e-05/0.6818, allocations: 9.141 kB / 0.7889 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.027e-05/0.6818, allocations: 3.25 kB / 0.7889 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.6819, allocations: 7.844 kB / 0.7889 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.441e-05/0.6819, allocations: 84.06 kB / 0.789 GB, free: 47.55 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6819, allocations: 0.6562 kB / 0.789 GB, free: 47.55 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002416/0.6821, allocations: 14.91 kB / 0.789 GB, free: 47.55 MB / 0.6544 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.0001251/0.6823, allocations: 108.9 kB / 0.7891 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002375/0.6825, allocations: 67.23 kB / 0.7892 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.6825, allocations: 0.5 kB / 0.7892 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 9.839e-05/0.6826, allocations: 32.12 kB / 0.7892 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002668/0.6829, allocations: 11.53 kB / 0.7892 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002998/0.6832, allocations: 151.3 kB / 0.7894 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001264/0.6834, allocations: 0.6866 MB / 0.7901 GB, free: 46.64 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.41e-05/0.6834, allocations: 12.69 kB / 0.7901 GB, free: 46.64 MB / 0.6544 GB Notification: Performance of SimCode: time 2.4e-07/0.6834, allocations: 0 / 0.7901 GB, free: 46.64 MB / 0.6544 GB Notification: Performance of Templates: time 0.00206/0.6855, allocations: 0.8599 MB / 0.7909 GB, free: 46.62 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)