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.001179/0.001179, allocations: 102.1 kB / 16.36 MB, free: 5.902 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.001189/0.001189, allocations: 187.9 kB / 17.29 MB, free: 5.527 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.505/1.505, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.818/1.818, allocations: 292.3 MB / 0.5496 GB, free: 17.43 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.001445/0.001445, allocations: 82.17 kB / 0.6729 GB, free: 5.824 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2774/0.2789, allocations: 114.6 MB / 0.7848 GB, free: 3.156 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002254/0.2812, allocations: 0.7634 MB / 0.7855 GB, free: 2.391 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001703/0.2829, allocations: 1.152 MB / 0.7867 GB, free: 1.223 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.974e-05/0.283, allocations: 3.938 kB / 0.7867 GB, free: 1.219 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.92e-05/0.2831, allocations: 7.922 kB / 0.7867 GB, free: 1.211 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.699e-05/0.2831, allocations: 7.875 kB / 0.7867 GB, free: 1.203 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004911/0.2836, allocations: 139 kB / 0.7868 GB, free: 1.07 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002584/0.2839, allocations: 131.7 kB / 0.7869 GB, free: 0.9414 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.284, allocations: 16.19 kB / 0.787 GB, free: 0.9219 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 8.901e-05/0.2841, allocations: 51.88 kB / 0.787 GB, free: 0.8711 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.2842, allocations: 47.83 kB / 0.7871 GB, free: 0.8242 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.611e-05/0.2843, allocations: 12 kB / 0.7871 GB, free: 0.8125 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.844e-05/0.2843, allocations: 31.98 kB / 0.7871 GB, free: 0.7812 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.319e-05/0.2844, allocations: 7.984 kB / 0.7871 GB, free: 0.7734 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 8.014e-05/0.2845, allocations: 55.77 kB / 0.7872 GB, free: 0.7188 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001824/0.2846, allocations: 115.6 kB / 0.7873 GB, free: 0.6055 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.2847, allocations: 3.938 kB / 0.7873 GB, free: 0.6016 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2847, allocations: 4 kB / 0.7873 GB, free: 0.5977 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.511e-06/0.2847, allocations: 0 / 0.7873 GB, free: 0.5977 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.0006717/0.2854, allocations: 424.9 kB / 0.7877 GB, free: 132 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.2854, allocations: 12.03 kB / 0.7877 GB, free: 120 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.815e-05/0.2855, allocations: 12.84 kB / 0.7877 GB, free: 108 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3471/0.6326, allocations: 169.8 kB / 0.7879 GB, free: 48.86 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.016e-05/0.6327, allocations: 4.188 kB / 0.7879 GB, free: 48.86 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.004e-05/0.6328, allocations: 7.438 kB / 0.7879 GB, free: 48.86 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002693/0.633, allocations: 78.41 kB / 0.788 GB, free: 48.83 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.6331, allocations: 0.5 kB / 0.788 GB, free: 48.83 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.6331, allocations: 0 / 0.788 GB, free: 48.83 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.6331, allocations: 3.609 kB / 0.788 GB, free: 48.83 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001838/0.6333, allocations: 47.92 kB / 0.788 GB, free: 48.83 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004655/0.6338, allocations: 343.7 kB / 0.7883 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001751/0.6339, allocations: 63.34 kB / 0.7884 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.286e-05/0.634, allocations: 31.8 kB / 0.7884 GB, free: 48.53 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.606e-05/0.6341, allocations: 2.344 kB / 0.7884 GB, free: 48.53 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002199/0.6343, allocations: 91.31 kB / 0.7885 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=8): time 2.354e-06/0.6343, allocations: 1.938 kB / 0.7885 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of matching and sorting (n=8): time 0.0004459/0.6348, allocations: 153.9 kB / 0.7887 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.154e-05/0.6348, allocations: 52 kB / 0.7887 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.785e-05/0.6349, allocations: 122.9 kB / 0.7888 GB, free: 48.29 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.6349, allocations: 33.39 kB / 0.7889 GB, free: 48.26 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.218e-05/0.635, allocations: 94.16 kB / 0.7889 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.115e-05/0.635, allocations: 24.88 kB / 0.789 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.716e-05/0.6351, allocations: 40.05 kB / 0.789 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.763e-05/0.6351, allocations: 319.7 kB / 0.7893 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001439/0.6353, allocations: 53.72 kB / 0.7894 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001483/0.6354, allocations: 90.06 kB / 0.7895 GB, free: 47.79 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002484/0.6357, allocations: 155.2 kB / 0.7896 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.6357, allocations: 3.938 kB / 0.7896 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000416/0.6361, allocations: 209.5 kB / 0.7898 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.492e-05/0.6362, allocations: 39.36 kB / 0.7898 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/0.6362, allocations: 5.5 kB / 0.7898 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.6362, allocations: 3.312 kB / 0.7898 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001021/0.6363, allocations: 12.11 kB / 0.7899 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.6363, allocations: 2.906 kB / 0.7899 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001976/0.6365, allocations: 37.23 kB / 0.7899 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/0.6366, allocations: 8.594 kB / 0.7899 GB, free: 47.61 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 8.129e-05/0.6367, allocations: 130.5 kB / 0.79 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.42e-05/0.6367, allocations: 7.219 kB / 0.79 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002902/0.637, allocations: 122.6 kB / 0.7902 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.637, allocations: 3.656 kB / 0.7902 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.637, allocations: 2.062 kB / 0.7902 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.637, allocations: 2.859 kB / 0.7902 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003724/0.6374, allocations: 379.5 kB / 0.7905 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.6374, allocations: 0.9688 kB / 0.7905 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.703e-05/0.6375, allocations: 13.59 kB / 0.7905 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.6375, allocations: 2.938 kB / 0.7905 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.828e-06/0.6375, allocations: 2.188 kB / 0.7905 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.6375, allocations: 0 / 0.7905 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.6375, allocations: 4.625 kB / 0.7905 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002716/0.6378, allocations: 220.4 kB / 0.7908 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.78e-05/0.6378, allocations: 83.56 kB / 0.7908 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.783e-05/0.6378, allocations: 4.656 kB / 0.7908 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.196e-05/0.6379, allocations: 8.203 kB / 0.7909 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.975e-05/0.638, allocations: 6.125 kB / 0.7909 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.756e-06/0.638, allocations: 8.375 kB / 0.7909 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.758e-05/0.638, allocations: 91.55 kB / 0.791 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of sort global known variables: time 8.51e-07/0.638, allocations: 0 / 0.791 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002806/0.6383, allocations: 38.91 kB / 0.791 GB, free: 46.85 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.0001522/0.6385, allocations: 104 kB / 0.7911 GB, free: 46.76 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003886/0.6389, allocations: 181.5 kB / 0.7913 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.6389, allocations: 0 / 0.7913 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001169/0.639, allocations: 42.64 kB / 0.7913 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003014/0.6393, allocations: 15.88 kB / 0.7913 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003915/0.6397, allocations: 197.2 kB / 0.7915 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001423/0.6399, allocations: 0.6907 MB / 0.7922 GB, free: 45.86 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.895e-05/0.6399, allocations: 12.69 kB / 0.7922 GB, free: 45.86 MB / 0.6544 GB Notification: Performance of SimCode: time 2.11e-07/0.6399, allocations: 0 / 0.7922 GB, free: 45.86 MB / 0.6544 GB Notification: Performance of Templates: time 0.002968/0.6429, allocations: 1.277 MB / 0.7934 GB, free: 45.8 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 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)