Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.781/2.781, allocations: 287.5 MB / 302.4 MB, free: 8.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001441/0.001441, allocations: 176.5 kB / 371 MB, free: 10.88 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.374/2.374, allocations: 205.4 MB / 0.6297 GB, free: 10.61 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009741/0.0009741, allocations: 80.39 kB / 0.743 GB, free: 6.621 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007906/0.000791, allocations: 17.33 kB / 0.8658 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.2432, allocations: 115.3 MB / 0.9784 GB, free: 28.37 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001054/0.2443, allocations: 469.6 kB / 0.9788 GB, free: 27.91 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001661/0.246, allocations: 1.142 MB / 0.9799 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.742e-05/0.2461, allocations: 0 / 0.9799 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.6e-05/0.2461, allocations: 3.938 kB / 0.9799 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.681e-05/0.2462, allocations: 7.922 kB / 0.9799 GB, free: 26.74 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000634/0.2468, allocations: 123.3 kB / 0.9801 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001412/0.247, allocations: 99.8 kB / 0.9802 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.2471, allocations: 20.17 kB / 0.9802 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.615e-05/0.2472, allocations: 39.91 kB / 0.9802 GB, free: 26.46 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.404e-05/0.2473, allocations: 39.83 kB / 0.9803 GB, free: 26.42 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.169e-05/0.2474, allocations: 4 kB / 0.9803 GB, free: 26.42 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.849e-05/0.2475, allocations: 15.98 kB / 0.9803 GB, free: 26.4 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.522e-05/0.2475, allocations: 19.91 kB / 0.9803 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.149e-05/0.2476, allocations: 37.7 kB / 0.9803 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001478/0.2477, allocations: 83.81 kB / 0.9804 GB, free: 26.26 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.2477, allocations: 0 / 0.9804 GB, free: 26.26 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.155e-06/0.2478, allocations: 0 / 0.9804 GB, free: 26.26 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.2478, allocations: 0 / 0.9804 GB, free: 26.26 MB / 0.6198 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.0006145/0.2484, allocations: 401.1 kB / 0.9808 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.2484, allocations: 15.97 kB / 0.9808 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.784e-05/0.2485, allocations: 7.906 kB / 0.9808 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.5e-05/0.2486, allocations: 182.9 kB / 0.981 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.866e-05/0.2487, allocations: 7.984 kB / 0.981 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.948e-05/0.2487, allocations: 12 kB / 0.981 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002836/0.249, allocations: 73.66 kB / 0.9811 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.249, allocations: 0 / 0.9811 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.249, allocations: 4 kB / 0.9811 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.2491, allocations: 0 / 0.9811 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003053/0.2494, allocations: 67.83 kB / 0.9811 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005713/0.25, allocations: 344.6 kB / 0.9815 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002339/0.2502, allocations: 66.58 kB / 0.9815 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.2504, allocations: 36.97 kB / 0.9816 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.551e-05/0.2504, allocations: 0 / 0.9816 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003059/0.2507, allocations: 91.36 kB / 0.9817 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=8): time 1.954e-06/0.2508, allocations: 0 / 0.9817 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8): time 0.0007034/0.2515, allocations: 181.4 kB / 0.9818 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/0.2516, allocations: 51.41 kB / 0.9819 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.853e-05/0.2517, allocations: 117.8 kB / 0.982 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.329e-05/0.2517, allocations: 29.7 kB / 0.982 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.284e-05/0.2518, allocations: 100 kB / 0.9821 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.737e-05/0.2518, allocations: 23.75 kB / 0.9821 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.823e-05/0.2519, allocations: 0 / 0.9821 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.642e-05/0.2519, allocations: 322.8 kB / 0.9824 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002467/0.2522, allocations: 51.97 kB / 0.9825 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002639/0.2525, allocations: 101.1 kB / 0.9826 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002617/0.2527, allocations: 85.67 kB / 0.9827 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.2528, allocations: 11.88 kB / 0.9827 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0006667/0.2534, allocations: 219.1 kB / 0.9829 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.428e-05/0.2535, allocations: 37.69 kB / 0.9829 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.2535, allocations: 160 / 0.9829 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.759e-05/0.2536, allocations: 8 kB / 0.9829 GB, free: 23.4 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000163/0.2537, allocations: 19.98 kB / 0.983 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.2538, allocations: 3.953 kB / 0.983 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004435/0.2542, allocations: 47.95 kB / 0.983 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.26e-05/0.2543, allocations: 8 kB / 0.983 GB, free: 23.32 MB / 0.6198 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 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001206/0.2544, allocations: 125.8 kB / 0.9831 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.42e-05/0.2544, allocations: 11.89 kB / 0.9831 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004885/0.2549, allocations: 134 kB / 0.9833 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.2549, allocations: 0 / 0.9833 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.255, allocations: 0 / 0.9833 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.255, allocations: 3.953 kB / 0.9833 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005755/0.2556, allocations: 394.3 kB / 0.9837 GB, free: 22.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2556, allocations: 4 kB / 0.9837 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001073/0.2557, allocations: 11.98 kB / 0.9837 GB, free: 22.58 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.2557, allocations: 0 / 0.9837 GB, free: 22.58 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.2557, allocations: 0 / 0.9837 GB, free: 22.58 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.2557, allocations: 3.953 kB / 0.9837 GB, free: 22.58 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.2557, allocations: 4 kB / 0.9837 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000433/0.2562, allocations: 223.4 kB / 0.9839 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.187e-05/0.2562, allocations: 89.05 kB / 0.984 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.159e-05/0.2563, allocations: 3.938 kB / 0.984 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001324/0.2564, allocations: 15.98 kB / 0.984 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.766e-05/0.2565, allocations: 11.94 kB / 0.984 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.2565, allocations: 4 kB / 0.984 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.454e-05/0.2566, allocations: 91.27 kB / 0.9841 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.41e-07/0.2566, allocations: 0 / 0.9841 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004179/0.257, allocations: 20 kB / 0.9841 GB, free: 22.09 MB / 0.6198 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 (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.0001525/0.2572, allocations: 107.2 kB / 0.9842 GB, free: 21.97 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005839/0.2578, allocations: 187.2 kB / 0.9844 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2578, allocations: 0 / 0.9844 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000197/0.258, allocations: 52.22 kB / 0.9844 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003674/0.2584, allocations: 11.98 kB / 0.9845 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004894/0.2589, allocations: 195.7 kB / 0.9846 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/0.2591, allocations: 0.6926 MB / 0.9853 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.367e-05/0.2592, allocations: 4 kB / 0.9853 GB, free: 20.78 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.329e-05/0.2592, allocations: 11.44 kB / 0.9853 GB, free: 20.77 MB / 0.6198 GB Notification: Performance of SimCode: time 1.122e-06/0.2592, allocations: 0 / 0.9853 GB, free: 20.77 MB / 0.6198 GB Notification: Performance of Templates: time 0.005025/0.2643, allocations: 1.279 MB / 0.9866 GB, free: 19.51 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)