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.001175/0.001175, allocations: 105 kB / 16.36 MB, free: 6.426 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.001199/0.0012, allocations: 195.5 kB / 17.3 MB, free: 5.801 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.423/1.423, allocations: 205.1 MB / 223.2 MB, free: 12.23 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 2.035/2.035, allocations: 292.3 MB / 0.5496 GB, free: 17.61 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.001432/0.001433, allocations: 67.91 kB / 0.6729 GB, free: 5.848 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2344, allocations: 114.6 MB / 0.7848 GB, free: 3.184 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.00191/0.2363, allocations: 0.6781 MB / 0.7855 GB, free: 2.5 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001281/0.2376, allocations: 1.047 MB / 0.7865 GB, free: 1.438 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.111e-05/0.2377, allocations: 4 kB / 0.7865 GB, free: 1.434 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 2.976e-05/0.2377, allocations: 3.938 kB / 0.7865 GB, free: 1.43 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 5.718e-05/0.2378, allocations: 7.938 kB / 0.7865 GB, free: 1.422 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002924/0.2381, allocations: 39.89 kB / 0.7865 GB, free: 1.383 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 8.446e-05/0.2382, allocations: 47.84 kB / 0.7866 GB, free: 1.336 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.2383, allocations: 8 kB / 0.7866 GB, free: 1.328 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 7.895e-05/0.2384, allocations: 19.92 kB / 0.7866 GB, free: 1.309 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.188e-05/0.2385, allocations: 27.89 kB / 0.7866 GB, free: 1.281 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.657e-05/0.2385, allocations: 4 kB / 0.7866 GB, free: 1.277 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.366e-05/0.2386, allocations: 19.98 kB / 0.7866 GB, free: 1.258 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.15e-05/0.2386, allocations: 8 kB / 0.7867 GB, free: 1.25 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 3.793e-05/0.2386, allocations: 23.86 kB / 0.7867 GB, free: 1.227 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001222/0.2388, allocations: 55.84 kB / 0.7867 GB, free: 1.172 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2388, allocations: 0 / 0.7867 GB, free: 1.172 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.362e-06/0.2388, allocations: 0 / 0.7867 GB, free: 1.172 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.2388, allocations: 0 / 0.7867 GB, free: 1.172 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.0005868/0.2394, allocations: 363.4 kB / 0.7871 GB, free: 0.7656 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.2394, allocations: 12.03 kB / 0.7871 GB, free: 0.7539 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.047e-05/0.2395, allocations: 8.828 kB / 0.7871 GB, free: 0.7461 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001243/0.2396, allocations: 176.3 kB / 0.7873 GB, free: 0.5352 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.095e-06/0.2396, allocations: 384 / 0.7873 GB, free: 0.5352 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.536e-05/0.2396, allocations: 4.375 kB / 0.7873 GB, free: 0.5312 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002023/0.2398, allocations: 62.22 kB / 0.7873 GB, free: 476 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.2399, allocations: 4.125 kB / 0.7873 GB, free: 472 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/0.2399, allocations: 3.938 kB / 0.7873 GB, free: 468 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.2399, allocations: 8 kB / 0.7873 GB, free: 460 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001793/0.2401, allocations: 39.95 kB / 0.7874 GB, free: 420 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004744/0.2406, allocations: 280.8 kB / 0.7877 GB, free: 88 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001613/0.2407, allocations: 54.48 kB / 0.7877 GB, free: 24 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.4348/0.6755, allocations: 36.02 kB / 0.7877 GB, free: 48.84 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.931e-05/0.6756, allocations: 0 / 0.7877 GB, free: 48.84 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003138/0.676, allocations: 71.22 kB / 0.7878 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=6): time 2.054e-06/0.676, allocations: 0 / 0.7878 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of matching and sorting (n=6): time 0.0004726/0.6764, allocations: 121.1 kB / 0.7879 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.047e-05/0.6765, allocations: 55.97 kB / 0.788 GB, free: 48.7 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.136e-05/0.6766, allocations: 105.8 kB / 0.7881 GB, free: 48.61 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.6766, allocations: 29.67 kB / 0.7881 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.973e-05/0.6767, allocations: 92.89 kB / 0.7882 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.236e-05/0.6767, allocations: 10.84 kB / 0.7882 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.941e-05/0.6768, allocations: 22.16 kB / 0.7882 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.479e-05/0.6769, allocations: 314.1 kB / 0.7885 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.449e-05/0.677, allocations: 23.7 kB / 0.7885 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.891e-05/0.6771, allocations: 51.23 kB / 0.7886 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001803/0.6773, allocations: 84.97 kB / 0.7887 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.6773, allocations: 5.125 kB / 0.7887 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002362/0.6775, allocations: 109.5 kB / 0.7888 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.6775, allocations: 5.781 kB / 0.7888 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.6776, allocations: 0 / 0.7888 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.6776, allocations: 5.156 kB / 0.7888 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.6777, allocations: 18.91 kB / 0.7888 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.6777, allocations: 0 / 0.7888 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.124e-05/0.6778, allocations: 8.906 kB / 0.7888 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.6778, allocations: 6.641 kB / 0.7888 GB, free: 48.07 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 8.23e-05/0.6779, allocations: 119.8 kB / 0.7889 GB, free: 47.95 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.357e-05/0.6779, allocations: 5.625 kB / 0.7889 GB, free: 47.95 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002881/0.6782, allocations: 109.6 kB / 0.7891 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.6782, allocations: 0 / 0.7891 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.6782, allocations: 3.219 kB / 0.7891 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.6783, allocations: 5.156 kB / 0.7891 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003881/0.6787, allocations: 345.5 kB / 0.7894 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.6787, allocations: 0 / 0.7894 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.69e-05/0.6787, allocations: 11.48 kB / 0.7894 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.6787, allocations: 0.5625 kB / 0.7894 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.6788, allocations: 0.625 kB / 0.7894 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.6788, allocations: 5.969 kB / 0.7894 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.6788, allocations: 2.938 kB / 0.7894 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00024/0.679, allocations: 194.3 kB / 0.7896 GB, free: 47.48 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.179e-05/0.6791, allocations: 86.45 kB / 0.7897 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.714e-05/0.6791, allocations: 3.094 kB / 0.7897 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.603e-05/0.6792, allocations: 9.188 kB / 0.7897 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.624e-05/0.6792, allocations: 8.438 kB / 0.7897 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.6793, allocations: 3.344 kB / 0.7897 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.649e-05/0.6793, allocations: 84.98 kB / 0.7898 GB, free: 47.31 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6793, allocations: 3.062 kB / 0.7898 GB, free: 47.31 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002551/0.6796, allocations: 10.03 kB / 0.7898 GB, free: 47.31 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.0001561/0.6797, allocations: 113.8 kB / 0.7899 GB, free: 47.22 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002407/0.68, allocations: 64.53 kB / 0.79 GB, free: 47.22 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.68, allocations: 0 / 0.79 GB, free: 47.22 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.6801, allocations: 31.16 kB / 0.79 GB, free: 47.22 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002702/0.6804, allocations: 10.16 kB / 0.79 GB, free: 47.22 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000331/0.6807, allocations: 128.5 kB / 0.7901 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000124/0.6809, allocations: 0.6837 MB / 0.7908 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.162e-05/0.6809, allocations: 4.75 kB / 0.7908 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.465e-05/0.6809, allocations: 12.69 kB / 0.7908 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of SimCode: time 5.21e-07/0.6809, allocations: 0.5312 kB / 0.7908 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of Templates: time 0.003292/0.6842, allocations: 0.7829 MB / 0.7916 GB, free: 46.42 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 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)