Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.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.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008611/0.0008611, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001014/0.001014, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.443/1.443, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.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.692/1.692, allocations: 292.7 MB / 0.5499 GB, free: 14.58 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.0005701/0.0005702, allocations: 14.81 kB / 0.6737 GB, free: 26.13 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2416/0.2422, allocations: 116.3 MB / 0.7873 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.0007872/0.243, allocations: 457.4 kB / 0.7877 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001353/0.2444, allocations: 1.161 MB / 0.7889 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.069e-05/0.2444, allocations: 3.938 kB / 0.7889 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.07e-05/0.2445, allocations: 0 / 0.7889 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.148e-05/0.2445, allocations: 11.92 kB / 0.7889 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004233/0.245, allocations: 118.5 kB / 0.789 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001065/0.2451, allocations: 91.81 kB / 0.7891 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 6.234e-05/0.2452, allocations: 23.91 kB / 0.7891 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.844e-05/0.2453, allocations: 39.91 kB / 0.7891 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.996e-05/0.2453, allocations: 31.89 kB / 0.7892 GB, free: 10 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.106e-05/0.2454, allocations: 11.98 kB / 0.7892 GB, free: 9.988 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.473e-05/0.2454, allocations: 15.92 kB / 0.7892 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.413e-05/0.2454, allocations: 8 kB / 0.7892 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.442e-05/0.2455, allocations: 37.7 kB / 0.7892 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.837e-05/0.2456, allocations: 79.75 kB / 0.7893 GB, free: 9.844 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2456, allocations: 4 kB / 0.7893 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.164e-06/0.2456, allocations: 4 kB / 0.7893 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.146e-06/0.2456, allocations: 0 / 0.7893 GB, free: 9.836 MB / 0.6075 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.0004292/0.2461, allocations: 389.1 kB / 0.7897 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.2461, allocations: 12.03 kB / 0.7897 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.776e-05/0.2461, allocations: 7.906 kB / 0.7897 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001004/0.2462, allocations: 167 kB / 0.7899 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.2463, allocations: 8 kB / 0.7899 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.948e-05/0.2463, allocations: 8 kB / 0.7899 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001834/0.2465, allocations: 69.66 kB / 0.79 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.2465, allocations: 0 / 0.79 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.2465, allocations: 3.984 kB / 0.79 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.2465, allocations: 0 / 0.79 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001677/0.2467, allocations: 55.91 kB / 0.79 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000425/0.2471, allocations: 328.7 kB / 0.7903 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000141/0.2473, allocations: 50.66 kB / 0.7904 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.847e-05/0.2474, allocations: 40.83 kB / 0.7904 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.542e-05/0.2474, allocations: 4.062 kB / 0.7904 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002021/0.2476, allocations: 95.3 kB / 0.7905 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.2476, allocations: 0 / 0.7905 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0003885/0.248, allocations: 149.5 kB / 0.7907 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.326e-05/0.2481, allocations: 55.41 kB / 0.7907 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.234e-05/0.2481, allocations: 121.7 kB / 0.7908 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.353e-05/0.2482, allocations: 33.7 kB / 0.7909 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.011e-05/0.2482, allocations: 88.33 kB / 0.7909 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.915e-05/0.2483, allocations: 15.8 kB / 0.791 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.239e-05/0.2483, allocations: 7.938 kB / 0.791 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000105/0.2484, allocations: 322.8 kB / 0.7913 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001495/0.2486, allocations: 47.97 kB / 0.7913 GB, free: 7.574 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.2487, allocations: 87.33 kB / 0.7914 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001502/0.2489, allocations: 85.67 kB / 0.7915 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2489, allocations: 0 / 0.7915 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003902/0.2493, allocations: 211.2 kB / 0.7917 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.631e-05/0.2493, allocations: 37.69 kB / 0.7917 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.2493, allocations: 3.938 kB / 0.7917 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.648e-06/0.2494, allocations: 0 / 0.7917 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.704e-05/0.2494, allocations: 19.98 kB / 0.7917 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.2495, allocations: 4 kB / 0.7917 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001983/0.2497, allocations: 55.81 kB / 0.7918 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.2497, allocations: 4 kB / 0.7918 GB, free: 7.039 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,$whenCondition1,$PRE.booPul.y,booPul.y,$PRE.triggeredMax.y,triggeredMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * 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 9.251e-05/0.2498, allocations: 121.8 kB / 0.7919 GB, free: 6.91 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.043e-05/0.2498, allocations: 0 / 0.7919 GB, free: 6.91 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002703/0.2501, allocations: 134.2 kB / 0.792 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.2501, allocations: 0 / 0.792 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.2501, allocations: 0 / 0.792 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2501, allocations: 0 / 0.792 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003823/0.2505, allocations: 374.6 kB / 0.7924 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.2505, allocations: 8 kB / 0.7924 GB, free: 6.344 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.881e-05/0.2506, allocations: 15.92 kB / 0.7924 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.2506, allocations: 0 / 0.7924 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-06/0.2506, allocations: 0 / 0.7924 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.2506, allocations: 4 kB / 0.7924 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.2506, allocations: 4 kB / 0.7924 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000269/0.2509, allocations: 215.4 kB / 0.7926 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.44e-05/0.2509, allocations: 85.02 kB / 0.7927 GB, free: 5.992 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.756e-05/0.251, allocations: 3.984 kB / 0.7927 GB, free: 5.988 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.884e-05/0.251, allocations: 8 kB / 0.7927 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.22e-05/0.2511, allocations: 7.984 kB / 0.7927 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.615e-06/0.2511, allocations: 4 kB / 0.7927 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.768e-05/0.2512, allocations: 95.62 kB / 0.7928 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.2512, allocations: 3.938 kB / 0.7928 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002541/0.2514, allocations: 28 kB / 0.7929 GB, free: 5.844 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001315/0.2516, allocations: 103.2 kB / 0.793 GB, free: 5.734 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003387/0.2519, allocations: 183.2 kB / 0.7931 GB, free: 5.543 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2519, allocations: 3.938 kB / 0.7931 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001054/0.252, allocations: 44.09 kB / 0.7932 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002461/0.2523, allocations: 11.98 kB / 0.7932 GB, free: 5.484 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003082/0.2526, allocations: 166.7 kB / 0.7934 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002279/0.2528, allocations: 0.6887 MB / 0.794 GB, free: 4.578 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.135e-05/0.2529, allocations: 4.188 kB / 0.794 GB, free: 4.574 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.905e-05/0.2529, allocations: 7.438 kB / 0.794 GB, free: 4.566 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/0.2529, allocations: 0 / 0.794 GB, free: 4.566 MB / 0.6075 GB Notification: Performance of Templates: time 0.003227/0.2561, allocations: 1.239 MB / 0.7952 GB, free: 3.348 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) Environment - environmentSimulation: