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/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 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009854/0.009854, allocations: 99.05 kB / 15.73 MB, free: 6.004 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.001669/0.001669, allocations: 199.4 kB / 16.68 MB, free: 5.934 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.881/1.881, allocations: 205.1 MB / 222.5 MB, free: 4.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.661/1.661, allocations: 251.7 MB / 0.5094 GB, free: 3.059 MB / 414.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.001422/0.001422, allocations: 64.38 kB / 0.7258 GB, free: 9.07 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.2912, allocations: 104.7 MB / 0.828 GB, free: 252 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002839/0.2941, allocations: 1.435 MB / 0.8294 GB, free: 14.8 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0006151/0.2947, allocations: 260.1 kB / 0.8297 GB, free: 14.54 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.791e-05/0.2948, allocations: 4 kB / 0.8297 GB, free: 14.54 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.911e-05/0.2948, allocations: 3.938 kB / 0.8297 GB, free: 14.54 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 8.951e-05/0.2949, allocations: 11.88 kB / 0.8297 GB, free: 14.52 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002371/0.2952, allocations: 39.83 kB / 0.8297 GB, free: 14.48 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001149/0.2953, allocations: 55.91 kB / 0.8298 GB, free: 14.43 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.2954, allocations: 15.98 kB / 0.8298 GB, free: 14.41 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 7.382e-05/0.2955, allocations: 23.86 kB / 0.8298 GB, free: 14.39 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.203e-05/0.2956, allocations: 27.91 kB / 0.8299 GB, free: 14.36 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.338e-05/0.2956, allocations: 4 kB / 0.8299 GB, free: 14.36 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.235e-05/0.2956, allocations: 4 kB / 0.8299 GB, free: 14.36 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.871e-05/0.2957, allocations: 19.92 kB / 0.8299 GB, free: 14.34 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.482e-05/0.2957, allocations: 19.88 kB / 0.8299 GB, free: 14.32 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001125/0.2958, allocations: 59.77 kB / 0.83 GB, free: 14.26 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.2958, allocations: 4 kB / 0.83 GB, free: 14.25 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.092e-06/0.2958, allocations: 0 / 0.83 GB, free: 14.25 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.2959, allocations: 4 kB / 0.83 GB, free: 14.25 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006354/0.2965, allocations: 371.3 kB / 0.8303 GB, free: 13.84 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.2965, allocations: 8.031 kB / 0.8303 GB, free: 13.83 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.085e-05/0.2966, allocations: 8.844 kB / 0.8303 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001405/0.2967, allocations: 164.3 kB / 0.8305 GB, free: 13.62 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.147e-05/0.2968, allocations: 12.38 kB / 0.8305 GB, free: 13.61 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.435e-05/0.2968, allocations: 8.312 kB / 0.8305 GB, free: 13.6 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001925/0.297, allocations: 66.22 kB / 0.8306 GB, free: 13.53 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.297, allocations: 4.188 kB / 0.8306 GB, free: 13.53 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.297, allocations: 3.938 kB / 0.8306 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.297, allocations: 0 / 0.8306 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.2972, allocations: 51.88 kB / 0.8306 GB, free: 13.47 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004923/0.2977, allocations: 304.6 kB / 0.8309 GB, free: 13.12 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001575/0.2979, allocations: 50.55 kB / 0.831 GB, free: 13.07 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.509e-05/0.298, allocations: 28.97 kB / 0.831 GB, free: 13.04 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.971e-05/0.298, allocations: 0 / 0.831 GB, free: 13.04 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000253/0.2983, allocations: 83.36 kB / 0.8311 GB, free: 12.94 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 1.724e-06/0.2983, allocations: 4 kB / 0.8311 GB, free: 12.94 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7): time 0.0004393/0.2988, allocations: 137.5 kB / 0.8312 GB, free: 12.8 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.659e-05/0.2988, allocations: 51.41 kB / 0.8313 GB, free: 12.73 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.349e-05/0.2989, allocations: 113.8 kB / 0.8314 GB, free: 12.61 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.703e-05/0.2989, allocations: 25.7 kB / 0.8314 GB, free: 12.58 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.742e-05/0.299, allocations: 88.14 kB / 0.8315 GB, free: 12.49 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.484e-05/0.299, allocations: 19.8 kB / 0.8315 GB, free: 12.47 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.374e-05/0.2991, allocations: 21.72 kB / 0.8315 GB, free: 12.45 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001346/0.2992, allocations: 322.8 kB / 0.8318 GB, free: 12.12 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.442e-05/0.2993, allocations: 23.98 kB / 0.8319 GB, free: 12.1 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001132/0.2995, allocations: 50.48 kB / 0.8319 GB, free: 12.04 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001825/0.2996, allocations: 78.52 kB / 0.832 GB, free: 11.95 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.2997, allocations: 0 / 0.832 GB, free: 11.95 MB / 0.6544 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002549/0.2999, allocations: 105.5 kB / 0.8321 GB, free: 11.84 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.3, allocations: 10.81 kB / 0.8321 GB, free: 11.84 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.3, allocations: 0 / 0.8321 GB, free: 11.84 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.3, allocations: 32 / 0.8321 GB, free: 11.84 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.3001, allocations: 23.92 kB / 0.8321 GB, free: 11.81 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.3001, allocations: 0 / 0.8321 GB, free: 11.81 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.734e-05/0.3002, allocations: 15.98 kB / 0.8321 GB, free: 11.8 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.154e-06/0.3002, allocations: 0 / 0.8321 GB, free: 11.8 MB / 0.6544 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 8.996e-05/0.3003, allocations: 124.8 kB / 0.8322 GB, free: 11.67 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.449e-05/0.3003, allocations: 7.906 kB / 0.8323 GB, free: 11.66 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002798/0.3006, allocations: 113.9 kB / 0.8324 GB, free: 11.54 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.3006, allocations: 4 kB / 0.8324 GB, free: 11.54 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.3006, allocations: 3.938 kB / 0.8324 GB, free: 11.54 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.3006, allocations: 0 / 0.8324 GB, free: 11.54 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004872/0.3011, allocations: 370.5 kB / 0.8327 GB, free: 11.12 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.3012, allocations: 3.984 kB / 0.8327 GB, free: 11.11 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.651e-05/0.3012, allocations: 12 kB / 0.8327 GB, free: 11.1 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.3012, allocations: 192 / 0.8327 GB, free: 11.1 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.3013, allocations: 3.938 kB / 0.8327 GB, free: 11.1 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.678e-06/0.3013, allocations: 7.922 kB / 0.8327 GB, free: 11.09 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.3013, allocations: 4 kB / 0.8328 GB, free: 11.09 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002825/0.3016, allocations: 199.3 kB / 0.8329 GB, free: 10.88 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.774e-05/0.3016, allocations: 89 kB / 0.833 GB, free: 10.77 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.814e-05/0.3017, allocations: 4 kB / 0.833 GB, free: 10.77 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/0.3018, allocations: 15.98 kB / 0.833 GB, free: 10.75 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.742e-05/0.3018, allocations: 11.92 kB / 0.8331 GB, free: 10.74 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.972e-06/0.3018, allocations: 0 / 0.8331 GB, free: 10.74 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.684e-05/0.3019, allocations: 88.14 kB / 0.8331 GB, free: 10.65 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3019, allocations: 0 / 0.8331 GB, free: 10.65 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002701/0.3022, allocations: 15.98 kB / 0.8332 GB, free: 10.64 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: 5 (booPul.y,$whenCondition2,$whenCondition1,triggeredMax.y,booPul.pulseStart) * 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 (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.000156/0.3023, allocations: 107.2 kB / 0.8333 GB, free: 10.52 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002798/0.3026, allocations: 63.95 kB / 0.8333 GB, free: 10.46 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3026, allocations: 0 / 0.8333 GB, free: 10.46 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001223/0.3028, allocations: 35.91 kB / 0.8334 GB, free: 10.43 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/0.3031, allocations: 22.33 kB / 0.8334 GB, free: 10.41 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000452/0.3035, allocations: 158.6 kB / 0.8335 GB, free: 10.22 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.3039, allocations: 0.6883 MB / 0.8342 GB, free: 9.508 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.711e-05/0.3039, allocations: 7.859 kB / 0.8342 GB, free: 9.5 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.664e-05/0.304, allocations: 15.42 kB / 0.8342 GB, free: 9.484 MB / 0.6544 GB Notification: Performance of SimCode: time 3.51e-07/0.304, allocations: 0 / 0.8342 GB, free: 9.484 MB / 0.6544 GB Notification: Performance of Templates: time 0.003613/0.3076, allocations: 0.9137 MB / 0.8351 GB, free: 8.578 MB / 0.6544 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)