Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 102.3 kB / 16.35 MB, free: 6.34 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.001339/0.001339, allocations: 189.3 kB / 17.29 MB, free: 5.918 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.478/1.478, allocations: 205.1 MB / 223.2 MB, free: 12.27 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.942/1.942, 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.001461/0.001461, allocations: 71.89 kB / 0.6729 GB, free: 5.891 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/0.2443, allocations: 114.5 MB / 0.7848 GB, free: 3.227 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002233/0.2465, allocations: 0.7638 MB / 0.7855 GB, free: 2.457 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001566/0.2481, allocations: 1.152 MB / 0.7867 GB, free: 1.289 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.005e-05/0.2482, allocations: 0 / 0.7867 GB, free: 1.289 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.179e-05/0.2482, allocations: 11.86 kB / 0.7867 GB, free: 1.277 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 6.611e-05/0.2483, allocations: 7.922 kB / 0.7867 GB, free: 1.27 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004733/0.2488, allocations: 146.6 kB / 0.7868 GB, free: 1.129 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001753/0.249, allocations: 127.7 kB / 0.7869 GB, free: 1.004 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.2491, allocations: 28.16 kB / 0.787 GB, free: 0.9727 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 8.255e-05/0.2492, allocations: 43.91 kB / 0.787 GB, free: 0.9297 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001049/0.2493, allocations: 51.77 kB / 0.7871 GB, free: 0.8789 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.948e-05/0.2493, allocations: 12 kB / 0.7871 GB, free: 0.8672 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.476e-05/0.2494, allocations: 31.97 kB / 0.7871 GB, free: 0.8359 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.113e-05/0.2494, allocations: 7.984 kB / 0.7871 GB, free: 0.8281 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 7.018e-05/0.2495, allocations: 51.78 kB / 0.7872 GB, free: 0.7773 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001816/0.2497, allocations: 115.7 kB / 0.7873 GB, free: 0.6641 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2497, allocations: 4 kB / 0.7873 GB, free: 0.6602 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.014e-06/0.2497, allocations: 4 kB / 0.7873 GB, free: 0.6562 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.2497, allocations: 0 / 0.7873 GB, free: 0.6562 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006104/0.2504, allocations: 424.8 kB / 0.7877 GB, free: 192 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.2504, allocations: 12.03 kB / 0.7877 GB, free: 180 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.087e-05/0.2505, allocations: 8.844 kB / 0.7877 GB, free: 172 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3728/0.6232, allocations: 174.5 kB / 0.7879 GB, free: 48.86 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.039e-05/0.6233, allocations: 3.969 kB / 0.7879 GB, free: 48.86 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.971e-05/0.6234, allocations: 11.83 kB / 0.7879 GB, free: 48.86 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003751/0.6238, allocations: 70.3 kB / 0.7879 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.6239, allocations: 0 / 0.7879 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.911e-05/0.6239, allocations: 10.61 kB / 0.788 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.6239, allocations: 1.031 kB / 0.788 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003135/0.6242, allocations: 52.41 kB / 0.788 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007445/0.625, allocations: 335.5 kB / 0.7883 GB, free: 48.56 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002363/0.6253, allocations: 62.73 kB / 0.7884 GB, free: 48.53 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001473/0.6254, allocations: 36.64 kB / 0.7884 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.245e-05/0.6255, allocations: 0.5938 kB / 0.7884 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003524/0.6258, allocations: 88.72 kB / 0.7885 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=8): time 3.487e-06/0.6258, allocations: 0 / 0.7885 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of matching and sorting (n=8): time 0.0006799/0.6265, allocations: 152.6 kB / 0.7886 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.387e-05/0.6266, allocations: 61.94 kB / 0.7887 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.6267, allocations: 115.7 kB / 0.7888 GB, free: 48.29 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.096e-05/0.6267, allocations: 31.73 kB / 0.7888 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.568e-05/0.6268, allocations: 95.09 kB / 0.7889 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.901e-05/0.6269, allocations: 19.5 kB / 0.789 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.627, allocations: 45.19 kB / 0.789 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.472e-05/0.6271, allocations: 320.5 kB / 0.7893 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002607/0.6273, allocations: 50.02 kB / 0.7894 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000271/0.6276, allocations: 91.61 kB / 0.7894 GB, free: 47.79 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004086/0.628, allocations: 149.7 kB / 0.7896 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.6281, allocations: 4.469 kB / 0.7896 GB, free: 47.7 MB / 0.6544 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0007374/0.6288, allocations: 213.5 kB / 0.7898 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.175e-05/0.6289, allocations: 34.52 kB / 0.7898 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.475e-06/0.6289, allocations: 2.906 kB / 0.7898 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.6289, allocations: 4.469 kB / 0.7898 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001604/0.6291, allocations: 22.97 kB / 0.7899 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.689e-06/0.6291, allocations: 0 / 0.7899 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000367/0.6295, allocations: 43.66 kB / 0.7899 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.29e-05/0.6296, allocations: 9.094 kB / 0.7899 GB, free: 47.6 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0001197/0.6297, allocations: 130.9 kB / 0.79 GB, free: 47.48 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.639e-05/0.6297, allocations: 6.656 kB / 0.79 GB, free: 47.48 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004591/0.6302, allocations: 125.6 kB / 0.7902 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.6302, allocations: 2.875 kB / 0.7902 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.6302, allocations: 0 / 0.7902 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.6303, allocations: 4.609 kB / 0.7902 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005854/0.6309, allocations: 376.3 kB / 0.7905 GB, free: 47.15 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.6309, allocations: 0 / 0.7905 GB, free: 47.15 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001022/0.631, allocations: 14.67 kB / 0.7905 GB, free: 47.15 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.631, allocations: 3.312 kB / 0.7905 GB, free: 47.15 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.631, allocations: 1 kB / 0.7905 GB, free: 47.15 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.6311, allocations: 2.625 kB / 0.7905 GB, free: 47.15 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.6311, allocations: 0 / 0.7905 GB, free: 47.15 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004403/0.6315, allocations: 219.9 kB / 0.7908 GB, free: 47.02 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.606e-05/0.6316, allocations: 87.28 kB / 0.7908 GB, free: 46.92 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.544e-05/0.6316, allocations: 1.312 kB / 0.7908 GB, free: 46.92 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001594/0.6318, allocations: 6.453 kB / 0.7908 GB, free: 46.92 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.615e-05/0.6318, allocations: 8.672 kB / 0.7908 GB, free: 46.92 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.6319, allocations: 5.188 kB / 0.7909 GB, free: 46.92 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.535e-05/0.6319, allocations: 93.12 kB / 0.7909 GB, free: 46.84 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.61e-07/0.632, allocations: 0.875 kB / 0.7909 GB, free: 46.84 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0005138/0.6325, allocations: 26.06 kB / 0.791 GB, free: 46.84 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001772/0.6327, allocations: 112.2 kB / 0.7911 GB, free: 46.75 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0005804/0.6333, allocations: 179.2 kB / 0.7912 GB, free: 46.69 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.6333, allocations: 3.828 kB / 0.7913 GB, free: 46.69 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001909/0.6335, allocations: 40.22 kB / 0.7913 GB, free: 46.69 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004787/0.634, allocations: 15.22 kB / 0.7913 GB, free: 46.69 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004573/0.6345, allocations: 172.5 kB / 0.7915 GB, free: 46.57 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001352/0.6346, allocations: 0.6934 MB / 0.7921 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 5.064e-05/0.6347, allocations: 2.625 kB / 0.7921 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.304e-05/0.6347, allocations: 10.06 kB / 0.7922 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of SimCode: time 5.11e-07/0.6347, allocations: 0 / 0.7922 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of Templates: time 0.006192/0.6409, allocations: 1.434 MB / 0.7936 GB, free: 45.82 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)