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/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.712/1.712, allocations: 292.3 MB / 308.1 MB, free: 4.316 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001816/0.001816, allocations: 193.4 kB / 376.9 MB, free: 1.816 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.811/1.811, allocations: 205.1 MB / 0.6354 GB, free: 9.809 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001314/0.001314, allocations: 95.64 kB / 0.7479 GB, free: 61.22 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001127, allocations: 55.91 kB / 0.8704 GB, free: 13.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3791/0.3803, allocations: 114.6 MB / 0.9822 GB, free: 10.4 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.004397/0.3848, allocations: 0.735 MB / 0.983 GB, free: 9.656 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.002543/0.3873, allocations: 1.051 MB / 0.984 GB, free: 8.59 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.599e-05/0.3874, allocations: 0 / 0.984 GB, free: 8.59 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 4.264e-05/0.3875, allocations: 0 / 0.984 GB, free: 8.59 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 9.437e-05/0.3876, allocations: 3.938 kB / 0.984 GB, free: 8.586 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004006/0.3881, allocations: 31.91 kB / 0.984 GB, free: 8.555 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.000167/0.3882, allocations: 47.84 kB / 0.9841 GB, free: 8.508 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001371/0.3884, allocations: 12 kB / 0.9841 GB, free: 8.496 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 9.335e-05/0.3885, allocations: 19.92 kB / 0.9841 GB, free: 8.477 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 7.848e-05/0.3886, allocations: 27.89 kB / 0.9841 GB, free: 8.449 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.967e-05/0.3886, allocations: 0 / 0.9841 GB, free: 8.449 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 9.304e-05/0.3887, allocations: 12 kB / 0.9841 GB, free: 8.438 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.933e-05/0.3888, allocations: 11.98 kB / 0.9841 GB, free: 8.426 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 5.306e-05/0.3889, allocations: 19.86 kB / 0.9842 GB, free: 8.406 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001774/0.389, allocations: 47.84 kB / 0.9842 GB, free: 8.359 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3891, allocations: 0 / 0.9842 GB, free: 8.359 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.743e-06/0.3891, allocations: 0 / 0.9842 GB, free: 8.359 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.3891, allocations: 8 kB / 0.9842 GB, free: 8.352 MB / 0.7136 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.001061/0.3902, allocations: 363.7 kB / 0.9846 GB, free: 7.945 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 7.473e-05/0.3903, allocations: 8.031 kB / 0.9846 GB, free: 7.938 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.993e-05/0.3903, allocations: 12.78 kB / 0.9846 GB, free: 7.926 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002251/0.3906, allocations: 168.3 kB / 0.9847 GB, free: 7.723 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.332e-05/0.3906, allocations: 4.375 kB / 0.9847 GB, free: 7.719 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.251e-05/0.3907, allocations: 4.375 kB / 0.9847 GB, free: 7.715 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003208/0.391, allocations: 62.23 kB / 0.9848 GB, free: 7.648 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.391, allocations: 192 / 0.9848 GB, free: 7.648 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.106e-05/0.3911, allocations: 7.922 kB / 0.9848 GB, free: 7.641 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.3911, allocations: 0 / 0.9848 GB, free: 7.641 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003225/0.3914, allocations: 43.95 kB / 0.9849 GB, free: 7.598 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008052/0.3922, allocations: 284.7 kB / 0.9851 GB, free: 7.27 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002755/0.3925, allocations: 58.48 kB / 0.9852 GB, free: 7.203 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001801/0.3927, allocations: 36.95 kB / 0.9852 GB, free: 7.164 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.882e-05/0.3928, allocations: 4 kB / 0.9852 GB, free: 7.16 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004211/0.3932, allocations: 71.39 kB / 0.9853 GB, free: 7.078 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=6): time 2.134e-06/0.3932, allocations: 3.938 kB / 0.9853 GB, free: 7.074 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.0007298/0.394, allocations: 113.6 kB / 0.9854 GB, free: 6.957 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.363e-05/0.3941, allocations: 55.41 kB / 0.9855 GB, free: 6.891 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002057/0.3943, allocations: 105.8 kB / 0.9856 GB, free: 6.777 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.782e-05/0.3944, allocations: 25.7 kB / 0.9856 GB, free: 6.746 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.3945, allocations: 96.03 kB / 0.9857 GB, free: 6.648 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.601e-05/0.3946, allocations: 15.81 kB / 0.9857 GB, free: 6.633 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.886e-05/0.3946, allocations: 17.72 kB / 0.9857 GB, free: 6.609 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0002217/0.3949, allocations: 318.8 kB / 0.986 GB, free: 6.289 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001603/0.395, allocations: 23.92 kB / 0.986 GB, free: 6.266 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/0.3953, allocations: 51.41 kB / 0.9861 GB, free: 6.203 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003495/0.3957, allocations: 87.27 kB / 0.9862 GB, free: 6.105 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3957, allocations: 0 / 0.9862 GB, free: 6.105 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004474/0.3961, allocations: 106 kB / 0.9863 GB, free: 5.996 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/0.3962, allocations: 8 kB / 0.9863 GB, free: 5.988 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.3962, allocations: 0 / 0.9863 GB, free: 5.988 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.3962, allocations: 0 / 0.9863 GB, free: 5.988 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001685/0.3964, allocations: 15.98 kB / 0.9863 GB, free: 5.973 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/0.3964, allocations: 4 kB / 0.9863 GB, free: 5.969 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.997e-05/0.3965, allocations: 11.94 kB / 0.9863 GB, free: 5.957 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.898e-05/0.3966, allocations: 7.984 kB / 0.9863 GB, free: 5.949 MB / 0.7136 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 0.000162/0.3967, allocations: 133.8 kB / 0.9864 GB, free: 5.809 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.936e-05/0.3968, allocations: 7.906 kB / 0.9864 GB, free: 5.801 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004527/0.3972, allocations: 98.02 kB / 0.9865 GB, free: 5.695 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.3973, allocations: 48 / 0.9865 GB, free: 5.695 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.3973, allocations: 7.984 kB / 0.9865 GB, free: 5.688 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.3973, allocations: 0 / 0.9865 GB, free: 5.688 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007143/0.398, allocations: 358.5 kB / 0.9869 GB, free: 5.281 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.398, allocations: 0 / 0.9869 GB, free: 5.281 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.41e-05/0.3981, allocations: 15.92 kB / 0.9869 GB, free: 5.266 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.3982, allocations: 0 / 0.9869 GB, free: 5.266 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.3982, allocations: 0 / 0.9869 GB, free: 5.266 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.3982, allocations: 0 / 0.9869 GB, free: 5.266 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.3982, allocations: 0 / 0.9869 GB, free: 5.266 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.3992, allocations: 0.7707 MB / 0.9877 GB, free: 4.438 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.28e-05/0.3993, allocations: 77.11 kB / 0.9877 GB, free: 4.344 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.851e-05/0.3994, allocations: 3.938 kB / 0.9877 GB, free: 4.34 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001621/0.3995, allocations: 11.98 kB / 0.9877 GB, free: 4.328 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.79e-05/0.3996, allocations: 3.984 kB / 0.9877 GB, free: 4.324 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.419e-05/0.3997, allocations: 12.19 kB / 0.9878 GB, free: 4.312 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 8.006e-05/0.3998, allocations: 83.28 kB / 0.9878 GB, free: 4.23 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.31e-07/0.3998, allocations: 0 / 0.9878 GB, free: 4.23 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0006297/0.4004, allocations: 16 kB / 0.9879 GB, free: 4.215 MB / 0.7136 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.000237/0.4007, allocations: 103.2 kB / 0.988 GB, free: 4.105 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0004308/0.4011, allocations: 63.89 kB / 0.988 GB, free: 4.043 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4011, allocations: 8.188 kB / 0.988 GB, free: 4.035 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001946/0.4013, allocations: 31.91 kB / 0.9881 GB, free: 4.004 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004281/0.4018, allocations: 4 kB / 0.9881 GB, free: 4 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006457/0.4024, allocations: 254.1 kB / 0.9883 GB, free: 3.715 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004349/0.4029, allocations: 0.6887 MB / 0.989 GB, free: 3 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.245e-05/0.403, allocations: 4 kB / 0.989 GB, free: 2.996 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.722e-05/0.403, allocations: 11.44 kB / 0.989 GB, free: 2.984 MB / 0.7136 GB Notification: Performance of SimCode: time 3.81e-07/0.403, allocations: 0 / 0.989 GB, free: 2.984 MB / 0.7136 GB Notification: Performance of Templates: time 0.004686/0.4077, allocations: 0.7212 MB / 0.9897 GB, free: 2.266 MB / 0.7136 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)