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/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.43/1.43, allocations: 251.9 MB / 266.9 MB, free: 11.05 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001118/0.001118, allocations: 179 kB / 326.5 MB, free: 2.289 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.043/2.043, allocations: 205.4 MB / 0.5775 GB, free: 20.27 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009062/0.000906, allocations: 93.98 kB / 0.6821 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003334/0.0003333, allocations: 8.219 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2731, allocations: 106.3 MB / 0.9002 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1828/0.456, allocations: 131.9 MB / 1.029 GB, free: 11.77 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001851/0.4563, allocations: 75.95 kB / 1.029 GB, free: 11.69 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003883/0.4601, allocations: 1.465 MB / 1.031 GB, free: 10.22 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.645e-06/0.4602, allocations: 0 / 1.031 GB, free: 10.22 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.213e-06/0.4602, allocations: 0 / 1.031 GB, free: 10.22 MB / 0.6823 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.0005236/0.4607, allocations: 391 kB / 1.031 GB, free: 9.789 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.4608, allocations: 12.03 kB / 1.031 GB, free: 9.777 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.436e-05/0.4608, allocations: 38.56 kB / 1.031 GB, free: 9.73 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.969e-05/0.4609, allocations: 0 / 1.031 GB, free: 9.73 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/0.461, allocations: 178.9 kB / 1.031 GB, free: 9.516 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.4611, allocations: 7.984 kB / 1.031 GB, free: 9.508 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.61e-05/0.4611, allocations: 8 kB / 1.031 GB, free: 9.5 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001928/0.4613, allocations: 65.66 kB / 1.031 GB, free: 9.43 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.4613, allocations: 0 / 1.031 GB, free: 9.43 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.4613, allocations: 8 kB / 1.031 GB, free: 9.422 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.4613, allocations: 0 / 1.031 GB, free: 9.422 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001909/0.4615, allocations: 55.95 kB / 1.031 GB, free: 9.367 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004478/0.462, allocations: 284.8 kB / 1.032 GB, free: 9.039 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001674/0.4622, allocations: 62.53 kB / 1.032 GB, free: 8.969 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.4622, allocations: 128 / 1.032 GB, free: 8.969 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002479/0.4624, allocations: 100.1 kB / 1.032 GB, free: 8.859 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.4625, allocations: 0 / 1.032 GB, free: 8.859 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0004265/0.4629, allocations: 145.5 kB / 1.032 GB, free: 8.711 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.081e-05/0.4629, allocations: 55.36 kB / 1.032 GB, free: 8.645 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.83e-05/0.463, allocations: 108.9 kB / 1.032 GB, free: 8.531 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.4631, allocations: 29.7 kB / 1.032 GB, free: 8.496 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.367e-05/0.4631, allocations: 88.05 kB / 1.032 GB, free: 8.406 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.556e-05/0.4631, allocations: 19.73 kB / 1.032 GB, free: 8.387 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.392e-06/0.4631, allocations: 4 kB / 1.032 GB, free: 8.383 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.4633, allocations: 318.8 kB / 1.032 GB, free: 8.062 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.4634, allocations: 35.97 kB / 1.032 GB, free: 8.027 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001059/0.4635, allocations: 50.5 kB / 1.032 GB, free: 7.969 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001033/0.4636, allocations: 39.97 kB / 1.033 GB, free: 7.93 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4636, allocations: 0 / 1.033 GB, free: 7.93 MB / 0.6823 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002708/0.4639, allocations: 117.6 kB / 1.033 GB, free: 7.809 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.4639, allocations: 7.938 kB / 1.033 GB, free: 7.801 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.4639, allocations: 0.625 kB / 1.033 GB, free: 7.801 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.464, allocations: 4 kB / 1.033 GB, free: 7.797 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.4641, allocations: 15.98 kB / 1.033 GB, free: 7.781 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.4641, allocations: 7.953 kB / 1.033 GB, free: 7.773 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.034e-05/0.4642, allocations: 19.89 kB / 1.033 GB, free: 7.754 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.919e-06/0.4642, allocations: 8 kB / 1.033 GB, free: 7.746 MB / 0.6823 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,$PRE.triggeredMax.y,triggeredMax.y,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.644e-05/0.4643, allocations: 117.8 kB / 1.033 GB, free: 7.621 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.054e-05/0.4643, allocations: 0 / 1.033 GB, free: 7.621 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002988/0.4646, allocations: 130 kB / 1.033 GB, free: 7.492 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.4646, allocations: 0 / 1.033 GB, free: 7.492 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.4646, allocations: 0 / 1.033 GB, free: 7.492 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.4647, allocations: 7.953 kB / 1.033 GB, free: 7.484 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000519/0.4652, allocations: 386.4 kB / 1.033 GB, free: 7.051 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.4652, allocations: 0 / 1.033 GB, free: 7.051 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.456e-05/0.4653, allocations: 11.98 kB / 1.033 GB, free: 7.039 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.4653, allocations: 0 / 1.033 GB, free: 7.039 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.4653, allocations: 4 kB / 1.033 GB, free: 7.035 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.4653, allocations: 3.953 kB / 1.033 GB, free: 7.031 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.4653, allocations: 0 / 1.033 GB, free: 7.031 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000291/0.4656, allocations: 207.4 kB / 1.034 GB, free: 6.812 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.678e-05/0.4657, allocations: 85.02 kB / 1.034 GB, free: 6.711 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.171e-05/0.4657, allocations: 7.984 kB / 1.034 GB, free: 6.703 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001239/0.4658, allocations: 19.98 kB / 1.034 GB, free: 6.684 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.483e-05/0.4659, allocations: 11.94 kB / 1.034 GB, free: 6.672 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.6e-06/0.4659, allocations: 192 / 1.034 GB, free: 6.672 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.403e-05/0.4659, allocations: 87.28 kB / 1.034 GB, free: 6.586 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4659, allocations: 3.938 kB / 1.034 GB, free: 6.582 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002136/0.4661, allocations: 15.94 kB / 1.034 GB, free: 6.566 MB / 0.6823 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 (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.0005509/0.4667, allocations: 0.7494 MB / 1.034 GB, free: 5.789 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002483/0.467, allocations: 83.94 kB / 1.035 GB, free: 5.707 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.467, allocations: 0 / 1.035 GB, free: 5.707 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.4671, allocations: 39.91 kB / 1.035 GB, free: 5.668 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002017/0.4673, allocations: 23.95 kB / 1.035 GB, free: 5.645 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00109/0.4684, allocations: 0.8352 MB / 1.035 GB, free: 4.75 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002401/0.4687, allocations: 0.6926 MB / 1.036 GB, free: 4.031 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.485e-05/0.4687, allocations: 7.859 kB / 1.036 GB, free: 4.023 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.991e-05/0.4688, allocations: 23.42 kB / 1.036 GB, free: 4 MB / 0.6823 GB Notification: Performance of SimCode: time 2.7e-07/0.4688, allocations: 0 / 1.036 GB, free: 4 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01364/0.4824, allocations: 1.571 MB / 1.038 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000327/0.4828, allocations: 207.1 kB / 1.038 GB, free: 2.348 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.503/1.986, allocations: 0 / 1.038 GB, free: 2.348 MB / 0.6823 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)