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/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.773/1.773, allocations: 292.6 MB / 307.5 MB, free: 5.203 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.001711/0.00171, allocations: 181 kB / 377.1 MB, free: 1.543 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.494/1.494, allocations: 205.4 MB / 0.6366 GB, free: 8.574 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008306/0.0008306, allocations: 93.62 kB / 0.7509 GB, free: 62.94 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003493/0.0003493, allocations: 12 kB / 0.8749 GB, free: 11.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2286/0.229, allocations: 116.3 MB / 0.9884 GB, free: 6.656 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6276/0.8567, allocations: 139.5 MB / 1.125 GB, free: 35.29 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.8569, allocations: 70.22 kB / 1.125 GB, free: 35.23 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.006695/0.8636, allocations: 2.594 MB / 1.127 GB, free: 33.34 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.924e-06/0.8637, allocations: 4 kB / 1.127 GB, free: 33.34 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.362e-05/0.8637, allocations: 0 / 1.127 GB, free: 33.34 MB / 0.7292 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.000411/0.8641, allocations: 409.2 kB / 1.128 GB, free: 32.9 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.8642, allocations: 12.02 kB / 1.128 GB, free: 32.89 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.154e-05/0.8642, allocations: 30.56 kB / 1.128 GB, free: 32.85 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.145e-05/0.8642, allocations: 18.53 kB / 1.128 GB, free: 32.83 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.864e-05/0.8643, allocations: 167.1 kB / 1.128 GB, free: 32.63 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.492e-05/0.8643, allocations: 12 kB / 1.128 GB, free: 32.62 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.186e-05/0.8644, allocations: 12 kB / 1.128 GB, free: 32.61 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001826/0.8646, allocations: 64.25 kB / 1.128 GB, free: 32.55 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.8646, allocations: 0 / 1.128 GB, free: 32.55 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.338e-06/0.8646, allocations: 4 kB / 1.128 GB, free: 32.55 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.8646, allocations: 2.312 kB / 1.128 GB, free: 32.55 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001935/0.8648, allocations: 57.97 kB / 1.128 GB, free: 32.51 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003828/0.8652, allocations: 326.7 kB / 1.128 GB, free: 32.18 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001449/0.8654, allocations: 57.52 kB / 1.128 GB, free: 32.12 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.05e-05/0.8654, allocations: 3.281 kB / 1.128 GB, free: 32.12 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002238/0.8656, allocations: 94.36 kB / 1.128 GB, free: 32.03 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=7): time 1.703e-06/0.8656, allocations: 4 kB / 1.128 GB, free: 32.03 MB / 0.7292 GB Notification: Performance of matching and sorting (n=7): time 0.0004084/0.866, allocations: 142.2 kB / 1.129 GB, free: 31.9 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.563e-05/0.8661, allocations: 56.16 kB / 1.129 GB, free: 31.84 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.083e-05/0.8661, allocations: 116.5 kB / 1.129 GB, free: 31.72 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.021e-05/0.8662, allocations: 29.7 kB / 1.129 GB, free: 31.69 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 4.376e-05/0.8662, allocations: 92.27 kB / 1.129 GB, free: 31.59 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.675e-05/0.8662, allocations: 16.44 kB / 1.129 GB, free: 31.57 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.147e-05/0.8663, allocations: 4 kB / 1.129 GB, free: 31.57 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 4.787e-05/0.8663, allocations: 318.3 kB / 1.129 GB, free: 31.25 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001374/0.8665, allocations: 58.83 kB / 1.129 GB, free: 31.21 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/0.8666, allocations: 83 kB / 1.129 GB, free: 31.12 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001447/0.8668, allocations: 81 kB / 1.129 GB, free: 31.05 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.8668, allocations: 0 / 1.129 GB, free: 31.05 MB / 0.7292 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000353/0.8671, allocations: 202.8 kB / 1.13 GB, free: 30.86 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.682e-05/0.8672, allocations: 41.27 kB / 1.13 GB, free: 30.82 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.8672, allocations: 4.062 kB / 1.13 GB, free: 30.81 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.8672, allocations: 4 kB / 1.13 GB, free: 30.81 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.329e-05/0.8673, allocations: 19.45 kB / 1.13 GB, free: 30.79 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.8673, allocations: 0 / 1.13 GB, free: 30.79 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001982/0.8675, allocations: 54.72 kB / 1.13 GB, free: 30.75 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/0.8675, allocations: 12.73 kB / 1.13 GB, free: 30.74 MB / 0.7292 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 6.59e-05/0.8676, allocations: 118.7 kB / 1.13 GB, free: 30.62 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.291e-05/0.8676, allocations: 7.906 kB / 1.13 GB, free: 30.61 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000281/0.8679, allocations: 126.2 kB / 1.13 GB, free: 30.5 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.8679, allocations: 0 / 1.13 GB, free: 30.5 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.8679, allocations: 4.75 kB / 1.13 GB, free: 30.5 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.8679, allocations: 0 / 1.13 GB, free: 30.5 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003319/0.8683, allocations: 373.3 kB / 1.13 GB, free: 30.11 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.8683, allocations: 0 / 1.13 GB, free: 30.11 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.162e-05/0.8684, allocations: 11.47 kB / 1.13 GB, free: 30.1 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.8684, allocations: 1.5 kB / 1.13 GB, free: 30.1 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.8684, allocations: 4 kB / 1.13 GB, free: 30.09 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.8684, allocations: 3.938 kB / 1.13 GB, free: 30.09 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.8684, allocations: 0 / 1.13 GB, free: 30.09 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002626/0.8687, allocations: 218.1 kB / 1.131 GB, free: 29.88 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.379e-05/0.8687, allocations: 85.05 kB / 1.131 GB, free: 29.78 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.881e-05/0.8687, allocations: 4.125 kB / 1.131 GB, free: 29.78 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.152e-05/0.8688, allocations: 15.33 kB / 1.131 GB, free: 29.77 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.124e-05/0.8689, allocations: 4 kB / 1.131 GB, free: 29.76 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-06/0.8689, allocations: 7.422 kB / 1.131 GB, free: 29.76 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 2.615e-05/0.8689, allocations: 84.41 kB / 1.131 GB, free: 29.68 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8689, allocations: 4 kB / 1.131 GB, free: 29.67 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.000249/0.8692, allocations: 39.33 kB / 1.131 GB, free: 29.64 MB / 0.7292 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.0004708/0.8697, allocations: 0.7539 MB / 1.132 GB, free: 28.88 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003241/0.87, allocations: 184.6 kB / 1.132 GB, free: 28.7 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.87, allocations: 0 / 1.132 GB, free: 28.7 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.8701, allocations: 38.75 kB / 1.132 GB, free: 28.67 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001816/0.8703, allocations: 15.83 kB / 1.132 GB, free: 28.66 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005752/0.8709, allocations: 0.8374 MB / 1.133 GB, free: 27.78 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001156/0.871, allocations: 0.6924 MB / 1.133 GB, free: 27.07 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.938e-05/0.8711, allocations: 6.375 kB / 1.133 GB, free: 27.07 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.709e-05/0.8711, allocations: 20.09 kB / 1.133 GB, free: 27.05 MB / 0.7292 GB Notification: Performance of SimCode: time 3.41e-07/0.8711, allocations: 0 / 1.133 GB, free: 27.05 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01292/0.884, allocations: 2.082 MB / 1.135 GB, free: 25.94 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001278/0.8842, allocations: 184.7 kB / 1.135 GB, free: 25.7 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.83/2.714, allocations: 0 / 1.135 GB, free: 25.7 MB / 0.7292 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)