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.001322/0.001322, allocations: 110.5 kB / 16.36 MB, free: 5.945 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.00151/0.00151, allocations: 199.2 kB / 17.3 MB, free: 5.559 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.413/1.413, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.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.884/1.884, allocations: 292.3 MB / 0.5496 GB, free: 17.63 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.001428/0.001428, allocations: 67.89 kB / 0.6729 GB, free: 5.867 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.269, allocations: 114.6 MB / 0.7848 GB, free: 3.199 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002548/0.2716, allocations: 0.7366 MB / 0.7855 GB, free: 2.457 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001942/0.2736, allocations: 1.187 MB / 0.7867 GB, free: 1.254 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.367e-05/0.2737, allocations: 0 / 0.7867 GB, free: 1.254 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.609e-05/0.2737, allocations: 3.938 kB / 0.7867 GB, free: 1.25 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 9.613e-05/0.2738, allocations: 15.84 kB / 0.7867 GB, free: 1.234 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007264/0.2746, allocations: 137.8 kB / 0.7868 GB, free: 1.102 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002116/0.2748, allocations: 127.7 kB / 0.7869 GB, free: 0.9766 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.2749, allocations: 8 kB / 0.787 GB, free: 0.9688 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001076/0.275, allocations: 47.91 kB / 0.787 GB, free: 0.9219 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.2751, allocations: 47.86 kB / 0.787 GB, free: 0.875 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.495e-05/0.2752, allocations: 8 kB / 0.787 GB, free: 0.8672 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 9.088e-05/0.2753, allocations: 27.92 kB / 0.7871 GB, free: 0.8398 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.774e-05/0.2753, allocations: 15.94 kB / 0.7871 GB, free: 0.8242 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 7.109e-05/0.2754, allocations: 39.89 kB / 0.7871 GB, free: 0.7852 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002322/0.2756, allocations: 111.7 kB / 0.7872 GB, free: 0.6758 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2757, allocations: 0 / 0.7872 GB, free: 0.6758 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2757, allocations: 0 / 0.7872 GB, free: 0.6758 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.223e-06/0.2757, allocations: 0 / 0.7872 GB, free: 0.6758 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007/0.2764, allocations: 409 kB / 0.7876 GB, free: 224 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.2764, allocations: 12.03 kB / 0.7876 GB, free: 212 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.694e-05/0.2765, allocations: 8.844 kB / 0.7876 GB, free: 204 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4131/0.6896, allocations: 172.3 kB / 0.7878 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.479e-05/0.6897, allocations: 384 / 0.7878 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.113e-05/0.6897, allocations: 7.562 kB / 0.7878 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002865/0.69, allocations: 70.5 kB / 0.7879 GB, free: 48.79 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.6901, allocations: 0.9375 kB / 0.7879 GB, free: 48.79 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.6901, allocations: 1.875 kB / 0.7879 GB, free: 48.79 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.6901, allocations: 2.375 kB / 0.7879 GB, free: 48.79 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001799/0.6903, allocations: 48.47 kB / 0.7879 GB, free: 48.79 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005154/0.6908, allocations: 320 kB / 0.7882 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001625/0.691, allocations: 53.52 kB / 0.7883 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.157e-05/0.6911, allocations: 34.98 kB / 0.7883 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.6911, allocations: 3.938 kB / 0.7883 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002685/0.6914, allocations: 88.31 kB / 0.7884 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 1.873e-06/0.6914, allocations: 4.406 kB / 0.7884 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7): time 0.0004219/0.6918, allocations: 134.4 kB / 0.7885 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.911e-05/0.6919, allocations: 57.22 kB / 0.7886 GB, free: 48.35 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.076e-05/0.6919, allocations: 121.1 kB / 0.7887 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.692, allocations: 32.27 kB / 0.7887 GB, free: 48.22 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.129e-05/0.692, allocations: 87.19 kB / 0.7888 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.8e-05/0.692, allocations: 16.66 kB / 0.7888 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.568e-05/0.6921, allocations: 38.45 kB / 0.7889 GB, free: 48.12 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.461e-05/0.6922, allocations: 321.5 kB / 0.7892 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001427/0.6923, allocations: 46.33 kB / 0.7892 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001367/0.6925, allocations: 74.86 kB / 0.7893 GB, free: 47.77 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002232/0.6927, allocations: 134.9 kB / 0.7894 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.6927, allocations: 0 / 0.7894 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003519/0.6931, allocations: 204.5 kB / 0.7896 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.106e-05/0.6931, allocations: 34.7 kB / 0.7897 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.6931, allocations: 6.078 kB / 0.7897 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.6931, allocations: 3.828 kB / 0.7897 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.525e-05/0.6932, allocations: 17.17 kB / 0.7897 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.6932, allocations: 5.906 kB / 0.7897 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/0.6934, allocations: 27.02 kB / 0.7897 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.879e-05/0.6934, allocations: 10.78 kB / 0.7897 GB, free: 47.61 MB / 0.6544 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 6.892e-05/0.6935, allocations: 129.4 kB / 0.7899 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.229e-05/0.6935, allocations: 7.906 kB / 0.7899 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002541/0.6938, allocations: 108.3 kB / 0.79 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.6938, allocations: 0 / 0.79 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.6938, allocations: 4.5 kB / 0.79 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.6938, allocations: 0 / 0.79 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003425/0.6942, allocations: 366.7 kB / 0.7903 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.6942, allocations: 3.719 kB / 0.7903 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.684e-05/0.6943, allocations: 8.516 kB / 0.7903 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.6943, allocations: 0.5938 kB / 0.7903 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.6943, allocations: 4.422 kB / 0.7903 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.6943, allocations: 0.8125 kB / 0.7903 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.6943, allocations: 0 / 0.7903 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002375/0.6945, allocations: 208.7 kB / 0.7905 GB, free: 47.02 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 1.912e-05/0.6946, allocations: 81.62 kB / 0.7906 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.6946, allocations: 4.594 kB / 0.7906 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.421e-05/0.6947, allocations: 9.344 kB / 0.7906 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.392e-05/0.6947, allocations: 9.359 kB / 0.7906 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/0.6947, allocations: 3.75 kB / 0.7906 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.025e-05/0.6948, allocations: 90.84 kB / 0.7907 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6948, allocations: 0 / 0.7907 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002533/0.695, allocations: 19.44 kB / 0.7907 GB, free: 46.86 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 ($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.000125/0.6952, allocations: 113.6 kB / 0.7909 GB, free: 46.77 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000352/0.6955, allocations: 171.8 kB / 0.791 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.6955, allocations: 5.219 kB / 0.791 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001104/0.6956, allocations: 37.11 kB / 0.7911 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.6959, allocations: 11.81 kB / 0.7911 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003083/0.6962, allocations: 155.8 kB / 0.7912 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001337/0.6964, allocations: 0.6908 MB / 0.7919 GB, free: 45.9 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 2.914e-05/0.6964, allocations: 4.031 kB / 0.7919 GB, free: 45.9 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.178e-05/0.6964, allocations: 10.06 kB / 0.7919 GB, free: 45.89 MB / 0.6544 GB Notification: Performance of SimCode: time 2.91e-07/0.6965, allocations: 2.656 kB / 0.7919 GB, free: 45.89 MB / 0.6544 GB Notification: Performance of Templates: time 0.003699/0.7002, allocations: 1.399 MB / 0.7933 GB, free: 45.84 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (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 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)