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 3.24/3.24, allocations: 287.3 MB / 302.3 MB, free: 8.266 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.001643/0.001642, allocations: 192.3 kB / 370.8 MB, free: 10.85 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.781/2.781, allocations: 205.4 MB / 0.6295 GB, free: 10.62 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.001543/0.001543, allocations: 96.83 kB / 0.7428 GB, free: 6.625 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005067/0.0005069, allocations: 17.05 kB / 0.8656 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.257, allocations: 115.3 MB / 0.9782 GB, free: 28.39 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.00128/0.2583, allocations: 481.5 kB / 0.9787 GB, free: 27.92 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002455/0.2608, allocations: 1.118 MB / 0.9798 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.445e-05/0.261, allocations: 0 / 0.9798 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.698e-05/0.261, allocations: 3.938 kB / 0.9798 GB, free: 26.78 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001574/0.2612, allocations: 7.969 kB / 0.9798 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008564/0.2621, allocations: 123.6 kB / 0.9799 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001749/0.2623, allocations: 67.92 kB / 0.9799 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000149/0.2625, allocations: 12.17 kB / 0.98 GB, free: 26.57 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001299/0.2626, allocations: 39.91 kB / 0.98 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.2628, allocations: 39.83 kB / 0.98 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.866e-05/0.2628, allocations: 4 kB / 0.98 GB, free: 26.49 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.2629, allocations: 19.98 kB / 0.9801 GB, free: 26.47 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.904e-05/0.263, allocations: 7.984 kB / 0.9801 GB, free: 26.46 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.189e-05/0.2631, allocations: 45.64 kB / 0.9801 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002014/0.2633, allocations: 83.8 kB / 0.9802 GB, free: 26.33 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.2633, allocations: 0 / 0.9802 GB, free: 26.33 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.895e-06/0.2633, allocations: 0 / 0.9802 GB, free: 26.33 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.201e-06/0.2634, allocations: 0 / 0.9802 GB, free: 26.33 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.0008073/0.2642, allocations: 405 kB / 0.9806 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 0.000122/0.2643, allocations: 12.03 kB / 0.9806 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.334e-05/0.2644, allocations: 11.91 kB / 0.9806 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001505/0.2646, allocations: 175 kB / 0.9808 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.002e-05/0.2647, allocations: 11.94 kB / 0.9808 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.443e-05/0.2647, allocations: 8 kB / 0.9808 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004065/0.2652, allocations: 69.66 kB / 0.9808 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.2652, allocations: 0 / 0.9808 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.282e-05/0.2652, allocations: 8 kB / 0.9809 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.2652, allocations: 0 / 0.9809 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004573/0.2657, allocations: 63.89 kB / 0.9809 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008526/0.2666, allocations: 348.6 kB / 0.9813 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003354/0.267, allocations: 62.55 kB / 0.9813 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 4.042e-05/0.267, allocations: 0 / 0.9813 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004327/0.2675, allocations: 107.5 kB / 0.9814 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=8): time 3.517e-06/0.2675, allocations: 0 / 0.9814 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8): time 0.001115/0.2686, allocations: 157.5 kB / 0.9816 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/0.2687, allocations: 63.36 kB / 0.9816 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.2689, allocations: 117.8 kB / 0.9817 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.757e-05/0.2689, allocations: 29.7 kB / 0.9818 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.932e-05/0.269, allocations: 92.05 kB / 0.9819 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.123e-05/0.2691, allocations: 27.72 kB / 0.9819 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.853e-05/0.2691, allocations: 4 kB / 0.9819 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.459e-05/0.2692, allocations: 322.8 kB / 0.9822 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003712/0.2696, allocations: 59.91 kB / 0.9822 GB, free: 24 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003985/0.2701, allocations: 97.11 kB / 0.9823 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000379/0.2705, allocations: 81.67 kB / 0.9824 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.2705, allocations: 3.938 kB / 0.9824 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001025/0.2715, allocations: 227.1 kB / 0.9826 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.717e-05/0.2716, allocations: 29.7 kB / 0.9827 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.2716, allocations: 4 kB / 0.9827 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.158e-05/0.2717, allocations: 3.984 kB / 0.9827 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002265/0.2719, allocations: 24.09 kB / 0.9827 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.272, allocations: 7.938 kB / 0.9827 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006114/0.2726, allocations: 43.97 kB / 0.9827 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.155e-05/0.2727, allocations: 16.03 kB / 0.9828 GB, free: 23.43 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.0001694/0.2728, allocations: 121.8 kB / 0.9829 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.866e-05/0.2729, allocations: 11.89 kB / 0.9829 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007006/0.2736, allocations: 133.9 kB / 0.983 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/0.2736, allocations: 8 kB / 0.983 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.2737, allocations: 0 / 0.983 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.2737, allocations: 3.953 kB / 0.983 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008612/0.2746, allocations: 382.4 kB / 0.9834 GB, free: 22.72 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.2746, allocations: 4 kB / 0.9834 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001606/0.2748, allocations: 19.92 kB / 0.9834 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.396e-06/0.2748, allocations: 0 / 0.9834 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/0.2748, allocations: 4 kB / 0.9834 GB, free: 22.69 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.9e-06/0.2748, allocations: 0 / 0.9834 GB, free: 22.69 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.2749, allocations: 7.938 kB / 0.9834 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006695/0.2755, allocations: 219.5 kB / 0.9836 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.812e-05/0.2756, allocations: 81.02 kB / 0.9837 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.749e-05/0.2757, allocations: 7.938 kB / 0.9837 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.2759, allocations: 7.984 kB / 0.9837 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.574e-05/0.276, allocations: 7.953 kB / 0.9837 GB, free: 22.33 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.071e-05/0.276, allocations: 11.98 kB / 0.9837 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 8.178e-05/0.2761, allocations: 91.28 kB / 0.9838 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5.51e-07/0.2761, allocations: 0 / 0.9838 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0006689/0.2768, allocations: 23.98 kB / 0.9839 GB, free: 22.21 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.0002442/0.2771, allocations: 107.2 kB / 0.984 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0009089/0.278, allocations: 191.2 kB / 0.9841 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.2781, allocations: 0 / 0.9841 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002925/0.2784, allocations: 43.97 kB / 0.9842 GB, free: 21.85 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004144/0.2788, allocations: 17.19 kB / 0.9842 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006116/0.2794, allocations: 187 kB / 0.9844 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001808/0.2797, allocations: 0.6965 MB / 0.9851 GB, free: 20.91 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 7.119e-05/0.2797, allocations: 8 kB / 0.9851 GB, free: 20.9 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.549e-05/0.2798, allocations: 11.44 kB / 0.9851 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of SimCode: time 1.283e-06/0.2798, allocations: 0 / 0.9851 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of Templates: time 0.006937/0.2868, allocations: 1.274 MB / 0.9863 GB, free: 19.63 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)