Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.761/2.761, allocations: 287.5 MB / 303.2 MB, free: 8.215 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001322/0.001322, allocations: 179.2 kB / 371.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.076/2.076, allocations: 205.4 MB / 0.6305 GB, free: 10.54 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008689/0.0008684, allocations: 86.36 kB / 0.7438 GB, free: 6.527 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004869/0.0004871, allocations: 11.91 kB / 0.8667 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.2267, allocations: 115.3 MB / 0.9793 GB, free: 28.16 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9209/1.148, allocations: 138.3 MB / 1.114 GB, free: 15.95 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002677/1.148, allocations: 75.17 kB / 1.114 GB, free: 15.95 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01218/1.16, allocations: 2.594 MB / 1.117 GB, free: 31.52 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.146e-06/1.16, allocations: 0 / 1.117 GB, free: 31.52 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.197e-05/1.16, allocations: 0 / 1.117 GB, free: 31.52 MB / 0.698 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.0006992/1.161, allocations: 412.3 kB / 1.117 GB, free: 31.12 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/1.161, allocations: 7.812 kB / 1.117 GB, free: 31.12 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.578e-05/1.161, allocations: 12.66 kB / 1.117 GB, free: 31.11 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/1.161, allocations: 166.8 kB / 1.118 GB, free: 30.91 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.679e-05/1.161, allocations: 12.28 kB / 1.118 GB, free: 30.91 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.56e-05/1.161, allocations: 19.7 kB / 1.118 GB, free: 30.9 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002747/1.162, allocations: 70.88 kB / 1.118 GB, free: 30.87 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/1.162, allocations: 192 / 1.118 GB, free: 30.87 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/1.162, allocations: 7.875 kB / 1.118 GB, free: 30.86 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/1.162, allocations: 0 / 1.118 GB, free: 30.86 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002886/1.162, allocations: 55.81 kB / 1.118 GB, free: 30.86 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006036/1.163, allocations: 326.5 kB / 1.118 GB, free: 30.59 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002191/1.163, allocations: 55.66 kB / 1.118 GB, free: 30.56 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001545/1.163, allocations: 33.72 kB / 1.118 GB, free: 30.55 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/1.163, allocations: 0 / 1.118 GB, free: 30.55 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003321/1.163, allocations: 103.1 kB / 1.118 GB, free: 30.5 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 2.204e-06/1.163, allocations: 0 / 1.118 GB, free: 30.5 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0006766/1.164, allocations: 150.4 kB / 1.118 GB, free: 30.46 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.467e-05/1.164, allocations: 51.41 kB / 1.118 GB, free: 30.39 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/1.164, allocations: 114.8 kB / 1.119 GB, free: 30.3 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.683e-05/1.164, allocations: 29.61 kB / 1.119 GB, free: 30.27 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 7.666e-05/1.164, allocations: 94.78 kB / 1.119 GB, free: 30.18 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.651e-05/1.164, allocations: 18.89 kB / 1.119 GB, free: 30.17 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.837e-05/1.165, allocations: 3.875 kB / 1.119 GB, free: 30.17 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001433/1.165, allocations: 325.5 kB / 1.119 GB, free: 29.85 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003032/1.165, allocations: 55.83 kB / 1.119 GB, free: 29.84 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004011/1.165, allocations: 82.33 kB / 1.119 GB, free: 29.81 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006784/1.166, allocations: 142.6 kB / 1.119 GB, free: 29.74 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/1.166, allocations: 0 / 1.119 GB, free: 29.74 MB / 0.698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.001084/1.167, allocations: 202.1 kB / 1.119 GB, free: 29.67 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 8.301e-05/1.167, allocations: 38.52 kB / 1.119 GB, free: 29.64 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/1.167, allocations: 0 / 1.119 GB, free: 29.64 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.903e-05/1.167, allocations: 0 / 1.119 GB, free: 29.64 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002319/1.168, allocations: 18.98 kB / 1.119 GB, free: 29.64 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.75e-05/1.168, allocations: 8.031 kB / 1.12 GB, free: 29.63 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005636/1.168, allocations: 48.89 kB / 1.12 GB, free: 29.63 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.335e-05/1.168, allocations: 10.59 kB / 1.12 GB, free: 29.63 MB / 0.698 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 0.0002371/1.169, allocations: 120.9 kB / 1.12 GB, free: 29.51 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.49e-05/1.169, allocations: 7.75 kB / 1.12 GB, free: 29.5 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008138/1.17, allocations: 125.8 kB / 1.12 GB, free: 29.47 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.695e-06/1.17, allocations: 3.938 kB / 1.12 GB, free: 29.46 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/1.17, allocations: 4 kB / 1.12 GB, free: 29.46 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/1.17, allocations: 0 / 1.12 GB, free: 29.46 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001049/1.171, allocations: 372 kB / 1.12 GB, free: 29.16 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/1.171, allocations: 0 / 1.12 GB, free: 29.16 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001559/1.171, allocations: 18.2 kB / 1.12 GB, free: 29.16 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.463e-06/1.171, allocations: 0 / 1.12 GB, free: 29.16 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.037e-05/1.171, allocations: 6.203 kB / 1.12 GB, free: 29.16 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/1.171, allocations: 0 / 1.12 GB, free: 29.16 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/1.171, allocations: 3.844 kB / 1.12 GB, free: 29.16 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006617/1.172, allocations: 221.1 kB / 1.12 GB, free: 29.01 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 9.324e-05/1.172, allocations: 89.55 kB / 1.12 GB, free: 28.91 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.097e-05/1.172, allocations: 3.984 kB / 1.12 GB, free: 28.91 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000241/1.172, allocations: 15.58 kB / 1.121 GB, free: 28.91 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.697e-05/1.172, allocations: 10.3 kB / 1.121 GB, free: 28.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/1.172, allocations: 0 / 1.121 GB, free: 28.9 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001074/1.172, allocations: 93.69 kB / 1.121 GB, free: 28.82 MB / 0.698 GB Notification: Performance of sort global known variables: time 6.61e-07/1.172, allocations: 0 / 1.121 GB, free: 28.82 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0008499/1.173, allocations: 26.72 kB / 1.121 GB, free: 28.82 MB / 0.698 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.0002717/1.174, allocations: 105.4 kB / 1.121 GB, free: 28.73 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0008264/1.174, allocations: 182.6 kB / 1.121 GB, free: 28.66 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/1.174, allocations: 0 / 1.121 GB, free: 28.66 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002409/1.175, allocations: 42.75 kB / 1.121 GB, free: 28.66 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005746/1.175, allocations: 9.828 kB / 1.121 GB, free: 28.66 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006099/1.176, allocations: 169.8 kB / 1.121 GB, free: 28.52 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004019/1.176, allocations: 0.6874 MB / 1.122 GB, free: 27.83 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 7.838e-05/1.176, allocations: 6.688 kB / 1.122 GB, free: 27.83 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.257e-05/1.176, allocations: 11.28 kB / 1.122 GB, free: 27.82 MB / 0.698 GB Notification: Performance of SimCode: time 1.382e-06/1.177, allocations: 0 / 1.122 GB, free: 27.82 MB / 0.698 GB Notification: Performance of Templates: time 0.005143/1.182, allocations: 1.245 MB / 1.123 GB, free: 27.7 MB / 0.698 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)