Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.376/1.376, allocations: 251.5 MB / 267.4 MB, free: 11.08 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00109/0.00109, allocations: 175.9 kB / 326.5 MB, free: 2.719 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.701/1.701, allocations: 205 MB / 0.5766 GB, free: 21.02 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008225/0.0008226, allocations: 96.56 kB / 0.6804 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003246/0.0003249, allocations: 6.531 kB / 0.7938 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2365/0.2368, allocations: 105.4 MB / 0.8968 GB, free: 68.18 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001586/0.2385, allocations: 1.168 MB / 0.8979 GB, free: 66.99 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004684/0.239, allocations: 265.6 kB / 0.8982 GB, free: 66.73 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.888e-05/0.239, allocations: 4 kB / 0.8982 GB, free: 66.73 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3.34e-05/0.2391, allocations: 0 / 0.8982 GB, free: 66.73 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.655e-05/0.2392, allocations: 11.92 kB / 0.8982 GB, free: 66.71 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002098/0.2394, allocations: 27.91 kB / 0.8982 GB, free: 66.69 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.603e-05/0.2395, allocations: 51.86 kB / 0.8983 GB, free: 66.64 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.2396, allocations: 16.27 kB / 0.8983 GB, free: 66.62 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.327e-05/0.2396, allocations: 27.84 kB / 0.8983 GB, free: 66.59 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.737e-05/0.2397, allocations: 15.92 kB / 0.8983 GB, free: 66.58 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.026e-05/0.2397, allocations: 8 kB / 0.8983 GB, free: 66.57 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.187e-05/0.2397, allocations: 0 / 0.8983 GB, free: 66.57 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.02e-05/0.2398, allocations: 15.92 kB / 0.8983 GB, free: 66.55 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.536e-05/0.2398, allocations: 15.88 kB / 0.8984 GB, free: 66.54 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.273e-05/0.2399, allocations: 55.77 kB / 0.8984 GB, free: 66.48 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2399, allocations: 0 / 0.8984 GB, free: 66.48 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.473e-06/0.2399, allocations: 0 / 0.8984 GB, free: 66.48 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.2399, allocations: 0 / 0.8984 GB, free: 66.48 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005135/0.2405, allocations: 379.2 kB / 0.8988 GB, free: 66.06 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.2405, allocations: 12.03 kB / 0.8988 GB, free: 66.05 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.443e-05/0.2405, allocations: 0.9375 kB / 0.8988 GB, free: 66.05 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.613e-05/0.2406, allocations: 172.2 kB / 0.8989 GB, free: 65.84 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.2407, allocations: 4.375 kB / 0.8989 GB, free: 65.84 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.587e-05/0.2407, allocations: 4.375 kB / 0.899 GB, free: 65.84 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001818/0.2409, allocations: 78.16 kB / 0.899 GB, free: 65.75 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.2409, allocations: 192 / 0.899 GB, free: 65.75 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.2409, allocations: 7.938 kB / 0.899 GB, free: 65.75 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.2409, allocations: 0 / 0.899 GB, free: 65.75 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000173/0.2411, allocations: 59.95 kB / 0.8991 GB, free: 65.69 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003491/0.2415, allocations: 292.6 kB / 0.8994 GB, free: 65.35 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000171/0.2416, allocations: 66.48 kB / 0.8994 GB, free: 65.28 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.338e-05/0.2417, allocations: 40.95 kB / 0.8995 GB, free: 65.23 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.2418, allocations: 0 / 0.8995 GB, free: 65.23 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002045/0.242, allocations: 87.38 kB / 0.8996 GB, free: 65.14 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.242, allocations: 0 / 0.8996 GB, free: 65.14 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0003821/0.2424, allocations: 141.6 kB / 0.8997 GB, free: 64.99 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.526e-05/0.2424, allocations: 63.34 kB / 0.8998 GB, free: 64.92 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.369e-05/0.2425, allocations: 113.8 kB / 0.8999 GB, free: 64.8 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.154e-05/0.2425, allocations: 25.7 kB / 0.8999 GB, free: 64.77 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.719e-05/0.2425, allocations: 92.12 kB / 0.9 GB, free: 64.67 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.719e-05/0.2426, allocations: 11.81 kB / 0.9 GB, free: 64.66 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.468e-05/0.2426, allocations: 17.72 kB / 0.9 GB, free: 64.64 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.063e-05/0.2427, allocations: 318.8 kB / 0.9003 GB, free: 64.32 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.14e-05/0.2428, allocations: 35.98 kB / 0.9003 GB, free: 64.28 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.119e-05/0.2429, allocations: 46.55 kB / 0.9004 GB, free: 64.23 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001703/0.243, allocations: 94.41 kB / 0.9005 GB, free: 64.12 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.243, allocations: 0 / 0.9005 GB, free: 64.12 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000219/0.2433, allocations: 125.5 kB / 0.9006 GB, free: 64 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.2433, allocations: 4 kB / 0.9006 GB, free: 63.99 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.2433, allocations: 0 / 0.9006 GB, free: 63.99 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.2433, allocations: 0 / 0.9006 GB, free: 63.99 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.438e-05/0.2434, allocations: 15.98 kB / 0.9006 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.2434, allocations: 4 kB / 0.9006 GB, free: 63.97 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.271e-05/0.2435, allocations: 23.92 kB / 0.9006 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.203e-06/0.2435, allocations: 4 kB / 0.9006 GB, free: 63.95 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,triggeredMax.y,$PRE.triggeredMax.y,booPul.pulseStart,$PRE.booPul.pulseStart,booPul.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * 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 6.637e-05/0.2436, allocations: 123.4 kB / 0.9008 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.314e-05/0.2436, allocations: 7.906 kB / 0.9008 GB, free: 63.81 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002573/0.2439, allocations: 122.2 kB / 0.9009 GB, free: 63.68 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.2439, allocations: 0 / 0.9009 GB, free: 63.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2439, allocations: 3.938 kB / 0.9009 GB, free: 63.68 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.124e-05/0.2439, allocations: 81.11 kB / 0.901 GB, free: 63.58 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/0.244, allocations: 4 kB / 0.901 GB, free: 63.58 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.773e-05/0.2441, allocations: 11.98 kB / 0.901 GB, free: 63.57 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.598e-05/0.2441, allocations: 11.92 kB / 0.901 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002784/0.2444, allocations: 213.5 kB / 0.9012 GB, free: 63.34 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0002409/0.2446, allocations: 282.8 kB / 0.9015 GB, free: 63.05 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001007/0.2447, allocations: 43.95 kB / 0.9015 GB, free: 63 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.46e-05/0.2448, allocations: 95.2 kB / 0.9016 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of Backend: time 2.2e-07/0.2448, allocations: 4 kB / 0.9016 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004224/0.2452, allocations: 118.4 kB / 0.9017 GB, free: 62.79 MB / 0.6042 GB Notification: Performance of SimCode: time 0.0005279/0.2458, allocations: 0.6142 MB / 0.9023 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of Templates: time 0.002884/0.2487, allocations: 0.8553 MB / 0.9031 GB, free: 61.27 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)