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.516/1.516, allocations: 249.3 MB / 261.8 MB, free: 5.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001228/0.001228, allocations: 178.6 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.837/1.837, allocations: 205.2 MB / 0.572 GB, free: 10.7 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.0008492/0.0008491, allocations: 97.39 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 5.025e-05/5.027e-05, allocations: 4 kB / 0.788 GB, free: 97 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2528, allocations: 106.3 MB / 0.8919 GB, free: 6.566 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8689/1.122, allocations: 131.9 MB / 1.021 GB, free: 2.824 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002468/1.122, allocations: 77.66 kB / 1.021 GB, free: 2.781 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004175/1.126, allocations: 1.469 MB / 1.022 GB, free: 1.504 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.837e-06/1.126, allocations: 0 / 1.022 GB, free: 1.504 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.146e-05/1.126, allocations: 3.938 kB / 1.022 GB, free: 1.5 MB / 0.6355 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.0005271/1.127, allocations: 370.3 kB / 1.023 GB, free: 1.098 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/1.127, allocations: 8.031 kB / 1.023 GB, free: 1.09 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.761e-05/1.127, allocations: 33.94 kB / 1.023 GB, free: 1.051 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.4e-05/1.127, allocations: 11.53 kB / 1.023 GB, free: 1.043 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000144/1.127, allocations: 175 kB / 1.023 GB, free: 0.832 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/1.127, allocations: 3.5 kB / 1.023 GB, free: 0.832 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.495e-05/1.127, allocations: 4 kB / 1.023 GB, free: 0.8281 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001232/1.127, allocations: 60.61 kB / 1.023 GB, free: 0.7695 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/1.127, allocations: 0 / 1.023 GB, free: 0.7695 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.298e-05/1.127, allocations: 11.86 kB / 1.023 GB, free: 0.7578 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/1.127, allocations: 0 / 1.023 GB, free: 0.7578 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.76e-05/1.127, allocations: 27.17 kB / 1.023 GB, free: 0.7383 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004604/1.128, allocations: 286.8 kB / 1.023 GB, free: 436 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.686e-05/1.128, allocations: 52.25 kB / 1.023 GB, free: 384 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.891e-05/1.128, allocations: 23.48 kB / 1.023 GB, free: 364 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/1.128, allocations: 0 / 1.023 GB, free: 364 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000172/1.128, allocations: 66.39 kB / 1.023 GB, free: 292 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/1.128, allocations: 0 / 1.023 GB, free: 292 kB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002563/1.129, allocations: 75.73 kB / 1.023 GB, free: 220 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.543e-05/1.129, allocations: 59.41 kB / 1.023 GB, free: 148 kB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/1.129, allocations: 104 kB / 1.023 GB, free: 44 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.226e-05/1.129, allocations: 29.7 kB / 1.024 GB, free: 8 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.443e-05/1.129, allocations: 91.62 kB / 1.024 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.622e-05/1.129, allocations: 15.38 kB / 1.024 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.01e-06/1.129, allocations: 0 / 1.024 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001497/1.129, allocations: 318.3 kB / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.795e-05/1.129, allocations: 18.56 kB / 1.024 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.997e-05/1.129, allocations: 34.14 kB / 1.024 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.205e-05/1.129, allocations: 18.73 kB / 1.024 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/1.129, allocations: 0 / 1.024 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001354/1.129, allocations: 79.97 kB / 1.024 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/1.129, allocations: 4 kB / 1.024 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/1.129, allocations: 3.938 kB / 1.024 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/1.129, allocations: 7.984 kB / 1.024 GB, free: 15.44 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/1.13, allocations: 19.97 kB / 1.024 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/1.13, allocations: 3.953 kB / 1.024 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.789e-05/1.13, allocations: 27.72 kB / 1.024 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.425e-06/1.13, allocations: 0 / 1.024 GB, free: 15.39 MB / 0.6511 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 () * 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 8.437e-05/1.13, allocations: 110.9 kB / 1.024 GB, free: 15.28 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.406e-05/1.13, allocations: 7.906 kB / 1.024 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001648/1.13, allocations: 88.3 kB / 1.024 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/1.13, allocations: 0 / 1.024 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/1.13, allocations: 4 kB / 1.024 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/1.13, allocations: 3.953 kB / 1.024 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003976/1.13, allocations: 346.5 kB / 1.025 GB, free: 14.81 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/1.13, allocations: 192 / 1.025 GB, free: 14.81 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.575e-05/1.131, allocations: 15.98 kB / 1.025 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/1.131, allocations: 4.031 kB / 1.025 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.117e-05/1.131, allocations: 0 / 1.025 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.454e-06/1.131, allocations: 11.89 kB / 1.025 GB, free: 14.78 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/1.131, allocations: 11.97 kB / 1.025 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002363/1.131, allocations: 169.9 kB / 1.025 GB, free: 14.6 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.328e-05/1.131, allocations: 77.11 kB / 1.025 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.899e-05/1.131, allocations: 0 / 1.025 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001254/1.131, allocations: 27.59 kB / 1.025 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.554e-05/1.131, allocations: 7.953 kB / 1.025 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/1.131, allocations: 7.984 kB / 1.025 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.467e-05/1.131, allocations: 90.58 kB / 1.025 GB, free: 14.38 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.3e-07/1.131, allocations: 0 / 1.025 GB, free: 14.38 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002186/1.131, allocations: 15.06 kB / 1.025 GB, free: 14.37 MB / 0.6511 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) * 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.0005966/1.132, allocations: 0.7117 MB / 1.026 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001288/1.132, allocations: 44.5 kB / 1.026 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/1.132, allocations: 0 / 1.026 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.957e-05/1.132, allocations: 22.06 kB / 1.026 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002057/1.132, allocations: 11.94 kB / 1.026 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004564/1.133, allocations: 140.6 kB / 1.026 GB, free: 13.43 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003341/1.133, allocations: 0.6887 MB / 1.027 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.023e-05/1.133, allocations: 7.844 kB / 1.027 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.171e-05/1.133, allocations: 18.56 kB / 1.027 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of SimCode: time 5.11e-07/1.133, allocations: 0 / 1.027 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01263/1.146, allocations: 1.611 MB / 1.028 GB, free: 11.21 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001722/1.146, allocations: 165.5 kB / 1.028 GB, free: 10.99 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.6/2.747, allocations: 0 / 1.028 GB, free: 10.99 MB / 0.6511 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)