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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_8_0_0_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_0_0_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.0.0/package.mo): time 2.383/2.383, allocations: 284.9 MB / 292.4 MB, free: 10.56 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.001483/0.001483, allocations: 180.8 kB / 360.6 MB, free: 7.289 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.048/2.048, allocations: 205.3 MB / 0.6191 GB, free: 12.22 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.001049/0.001049, allocations: 100.2 kB / 0.7321 GB, free: 44.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.326e-05/2.335e-05, allocations: 4 kB / 0.8509 GB, free: 3.34 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8162/0.8162, allocations: 115.3 MB / 0.9634 GB, free: 78.68 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2422/1.058, allocations: 137.6 MB / 1.098 GB, free: 2.898 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/1.059, allocations: 68.45 kB / 1.098 GB, free: 2.832 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01217/1.071, allocations: 2.572 MB / 1.1 GB, free: 328 kB / 0.698 GB Notification: Performance of FrontEnd: time 1.703e-06/1.071, allocations: 0.7188 kB / 1.1 GB, free: 328 kB / 0.698 GB Notification: Performance of Transformations before backend: time 7.745e-06/1.071, allocations: 0 / 1.1 GB, free: 328 kB / 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.0006423/1.072, allocations: 405.9 kB / 1.101 GB, free: 15.88 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/1.072, allocations: 9.312 kB / 1.101 GB, free: 15.87 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.805e-05/1.072, allocations: 5.203 kB / 1.101 GB, free: 15.86 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/1.072, allocations: 182.9 kB / 1.101 GB, free: 15.64 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/1.072, allocations: 4 kB / 1.101 GB, free: 15.64 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.666e-05/1.072, allocations: 6.781 kB / 1.101 GB, free: 15.64 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001064/1.072, allocations: 15.98 kB / 1.101 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000114/1.072, allocations: 45.69 kB / 1.101 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/1.072, allocations: 0 / 1.101 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/1.072, allocations: 7.938 kB / 1.101 GB, free: 15.56 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/1.072, allocations: 4 kB / 1.101 GB, free: 15.56 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005537/1.073, allocations: 299.1 kB / 1.101 GB, free: 15.23 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001059/1.073, allocations: 35.55 kB / 1.101 GB, free: 15.19 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.069e-05/1.073, allocations: 20.95 kB / 1.101 GB, free: 15.16 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/1.073, allocations: 3.984 kB / 1.101 GB, free: 15.16 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001709/1.073, allocations: 71.33 kB / 1.101 GB, free: 15.08 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 2.975e-06/1.073, allocations: 1.078 kB / 1.101 GB, free: 15.08 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0002706/1.074, allocations: 77.66 kB / 1.101 GB, free: 15 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.237e-05/1.074, allocations: 58.22 kB / 1.102 GB, free: 14.93 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/1.074, allocations: 105 kB / 1.102 GB, free: 14.82 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.244e-05/1.074, allocations: 29.7 kB / 1.102 GB, free: 14.79 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.112e-05/1.074, allocations: 92.23 kB / 1.102 GB, free: 14.69 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.357e-05/1.074, allocations: 23.73 kB / 1.102 GB, free: 14.66 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.779e-05/1.074, allocations: 0 / 1.102 GB, free: 14.66 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001446/1.074, allocations: 318.8 kB / 1.102 GB, free: 14.34 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/1.074, allocations: 31.98 kB / 1.102 GB, free: 14.31 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001396/1.074, allocations: 59.44 kB / 1.102 GB, free: 14.24 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002905/1.075, allocations: 47.89 kB / 1.102 GB, free: 14.2 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/1.075, allocations: 0 / 1.102 GB, free: 14.2 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0005396/1.075, allocations: 137.6 kB / 1.102 GB, free: 14.05 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 5.528e-05/1.075, allocations: 38.78 kB / 1.102 GB, free: 14.01 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/1.075, allocations: 5.438 kB / 1.102 GB, free: 14.01 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/1.075, allocations: 0 / 1.102 GB, free: 14.01 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001553/1.076, allocations: 20.05 kB / 1.102 GB, free: 13.99 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/1.076, allocations: 0 / 1.102 GB, free: 13.99 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003728/1.076, allocations: 43.88 kB / 1.102 GB, free: 13.95 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.488e-05/1.076, allocations: 12.08 kB / 1.102 GB, free: 13.93 MB / 0.7136 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 () * 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.0001198/1.076, allocations: 127.1 kB / 1.103 GB, free: 13.8 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001797/1.076, allocations: 72.58 kB / 1.103 GB, free: 13.73 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.92e-05/1.076, allocations: 7.891 kB / 1.103 GB, free: 13.72 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002293/1.077, allocations: 94.27 kB / 1.103 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/1.077, allocations: 3.938 kB / 1.103 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/1.077, allocations: 0 / 1.103 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/1.077, allocations: 3.953 kB / 1.103 GB, free: 13.61 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003707/1.077, allocations: 306.9 kB / 1.103 GB, free: 13.27 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/1.077, allocations: 4 kB / 1.103 GB, free: 13.27 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00012/1.077, allocations: 11.98 kB / 1.103 GB, free: 13.26 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.429e-06/1.077, allocations: 0 / 1.103 GB, free: 13.26 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/1.077, allocations: 8 kB / 1.103 GB, free: 13.25 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/1.077, allocations: 0 / 1.103 GB, free: 13.25 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/1.077, allocations: 3.953 kB / 1.103 GB, free: 13.25 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000232/1.078, allocations: 177.1 kB / 1.103 GB, free: 13.06 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.13e-05/1.078, allocations: 85.02 kB / 1.103 GB, free: 12.96 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.812e-05/1.078, allocations: 4 kB / 1.103 GB, free: 12.95 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001508/1.078, allocations: 7.984 kB / 1.103 GB, free: 12.95 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.948e-05/1.078, allocations: 7.984 kB / 1.103 GB, free: 12.94 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.57e-05/1.078, allocations: 7.953 kB / 1.103 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 6.205e-05/1.078, allocations: 83.28 kB / 1.103 GB, free: 12.85 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.11e-07/1.078, allocations: 0 / 1.103 GB, free: 12.85 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0004888/1.078, allocations: 31.94 kB / 1.103 GB, free: 12.82 MB / 0.7136 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) * 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.0005945/1.079, allocations: 0.7162 MB / 1.104 GB, free: 12.08 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0003276/1.079, allocations: 135.4 kB / 1.104 GB, free: 11.93 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/1.079, allocations: 0 / 1.104 GB, free: 11.93 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 7.756e-05/1.08, allocations: 27.94 kB / 1.104 GB, free: 11.91 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002871/1.08, allocations: 14 kB / 1.104 GB, free: 11.89 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005343/1.08, allocations: 135.9 kB / 1.104 GB, free: 11.73 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002866/1.081, allocations: 0.6923 MB / 1.105 GB, free: 11.01 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.002e-05/1.081, allocations: 5.438 kB / 1.105 GB, free: 11.01 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.589e-05/1.081, allocations: 19.42 kB / 1.105 GB, free: 10.99 MB / 0.7136 GB Notification: Performance of SimCode: time 7.11e-07/1.081, allocations: 0 / 1.105 GB, free: 10.99 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03647/1.117, allocations: 1.722 MB / 1.107 GB, free: 9.328 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003098/1.118, allocations: 152.8 kB / 1.107 GB, free: 9.137 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.426/3.544, allocations: 0 / 1.107 GB, free: 9.137 MB / 0.7136 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)