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.001161/0.001161, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.01008/0.01008, allocations: 170.3 kB / 16.26 MB, free: 6.613 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.711/1.711, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.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.873/1.873, allocations: 292.7 MB / 0.5502 GB, free: 14.46 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.0005168/0.0005168, allocations: 14.41 kB / 0.6743 GB, free: 25.66 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2942/0.2947, allocations: 116.3 MB / 0.7879 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001019/0.2958, allocations: 409.4 kB / 0.7883 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001452/0.2973, allocations: 1.037 MB / 0.7893 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.292e-05/0.2973, allocations: 0 / 0.7893 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.379e-05/0.2974, allocations: 7.938 kB / 0.7893 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.919e-05/0.2975, allocations: 7.984 kB / 0.7893 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002807/0.2978, allocations: 31.92 kB / 0.7893 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001/0.2979, allocations: 43.91 kB / 0.7894 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001333/0.298, allocations: 11.98 kB / 0.7894 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.943e-05/0.2981, allocations: 11.92 kB / 0.7894 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.341e-05/0.2982, allocations: 19.92 kB / 0.7894 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.613e-05/0.2982, allocations: 0 / 0.7894 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.787e-05/0.2983, allocations: 19.92 kB / 0.7894 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.941e-05/0.2983, allocations: 19.92 kB / 0.7894 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.336e-05/0.2984, allocations: 45.56 kB / 0.7895 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001631/0.2985, allocations: 47.84 kB / 0.7895 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.2986, allocations: 0 / 0.7895 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of FrontEnd: time 4.539e-06/0.2986, allocations: 4 kB / 0.7895 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.2986, allocations: 0 / 0.7895 GB, free: 9.836 MB / 0.6075 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.0007197/0.2993, allocations: 367.7 kB / 0.7899 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.2994, allocations: 8.031 kB / 0.7899 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.284e-05/0.2994, allocations: 4.844 kB / 0.7899 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001483/0.2996, allocations: 172.4 kB / 0.7901 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/0.2996, allocations: 8.359 kB / 0.7901 GB, free: 9.199 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.75e-05/0.2996, allocations: 8.359 kB / 0.7901 GB, free: 9.191 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002405/0.2999, allocations: 70.23 kB / 0.7902 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.2999, allocations: 4.125 kB / 0.7902 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.2999, allocations: 3.938 kB / 0.7902 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.2999, allocations: 3.938 kB / 0.7902 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002017/0.3001, allocations: 51.95 kB / 0.7902 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005001/0.3006, allocations: 276.8 kB / 0.7905 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001763/0.3008, allocations: 66.48 kB / 0.7905 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.3009, allocations: 32.97 kB / 0.7906 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.771e-05/0.301, allocations: 7.938 kB / 0.7906 GB, free: 8.617 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002233/0.3012, allocations: 75.38 kB / 0.7907 GB, free: 8.531 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.393e-06/0.3012, allocations: 0 / 0.7907 GB, free: 8.531 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0004504/0.3017, allocations: 137.5 kB / 0.7908 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.181e-05/0.3017, allocations: 55.41 kB / 0.7908 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.524e-05/0.3018, allocations: 105.8 kB / 0.7909 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.012e-05/0.3019, allocations: 33.7 kB / 0.791 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.748e-05/0.3019, allocations: 84.08 kB / 0.791 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.643e-05/0.302, allocations: 23.86 kB / 0.7911 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.788e-05/0.302, allocations: 13.72 kB / 0.7911 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.3021, allocations: 314.8 kB / 0.7914 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.3022, allocations: 27.97 kB / 0.7914 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001191/0.3023, allocations: 59.41 kB / 0.7915 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00023/0.3026, allocations: 95.28 kB / 0.7916 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3026, allocations: 0 / 0.7916 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002999/0.3029, allocations: 117.6 kB / 0.7917 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.3029, allocations: 4 kB / 0.7917 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.3029, allocations: 0 / 0.7917 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.208e-05/0.303, allocations: 4 kB / 0.7917 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.3031, allocations: 15.98 kB / 0.7917 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.3031, allocations: 3.938 kB / 0.7917 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.05e-05/0.3032, allocations: 15.92 kB / 0.7917 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.3032, allocations: 12 kB / 0.7917 GB, free: 7.348 MB / 0.6075 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.0001232/0.3033, allocations: 117.7 kB / 0.7918 GB, free: 7.223 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.779e-06/0.3033, allocations: 0 / 0.7918 GB, free: 7.223 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003088/0.3037, allocations: 114 kB / 0.7919 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/0.3037, allocations: 4.547 kB / 0.792 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.3037, allocations: 7.938 kB / 0.792 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.3037, allocations: 0 / 0.792 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004594/0.3042, allocations: 366.4 kB / 0.7923 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.135e-06/0.3042, allocations: 8 kB / 0.7923 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.754e-05/0.3042, allocations: 11.94 kB / 0.7923 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.3043, allocations: 0 / 0.7923 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.3043, allocations: 3.984 kB / 0.7923 GB, free: 6.656 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3043, allocations: 0 / 0.7923 GB, free: 6.656 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.3043, allocations: 48 / 0.7923 GB, free: 6.656 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003006/0.3046, allocations: 215.4 kB / 0.7925 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.464e-05/0.3047, allocations: 85.02 kB / 0.7926 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.062e-05/0.3047, allocations: 3.984 kB / 0.7926 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.707e-05/0.3048, allocations: 8 kB / 0.7926 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.759e-05/0.3048, allocations: 7.984 kB / 0.7926 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.57e-05/0.3049, allocations: 7.938 kB / 0.7926 GB, free: 6.301 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.525e-05/0.3049, allocations: 87.27 kB / 0.7927 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3049, allocations: 0 / 0.7927 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002362/0.3052, allocations: 12 kB / 0.7927 GB, free: 6.203 MB / 0.6075 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.0001636/0.3053, allocations: 99.25 kB / 0.7928 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002691/0.3056, allocations: 75.89 kB / 0.7929 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.3056, allocations: 0 / 0.7929 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001183/0.3057, allocations: 43.91 kB / 0.7929 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002961/0.306, allocations: 4.188 kB / 0.793 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004102/0.3065, allocations: 148.7 kB / 0.7931 GB, free: 5.801 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002918/0.3068, allocations: 0.6835 MB / 0.7938 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.839e-05/0.3068, allocations: 0 / 0.7938 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.276e-05/0.3068, allocations: 11.44 kB / 0.7938 GB, free: 5.082 MB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.3068, allocations: 0 / 0.7938 GB, free: 5.082 MB / 0.6075 GB Notification: Performance of Templates: time 0.003338/0.3102, allocations: 0.7083 MB / 0.7945 GB, free: 4.379 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: