Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_8_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_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.1.4-maint.8.1.x/package.mo): time 1.678/1.678, allocations: 289.7 MB / 302.2 MB, free: 2.168 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.001153/0.001152, allocations: 181.2 kB / 371.6 MB, free: 3.395 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.705/1.705, allocations: 205.1 MB / 0.6309 GB, free: 11.77 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.000876/0.0008761, allocations: 90.86 kB / 0.745 GB, free: 54.53 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.869e-05/3.871e-05, allocations: 0 / 0.8663 GB, free: 14.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2786/0.2787, allocations: 116.3 MB / 0.9799 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8742/1.153, allocations: 139.4 MB / 1.116 GB, free: 44.45 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001845/1.153, allocations: 70.45 kB / 1.116 GB, free: 44.43 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.006561/1.16, allocations: 2.576 MB / 1.119 GB, free: 42.91 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.032e-06/1.16, allocations: 0 / 1.119 GB, free: 42.91 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 7.284e-06/1.16, allocations: 4 kB / 1.119 GB, free: 42.91 MB / 0.7448 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.0004265/1.16, allocations: 403 kB / 1.119 GB, free: 42.48 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/1.16, allocations: 11.97 kB / 1.119 GB, free: 42.47 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.806e-05/1.16, allocations: 34.56 kB / 1.119 GB, free: 42.43 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.364e-05/1.16, allocations: 12.19 kB / 1.119 GB, free: 42.43 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.969e-05/1.161, allocations: 171.7 kB / 1.119 GB, free: 42.22 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/1.161, allocations: 6.141 kB / 1.119 GB, free: 42.22 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.464e-05/1.161, allocations: 8 kB / 1.119 GB, free: 42.21 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001181/1.161, allocations: 52.98 kB / 1.119 GB, free: 42.17 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.752e-06/1.161, allocations: 7.938 kB / 1.119 GB, free: 42.16 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/1.161, allocations: 1.125 kB / 1.119 GB, free: 42.16 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/1.161, allocations: 4 kB / 1.119 GB, free: 42.16 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.779e-05/1.161, allocations: 23.12 kB / 1.119 GB, free: 42.14 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004012/1.161, allocations: 318.3 kB / 1.12 GB, free: 41.85 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 8.024e-05/1.161, allocations: 44.7 kB / 1.12 GB, free: 41.8 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.075e-05/1.161, allocations: 15.98 kB / 1.12 GB, free: 41.79 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.949e-05/1.161, allocations: 8.062 kB / 1.12 GB, free: 41.79 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001202/1.161, allocations: 74.02 kB / 1.12 GB, free: 41.72 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 2.415e-06/1.161, allocations: 0.9844 kB / 1.12 GB, free: 41.72 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.000196/1.162, allocations: 81 kB / 1.12 GB, free: 41.65 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.54e-05/1.162, allocations: 55.41 kB / 1.12 GB, free: 41.58 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.982e-05/1.162, allocations: 113.3 kB / 1.12 GB, free: 41.48 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/1.162, allocations: 29.7 kB / 1.12 GB, free: 41.44 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.58e-05/1.162, allocations: 94.92 kB / 1.12 GB, free: 41.35 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.813e-05/1.162, allocations: 19.67 kB / 1.12 GB, free: 41.33 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.137e-05/1.162, allocations: 4 kB / 1.12 GB, free: 41.33 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 6.281e-05/1.162, allocations: 318.2 kB / 1.12 GB, free: 41.02 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.172e-05/1.162, allocations: 39 kB / 1.12 GB, free: 40.99 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.952e-05/1.162, allocations: 64.84 kB / 1.121 GB, free: 40.93 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.217e-05/1.162, allocations: 65.05 kB / 1.121 GB, free: 40.88 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/1.162, allocations: 4 kB / 1.121 GB, free: 40.88 MB / 0.7448 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002366/1.162, allocations: 165.5 kB / 1.121 GB, free: 40.74 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/1.163, allocations: 33.64 kB / 1.121 GB, free: 40.71 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/1.163, allocations: 5.406 kB / 1.121 GB, free: 40.7 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/1.163, allocations: 64 / 1.121 GB, free: 40.7 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/1.163, allocations: 24.19 kB / 1.121 GB, free: 40.68 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.906e-06/1.163, allocations: 3.922 kB / 1.121 GB, free: 40.68 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000197/1.163, allocations: 50.36 kB / 1.121 GB, free: 40.64 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/1.163, allocations: 12 kB / 1.121 GB, free: 40.63 MB / 0.7448 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 6.077e-05/1.163, allocations: 110.4 kB / 1.121 GB, free: 40.52 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.191e-05/1.163, allocations: 4 kB / 1.121 GB, free: 40.52 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001548/1.163, allocations: 96.39 kB / 1.121 GB, free: 40.45 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/1.163, allocations: 0.9375 kB / 1.121 GB, free: 40.45 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/1.163, allocations: 0 / 1.121 GB, free: 40.45 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/1.163, allocations: 0.6875 kB / 1.121 GB, free: 40.45 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002211/1.163, allocations: 346.3 kB / 1.121 GB, free: 40.1 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/1.163, allocations: 0 / 1.121 GB, free: 40.1 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.813e-05/1.164, allocations: 15.94 kB / 1.121 GB, free: 40.08 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/1.164, allocations: 4.266 kB / 1.121 GB, free: 40.08 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/1.164, allocations: 4.438 kB / 1.121 GB, free: 40.08 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/1.164, allocations: 0.625 kB / 1.121 GB, free: 40.08 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/1.164, allocations: 0 / 1.121 GB, free: 40.08 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001315/1.164, allocations: 177.8 kB / 1.122 GB, free: 39.91 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.408e-05/1.164, allocations: 88.7 kB / 1.122 GB, free: 39.81 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.828e-05/1.164, allocations: 0 / 1.122 GB, free: 39.81 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.206e-05/1.164, allocations: 9.328 kB / 1.122 GB, free: 39.8 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.835e-05/1.164, allocations: 7.516 kB / 1.122 GB, free: 39.8 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-06/1.164, allocations: 4 kB / 1.122 GB, free: 39.8 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.14e-05/1.164, allocations: 95.73 kB / 1.122 GB, free: 39.71 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.5e-07/1.164, allocations: 0 / 1.122 GB, free: 39.71 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002332/1.164, allocations: 27.69 kB / 1.122 GB, free: 39.69 MB / 0.7448 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.0004265/1.165, allocations: 0.7345 MB / 1.123 GB, free: 38.96 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.000197/1.165, allocations: 139.8 kB / 1.123 GB, free: 38.84 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/1.165, allocations: 0 / 1.123 GB, free: 38.84 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 4.818e-05/1.165, allocations: 23.56 kB / 1.123 GB, free: 38.82 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001827/1.165, allocations: 19.98 kB / 1.123 GB, free: 38.81 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003768/1.165, allocations: 140.2 kB / 1.123 GB, free: 38.66 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001266/1.166, allocations: 0.6875 MB / 1.124 GB, free: 37.95 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.414e-05/1.166, allocations: 10.16 kB / 1.124 GB, free: 37.95 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.611e-05/1.166, allocations: 14.69 kB / 1.124 GB, free: 37.95 MB / 0.7448 GB Notification: Performance of SimCode: time 3.31e-07/1.166, allocations: 4 kB / 1.124 GB, free: 37.94 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01361/1.179, allocations: 2.093 MB / 1.126 GB, free: 36.82 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001722/1.18, allocations: 174.7 kB / 1.126 GB, free: 36.59 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.527/2.706, allocations: 0 / 1.126 GB, free: 36.59 MB / 0.7448 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)