Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.684/1.684, allocations: 288.2 MB / 303.2 MB, free: 8.172 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.001704/0.001705, allocations: 178.2 kB / 371.8 MB, free: 10.27 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.742/1.742, allocations: 205.4 MB / 0.6305 GB, free: 10 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.0008396/0.0008396, allocations: 97.72 kB / 0.7439 GB, free: 5.922 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000425/0.0004252, allocations: 11.19 kB / 0.8669 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2107/0.2112, allocations: 115.3 MB / 0.9795 GB, free: 27.6 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6839/0.8951, allocations: 138.5 MB / 1.115 GB, free: 16.22 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001711/0.8953, allocations: 76.48 kB / 1.115 GB, free: 16.21 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.007458/0.9028, allocations: 2.594 MB / 1.117 GB, free: 31.79 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.935e-06/0.9029, allocations: 0 / 1.117 GB, free: 31.79 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.251e-05/0.9029, allocations: 3.812 kB / 1.117 GB, free: 31.79 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.0006512/0.9036, allocations: 412.5 kB / 1.118 GB, free: 31.38 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.9036, allocations: 11.67 kB / 1.118 GB, free: 31.38 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.713e-05/0.9037, allocations: 40.88 kB / 1.118 GB, free: 31.33 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.514e-05/0.9037, allocations: 11.72 kB / 1.118 GB, free: 31.33 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/0.9038, allocations: 166 kB / 1.118 GB, free: 31.13 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.671e-05/0.9038, allocations: 3.875 kB / 1.118 GB, free: 31.13 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.494e-05/0.9039, allocations: 7.688 kB / 1.118 GB, free: 31.13 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002265/0.9041, allocations: 75.03 kB / 1.118 GB, free: 31.09 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.9041, allocations: 0 / 1.118 GB, free: 31.09 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.9041, allocations: 7.75 kB / 1.118 GB, free: 31.09 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.9042, allocations: 3.938 kB / 1.118 GB, free: 31.09 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001723/0.9043, allocations: 50.47 kB / 1.118 GB, free: 31.09 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004735/0.9048, allocations: 327.2 kB / 1.118 GB, free: 30.81 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001565/0.905, allocations: 58.38 kB / 1.118 GB, free: 30.79 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/0.905, allocations: 0 / 1.118 GB, free: 30.79 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002574/0.9053, allocations: 92.42 kB / 1.119 GB, free: 30.73 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.9053, allocations: 0 / 1.119 GB, free: 30.73 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0004748/0.9058, allocations: 157.1 kB / 1.119 GB, free: 30.7 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/0.9058, allocations: 59.25 kB / 1.119 GB, free: 30.63 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.801e-05/0.9059, allocations: 107 kB / 1.119 GB, free: 30.53 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.906, allocations: 33.45 kB / 1.119 GB, free: 30.5 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 7.225e-05/0.906, allocations: 94.89 kB / 1.119 GB, free: 30.41 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.78e-05/0.9061, allocations: 11.72 kB / 1.119 GB, free: 30.4 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.257e-05/0.9061, allocations: 3.812 kB / 1.119 GB, free: 30.4 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.9062, allocations: 321.6 kB / 1.119 GB, free: 30.09 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000147/0.9064, allocations: 53.06 kB / 1.119 GB, free: 30.09 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001402/0.9065, allocations: 78.03 kB / 1.119 GB, free: 30.05 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001507/0.9067, allocations: 81.92 kB / 1.119 GB, free: 30.02 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.9067, allocations: 3.906 kB / 1.12 GB, free: 30.02 MB / 0.698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003857/0.9071, allocations: 209.6 kB / 1.12 GB, free: 29.94 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.663e-05/0.9071, allocations: 37.44 kB / 1.12 GB, free: 29.91 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.9071, allocations: 7.781 kB / 1.12 GB, free: 29.91 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.9072, allocations: 0 / 1.12 GB, free: 29.91 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.55e-05/0.9073, allocations: 17.89 kB / 1.12 GB, free: 29.91 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.9073, allocations: 2.531 kB / 1.12 GB, free: 29.91 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001988/0.9075, allocations: 45.2 kB / 1.12 GB, free: 29.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.9075, allocations: 11.64 kB / 1.12 GB, free: 29.9 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 9.04e-05/0.9076, allocations: 120 kB / 1.12 GB, free: 29.79 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.364e-05/0.9076, allocations: 3.906 kB / 1.12 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002788/0.9079, allocations: 136.8 kB / 1.12 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.9079, allocations: 3.812 kB / 1.12 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.9079, allocations: 0 / 1.12 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.9079, allocations: 0 / 1.12 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004006/0.9083, allocations: 377.3 kB / 1.12 GB, free: 29.43 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.9084, allocations: 0 / 1.12 GB, free: 29.43 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.444e-05/0.9084, allocations: 10.78 kB / 1.12 GB, free: 29.43 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.9084, allocations: 0 / 1.12 GB, free: 29.43 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.9085, allocations: 6.406 kB / 1.12 GB, free: 29.43 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.9085, allocations: 4.469 kB / 1.12 GB, free: 29.43 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.9085, allocations: 0 / 1.12 GB, free: 29.43 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002649/0.9087, allocations: 214.1 kB / 1.121 GB, free: 29.29 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.961e-05/0.9088, allocations: 85.05 kB / 1.121 GB, free: 29.19 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.8e-05/0.9088, allocations: 3.938 kB / 1.121 GB, free: 29.19 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.134e-05/0.9089, allocations: 14.02 kB / 1.121 GB, free: 29.19 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.894e-05/0.909, allocations: 6.359 kB / 1.121 GB, free: 29.19 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.909, allocations: 2.203 kB / 1.121 GB, free: 29.19 MB / 0.698 GB Notification: Performance of sorting global known variables: time 4.537e-05/0.909, allocations: 93.22 kB / 1.121 GB, free: 29.11 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.909, allocations: 0 / 1.121 GB, free: 29.11 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002531/0.9093, allocations: 37.3 kB / 1.121 GB, free: 29.1 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.0005922/0.9099, allocations: 0.763 MB / 1.122 GB, free: 28.43 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0003374/0.9102, allocations: 180.2 kB / 1.122 GB, free: 28.36 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.9102, allocations: 0 / 1.122 GB, free: 28.36 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001106/0.9104, allocations: 50.16 kB / 1.122 GB, free: 28.35 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000177/0.9106, allocations: 10.58 kB / 1.122 GB, free: 28.35 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006569/0.9112, allocations: 0.8317 MB / 1.123 GB, free: 27.54 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.9115, allocations: 0.6897 MB / 1.123 GB, free: 26.84 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 3.316e-05/0.9115, allocations: 8.031 kB / 1.123 GB, free: 26.84 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.485e-05/0.9115, allocations: 14.06 kB / 1.123 GB, free: 26.83 MB / 0.698 GB Notification: Performance of SimCode: time 2.3e-07/0.9115, allocations: 3.875 kB / 1.123 GB, free: 26.83 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01178/0.9233, allocations: 2.091 MB / 1.125 GB, free: 26.62 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001335/0.9235, allocations: 194.8 kB / 1.126 GB, free: 26.38 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.517/2.441, allocations: 0 / 1.126 GB, free: 26.38 MB / 0.698 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)