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.0008642/0.0008642, allocations: 86.88 kB / 15.06 MB, free: 1.09 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.0009226/0.0009226, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.454/1.454, allocations: 205.4 MB / 222.1 MB, free: 5.633 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.653/1.653, allocations: 292.7 MB / 0.5499 GB, free: 14.54 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.0005817/0.0005819, allocations: 15.5 kB / 0.6737 GB, free: 26.13 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2468, allocations: 116.3 MB / 0.7873 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0008827/0.2478, allocations: 405.5 kB / 0.7877 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00119/0.249, allocations: 1.025 MB / 0.7887 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.579e-05/0.249, allocations: 0 / 0.7887 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.679e-05/0.2491, allocations: 0 / 0.7887 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.388e-05/0.2491, allocations: 7.922 kB / 0.7887 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002309/0.2494, allocations: 27.92 kB / 0.7887 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.368e-05/0.2495, allocations: 39.91 kB / 0.7888 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.616e-05/0.2496, allocations: 23.92 kB / 0.7888 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.496e-05/0.2496, allocations: 11.92 kB / 0.7888 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.121e-05/0.2497, allocations: 19.92 kB / 0.7888 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.218e-05/0.2497, allocations: 0 / 0.7888 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.766e-05/0.2498, allocations: 15.98 kB / 0.7888 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.734e-05/0.2498, allocations: 11.98 kB / 0.7888 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.33e-05/0.2498, allocations: 29.64 kB / 0.7889 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.151e-05/0.2499, allocations: 43.91 kB / 0.7889 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 1.754e-05/0.2499, allocations: 0 / 0.7889 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.513e-06/0.25, allocations: 0 / 0.7889 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.274e-06/0.25, allocations: 0 / 0.7889 GB, free: 10.25 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.0005176/0.2505, allocations: 363.5 kB / 0.7892 GB, free: 9.844 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.2505, allocations: 8.031 kB / 0.7893 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.276e-05/0.2506, allocations: 7.906 kB / 0.7893 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.2507, allocations: 167 kB / 0.7894 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.973e-05/0.2507, allocations: 4 kB / 0.7894 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.627e-05/0.2507, allocations: 8 kB / 0.7894 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000184/0.2509, allocations: 69.58 kB / 0.7895 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.2509, allocations: 3.938 kB / 0.7895 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.251, allocations: 4 kB / 0.7895 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.251, allocations: 4 kB / 0.7895 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001665/0.2511, allocations: 51.95 kB / 0.7896 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004709/0.2516, allocations: 280.8 kB / 0.7898 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001497/0.2518, allocations: 66.48 kB / 0.7899 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.108e-05/0.2519, allocations: 36.97 kB / 0.7899 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.204e-05/0.2519, allocations: 0 / 0.7899 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001948/0.2521, allocations: 79.38 kB / 0.79 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.403e-06/0.2521, allocations: 4 kB / 0.79 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0003807/0.2525, allocations: 133.7 kB / 0.7901 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.376e-05/0.2526, allocations: 59.34 kB / 0.7902 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.819e-05/0.2527, allocations: 109.9 kB / 0.7903 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.539e-05/0.2527, allocations: 29.7 kB / 0.7903 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.722e-05/0.2527, allocations: 80.14 kB / 0.7904 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.191e-05/0.2528, allocations: 15.81 kB / 0.7904 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-06/0.2528, allocations: 3.938 kB / 0.7904 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001082/0.2529, allocations: 318.8 kB / 0.7907 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.654e-05/0.253, allocations: 31.98 kB / 0.7908 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.2531, allocations: 55.41 kB / 0.7908 GB, free: 8.066 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.2e-05/0.2532, allocations: 35.97 kB / 0.7908 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2532, allocations: 0 / 0.7908 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002357/0.2534, allocations: 121.5 kB / 0.791 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.2535, allocations: 4 kB / 0.791 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.2535, allocations: 0 / 0.791 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.2535, allocations: 4 kB / 0.791 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.6e-05/0.2536, allocations: 15.98 kB / 0.791 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.2536, allocations: 3.984 kB / 0.791 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.289e-05/0.2537, allocations: 15.94 kB / 0.791 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.2537, allocations: 4 kB / 0.791 GB, free: 7.859 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 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.65e-05/0.2538, allocations: 117.8 kB / 0.7911 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.383e-05/0.2538, allocations: 3.984 kB / 0.7911 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002684/0.2541, allocations: 118 kB / 0.7912 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.2541, allocations: 4 kB / 0.7912 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.2541, allocations: 0 / 0.7912 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.2541, allocations: 0 / 0.7912 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003902/0.2545, allocations: 370.4 kB / 0.7916 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.2545, allocations: 4 kB / 0.7916 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.122e-05/0.2546, allocations: 8 kB / 0.7916 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.2546, allocations: 3.984 kB / 0.7916 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.2546, allocations: 4 kB / 0.7916 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.2546, allocations: 0 / 0.7916 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.2546, allocations: 7.938 kB / 0.7916 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002542/0.2549, allocations: 195.8 kB / 0.7918 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.575e-05/0.2549, allocations: 89 kB / 0.7919 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.2549, allocations: 8.062 kB / 0.7919 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.828e-05/0.255, allocations: 12.03 kB / 0.7919 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.724e-05/0.2551, allocations: 11.92 kB / 0.7919 GB, free: 6.816 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.2551, allocations: 4 kB / 0.7919 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.05e-05/0.2551, allocations: 87.27 kB / 0.792 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2551, allocations: 0 / 0.792 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002328/0.2554, allocations: 15.95 kB / 0.792 GB, free: 6.711 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001529/0.2555, allocations: 103.2 kB / 0.7921 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002371/0.2558, allocations: 83.88 kB / 0.7922 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.2558, allocations: 0 / 0.7922 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.928e-05/0.2559, allocations: 31.98 kB / 0.7922 GB, free: 6.488 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002477/0.2562, allocations: 16.17 kB / 0.7922 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003225/0.2565, allocations: 135.4 kB / 0.7924 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002932/0.2568, allocations: 0.6809 MB / 0.793 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.299e-05/0.2568, allocations: 4.188 kB / 0.793 GB, free: 5.598 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.395e-05/0.2569, allocations: 15.42 kB / 0.7931 GB, free: 5.582 MB / 0.6075 GB Notification: Performance of SimCode: time 2.21e-07/0.2569, allocations: 4 kB / 0.7931 GB, free: 5.578 MB / 0.6075 GB Notification: Performance of Templates: time 0.003014/0.2599, allocations: 0.6764 MB / 0.7937 GB, free: 4.906 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: