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.686/2.686, allocations: 287.3 MB / 302.3 MB, free: 8.387 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.001759/0.001759, allocations: 187.5 kB / 370.8 MB, free: 10.87 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.303/2.303, allocations: 205.4 MB / 0.6295 GB, free: 10.59 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.001592/0.001592, allocations: 100.9 kB / 0.7428 GB, free: 6.602 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004684/0.0004683, allocations: 16.73 kB / 0.8657 GB, free: 141.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2057/0.2062, allocations: 115.3 MB / 0.9783 GB, free: 28.27 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.927/1.133, allocations: 138.3 MB / 1.113 GB, free: 15.4 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003857/1.134, allocations: 75.97 kB / 1.113 GB, free: 15.4 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01937/1.153, allocations: 2.581 MB / 1.116 GB, free: 30.98 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.186e-06/1.153, allocations: 0 / 1.116 GB, free: 30.98 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.122e-05/1.153, allocations: 0 / 1.116 GB, free: 30.98 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.0009022/1.154, allocations: 411.3 kB / 1.116 GB, free: 30.58 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.908e-05/1.154, allocations: 15.67 kB / 1.116 GB, free: 30.57 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.922e-05/1.154, allocations: 41.94 kB / 1.116 GB, free: 30.53 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.969e-05/1.154, allocations: 7.719 kB / 1.116 GB, free: 30.52 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001665/1.155, allocations: 168.9 kB / 1.117 GB, free: 30.32 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.877e-05/1.155, allocations: 3.812 kB / 1.117 GB, free: 30.32 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.028e-05/1.155, allocations: 12.27 kB / 1.117 GB, free: 30.32 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000396/1.155, allocations: 68.86 kB / 1.117 GB, free: 30.29 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/1.155, allocations: 3.938 kB / 1.117 GB, free: 30.29 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/1.155, allocations: 4 kB / 1.117 GB, free: 30.29 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/1.155, allocations: 0 / 1.117 GB, free: 30.29 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004739/1.156, allocations: 58.78 kB / 1.117 GB, free: 30.28 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008355/1.157, allocations: 330.9 kB / 1.117 GB, free: 30 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003379/1.157, allocations: 57.11 kB / 1.117 GB, free: 29.98 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.495e-05/1.157, allocations: 3.938 kB / 1.117 GB, free: 29.98 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004403/1.158, allocations: 88.47 kB / 1.117 GB, free: 29.93 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 3.857e-06/1.158, allocations: 3.938 kB / 1.117 GB, free: 29.92 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.00102/1.159, allocations: 154.7 kB / 1.117 GB, free: 29.88 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.108e-05/1.159, allocations: 61.83 kB / 1.117 GB, free: 29.82 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/1.159, allocations: 107 kB / 1.117 GB, free: 29.72 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.998e-05/1.159, allocations: 29.67 kB / 1.118 GB, free: 29.69 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/1.159, allocations: 94.95 kB / 1.118 GB, free: 29.6 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.788e-05/1.159, allocations: 11.75 kB / 1.118 GB, free: 29.59 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.21e-05/1.159, allocations: 3.906 kB / 1.118 GB, free: 29.59 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001779/1.159, allocations: 321.8 kB / 1.118 GB, free: 29.28 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004034/1.16, allocations: 50.56 kB / 1.118 GB, free: 29.28 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000396/1.16, allocations: 82.09 kB / 1.118 GB, free: 29.25 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004362/1.161, allocations: 88.08 kB / 1.118 GB, free: 29.21 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/1.161, allocations: 0 / 1.118 GB, free: 29.21 MB / 0.698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.001063/1.162, allocations: 207.3 kB / 1.118 GB, free: 29.13 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 7.772e-05/1.162, allocations: 40.55 kB / 1.118 GB, free: 29.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/1.162, allocations: 0 / 1.118 GB, free: 29.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.775e-05/1.162, allocations: 3.938 kB / 1.118 GB, free: 29.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002464/1.162, allocations: 14.83 kB / 1.118 GB, free: 29.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/1.162, allocations: 3.938 kB / 1.118 GB, free: 29.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005868/1.163, allocations: 51.17 kB / 1.118 GB, free: 29.09 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.776e-05/1.163, allocations: 11.66 kB / 1.118 GB, free: 29.09 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.0002186/1.163, allocations: 120.9 kB / 1.119 GB, free: 28.97 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.665e-05/1.163, allocations: 7.875 kB / 1.119 GB, free: 28.97 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007406/1.164, allocations: 128.4 kB / 1.119 GB, free: 28.93 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.493e-06/1.164, allocations: 0 / 1.119 GB, free: 28.93 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/1.164, allocations: 0 / 1.119 GB, free: 28.93 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/1.164, allocations: 0 / 1.119 GB, free: 28.93 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009937/1.165, allocations: 375.6 kB / 1.119 GB, free: 28.62 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/1.165, allocations: 0 / 1.119 GB, free: 28.62 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001773/1.165, allocations: 14.83 kB / 1.119 GB, free: 28.62 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.366e-06/1.165, allocations: 480 / 1.119 GB, free: 28.62 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/1.165, allocations: 0 / 1.119 GB, free: 28.62 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.661e-06/1.165, allocations: 4 kB / 1.119 GB, free: 28.62 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/1.165, allocations: 3.953 kB / 1.119 GB, free: 28.62 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007447/1.166, allocations: 215.4 kB / 1.119 GB, free: 28.48 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 8.063e-05/1.166, allocations: 88.98 kB / 1.119 GB, free: 28.38 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.917e-05/1.166, allocations: 3.781 kB / 1.119 GB, free: 28.38 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/1.167, allocations: 6.781 kB / 1.119 GB, free: 28.38 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.184e-05/1.167, allocations: 14.92 kB / 1.119 GB, free: 28.38 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.049e-05/1.167, allocations: 7.766 kB / 1.119 GB, free: 28.37 MB / 0.698 GB Notification: Performance of sorting global known variables: time 9.892e-05/1.167, allocations: 89 kB / 1.119 GB, free: 28.3 MB / 0.698 GB Notification: Performance of sort global known variables: time 6.61e-07/1.167, allocations: 0 / 1.119 GB, free: 28.3 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006333/1.168, allocations: 30.12 kB / 1.12 GB, free: 28.29 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.00132/1.169, allocations: 0.753 MB / 1.12 GB, free: 27.63 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0009082/1.17, allocations: 178.3 kB / 1.12 GB, free: 27.56 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/1.17, allocations: 3.875 kB / 1.12 GB, free: 27.56 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003141/1.17, allocations: 52.27 kB / 1.12 GB, free: 27.55 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004009/1.171, allocations: 12.72 kB / 1.12 GB, free: 27.55 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001396/1.172, allocations: 0.8373 MB / 1.121 GB, free: 26.73 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004111/1.172, allocations: 0.688 MB / 1.122 GB, free: 26.04 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 9.287e-05/1.173, allocations: 8.156 kB / 1.122 GB, free: 26.04 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.618e-05/1.173, allocations: 13.98 kB / 1.122 GB, free: 26.03 MB / 0.698 GB Notification: Performance of SimCode: time 1.933e-06/1.173, allocations: 3.812 kB / 1.122 GB, free: 26.03 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02547/1.198, allocations: 2.075 MB / 1.124 GB, free: 25.8 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002574/1.199, allocations: 192.8 kB / 1.124 GB, free: 25.57 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.291/3.49, allocations: 0 / 1.124 GB, free: 25.57 MB / 0.698 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)