Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.297/2.297, allocations: 391.2 MB / 407 MB, free: 10.74 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 179.5 kB / 499.1 MB, free: 4.609 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 222.9 MB / 0.7948 GB, free: 15.81 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 110.5 kB / 0.9329 GB, free: 7.059 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001003/0.001004, allocations: 54.58 kB / 1.081 GB, free: 218.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3148, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002147/0.317, allocations: 0.7776 MB / 1.219 GB, free: 116.4 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001583/0.3186, allocations: 1.191 MB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.778e-05/0.3187, allocations: 0 / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 3.477e-05/0.3188, allocations: 3.984 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 8.773e-05/0.3189, allocations: 11.92 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005903/0.3195, allocations: 127.3 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0001608/0.3196, allocations: 111.7 kB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 9.566e-05/0.3197, allocations: 12 kB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001229/0.3199, allocations: 39.91 kB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 9.024e-05/0.32, allocations: 43.88 kB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 2.93e-05/0.32, allocations: 4 kB / 1.22 GB, free: 114.8 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 8.775e-05/0.3201, allocations: 23.98 kB / 1.22 GB, free: 114.8 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 2.602e-05/0.3201, allocations: 11.88 kB / 1.22 GB, free: 114.8 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 7.319e-05/0.3202, allocations: 39.89 kB / 1.22 GB, free: 114.8 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001877/0.3204, allocations: 103.7 kB / 1.221 GB, free: 114.7 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3204, allocations: 0 / 1.221 GB, free: 114.7 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3204, allocations: 4 kB / 1.221 GB, free: 114.7 MB / 0.823 GB Notification: Performance of Transformations before backend: time 9.919e-06/0.3204, allocations: 0 / 1.221 GB, free: 114.7 MB / 0.823 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.00059/0.321, allocations: 408.3 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.3211, allocations: 15.98 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.558e-05/0.3211, allocations: 4.938 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.3213, allocations: 172.2 kB / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.3213, allocations: 4.375 kB / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.344e-05/0.3213, allocations: 8.375 kB / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001991/0.3215, allocations: 70.22 kB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.3215, allocations: 192 / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.3216, allocations: 7.875 kB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.3216, allocations: 0 / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001714/0.3218, allocations: 43.95 kB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000484/0.3222, allocations: 328.7 kB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001427/0.3224, allocations: 46.56 kB / 1.222 GB, free: 113.4 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.903e-05/0.3225, allocations: 32.86 kB / 1.222 GB, free: 113.4 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.328e-05/0.3225, allocations: 4 kB / 1.222 GB, free: 113.4 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002298/0.3228, allocations: 99.25 kB / 1.222 GB, free: 113.3 MB / 0.823 GB Notification: Performance of pre-optimization done (n=7): time 1.763e-06/0.3228, allocations: 0 / 1.222 GB, free: 113.3 MB / 0.823 GB Notification: Performance of matching and sorting (n=7): time 0.0004106/0.3232, allocations: 125.6 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.086e-05/0.3232, allocations: 63.28 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.926e-05/0.3233, allocations: 117.8 kB / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.889e-05/0.3233, allocations: 29.7 kB / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 4.065e-05/0.3234, allocations: 100.1 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.716e-05/0.3234, allocations: 11.81 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.327e-05/0.3235, allocations: 37.69 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 5.493e-05/0.3235, allocations: 322.8 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.3237, allocations: 47.95 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001385/0.3238, allocations: 75.41 kB / 1.223 GB, free: 112.3 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002337/0.3241, allocations: 137 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3241, allocations: 0 / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003664/0.3245, allocations: 199.2 kB / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 3.226e-05/0.3245, allocations: 33.7 kB / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.3245, allocations: 4 kB / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.3245, allocations: 0 / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.25e-05/0.3246, allocations: 15.92 kB / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.3247, allocations: 4 kB / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002006/0.3249, allocations: 35.89 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.084e-05/0.3249, allocations: 4 kB / 1.223 GB, free: 111.8 MB / 0.823 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,booPul.y,$PRE.booPul.y,$whenCondition1,triggeredMax.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.325, allocations: 134.4 kB / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.484e-05/0.325, allocations: 3.906 kB / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002788/0.3253, allocations: 114 kB / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3253, allocations: 0 / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3253, allocations: 0 / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.3253, allocations: 3.984 kB / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003613/0.3257, allocations: 358.5 kB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3257, allocations: 3.984 kB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.727e-05/0.3258, allocations: 11.94 kB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.3258, allocations: 0 / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.3258, allocations: 7.984 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3258, allocations: 0 / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.3258, allocations: 0 / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004783/0.3263, allocations: 0.7902 MB / 1.224 GB, free: 110.3 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 2.778e-05/0.3263, allocations: 88.95 kB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.281e-05/0.3264, allocations: 11.98 kB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.837e-05/0.3265, allocations: 4 kB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.147e-05/0.3265, allocations: 8.453 kB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.3265, allocations: 4 kB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of sorting global known variables: time 3.145e-05/0.3266, allocations: 95.2 kB / 1.225 GB, free: 110.1 MB / 0.823 GB Notification: Performance of sort global known variables: time 3.1e-07/0.3266, allocations: 0 / 1.225 GB, free: 110.1 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.000344/0.3269, allocations: 20 kB / 1.225 GB, free: 110.1 MB / 0.823 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 (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.0001419/0.3271, allocations: 99.25 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0003214/0.3274, allocations: 171.3 kB / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.3274, allocations: 0 / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.3275, allocations: 43.91 kB / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002643/0.3278, allocations: 14.45 kB / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003841/0.3282, allocations: 291.5 kB / 1.225 GB, free: 109.4 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001243/0.3283, allocations: 0.6848 MB / 1.226 GB, free: 108.7 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 3.469e-05/0.3284, allocations: 7.984 kB / 1.226 GB, free: 108.7 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.119e-05/0.3284, allocations: 7.438 kB / 1.226 GB, free: 108.7 MB / 0.823 GB Notification: Performance of SimCode: time 3.81e-07/0.3284, allocations: 3.938 kB / 1.226 GB, free: 108.7 MB / 0.823 GB Notification: Performance of Templates: time 0.003529/0.3319, allocations: 1.325 MB / 1.227 GB, free: 107.3 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)