Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_7_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 7.0.1/package.mo): time 2.471/2.471, allocations: 248.7 MB / 256.2 MB, free: 7.012 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.001416/0.001416, allocations: 185.8 kB / 315.4 MB, free: 4.012 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.059/2.059, allocations: 205.3 MB / 0.5662 GB, free: 0.5273 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001147/0.001147, allocations: 96.41 kB / 0.6704 GB, free: 5.727 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.29e-05/3.293e-05, allocations: 4 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.215, allocations: 106.3 MB / 0.8841 GB, free: 12.95 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9093/1.124, allocations: 132 MB / 1.013 GB, free: 6.812 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002671/1.125, allocations: 70.47 kB / 1.013 GB, free: 6.777 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.006421/1.131, allocations: 1.477 MB / 1.014 GB, free: 5.496 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.713e-06/1.131, allocations: 4 kB / 1.014 GB, free: 5.492 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.785e-06/1.131, allocations: 0 / 1.014 GB, free: 5.492 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.0006664/1.132, allocations: 358.3 kB / 1.015 GB, free: 5.102 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/1.132, allocations: 8.031 kB / 1.015 GB, free: 5.094 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.59e-05/1.132, allocations: 11.89 kB / 1.015 GB, free: 5.082 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001735/1.132, allocations: 171 kB / 1.015 GB, free: 4.875 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/1.132, allocations: 4 kB / 1.015 GB, free: 4.871 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.856e-05/1.132, allocations: 4 kB / 1.015 GB, free: 4.867 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001162/1.132, allocations: 21.12 kB / 1.015 GB, free: 4.855 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001363/1.133, allocations: 52.8 kB / 1.015 GB, free: 4.801 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/1.133, allocations: 0 / 1.015 GB, free: 4.801 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.43e-05/1.133, allocations: 0 / 1.015 GB, free: 4.801 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/1.133, allocations: 4 kB / 1.015 GB, free: 4.797 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000521/1.133, allocations: 264.8 kB / 1.015 GB, free: 4.516 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001207/1.133, allocations: 44.62 kB / 1.015 GB, free: 4.473 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.83e-05/1.133, allocations: 20.03 kB / 1.015 GB, free: 4.453 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.783e-05/1.133, allocations: 8 kB / 1.015 GB, free: 4.445 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001732/1.134, allocations: 61.56 kB / 1.015 GB, free: 4.383 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 3.025e-06/1.134, allocations: 4 kB / 1.015 GB, free: 4.379 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002623/1.134, allocations: 74.45 kB / 1.016 GB, free: 4.312 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.529e-05/1.134, allocations: 59.36 kB / 1.016 GB, free: 4.242 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/1.134, allocations: 102.9 kB / 1.016 GB, free: 4.141 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/1.134, allocations: 25.7 kB / 1.016 GB, free: 4.109 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.279e-05/1.134, allocations: 91.44 kB / 1.016 GB, free: 4.02 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.983e-05/1.134, allocations: 11.06 kB / 1.016 GB, free: 4.012 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.194e-06/1.134, allocations: 0 / 1.016 GB, free: 4.012 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001361/1.134, allocations: 325.9 kB / 1.016 GB, free: 3.688 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.08e-05/1.134, allocations: 15.38 kB / 1.016 GB, free: 3.676 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.837e-05/1.135, allocations: 29.95 kB / 1.016 GB, free: 3.645 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.998e-05/1.135, allocations: 17.23 kB / 1.016 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/1.135, allocations: 0 / 1.016 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001912/1.135, allocations: 76.72 kB / 1.016 GB, free: 3.559 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/1.135, allocations: 4 kB / 1.016 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/1.135, allocations: 4.188 kB / 1.016 GB, free: 3.551 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/1.135, allocations: 4.031 kB / 1.016 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000205/1.135, allocations: 19.92 kB / 1.016 GB, free: 3.527 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/1.135, allocations: 4.062 kB / 1.016 GB, free: 3.523 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000167/1.135, allocations: 23.88 kB / 1.016 GB, free: 3.5 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.517e-05/1.135, allocations: 7.75 kB / 1.016 GB, free: 3.496 MB / 0.6355 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 0.0001067/1.135, allocations: 108.9 kB / 1.016 GB, free: 3.383 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002373/1.136, allocations: 84.06 kB / 1.017 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.442e-05/1.136, allocations: 0 / 1.017 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002275/1.136, allocations: 76.61 kB / 1.017 GB, free: 3.23 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/1.136, allocations: 3.953 kB / 1.017 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/1.136, allocations: 0.875 kB / 1.017 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/1.136, allocations: 0 / 1.017 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005702/1.137, allocations: 331.6 kB / 1.017 GB, free: 2.879 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/1.137, allocations: 0 / 1.017 GB, free: 2.879 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/1.137, allocations: 15.98 kB / 1.017 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/1.137, allocations: 0 / 1.017 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/1.137, allocations: 10.45 kB / 1.017 GB, free: 2.859 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.534e-06/1.137, allocations: 0 / 1.017 GB, free: 2.859 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/1.137, allocations: 0 / 1.017 GB, free: 2.859 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002467/1.137, allocations: 171.9 kB / 1.017 GB, free: 2.688 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.336e-05/1.137, allocations: 85 kB / 1.017 GB, free: 2.586 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.59e-05/1.137, allocations: 0 / 1.017 GB, free: 2.586 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002059/1.137, allocations: 19.94 kB / 1.017 GB, free: 2.566 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.91e-05/1.137, allocations: 7.984 kB / 1.017 GB, free: 2.559 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/1.137, allocations: 0 / 1.017 GB, free: 2.559 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.487e-05/1.138, allocations: 86.84 kB / 1.017 GB, free: 2.477 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.8e-07/1.138, allocations: 0 / 1.017 GB, free: 2.477 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003402/1.138, allocations: 16 kB / 1.017 GB, free: 2.461 MB / 0.6355 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.0005903/1.139, allocations: 0.7028 MB / 1.018 GB, free: 1.746 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001787/1.139, allocations: 38 kB / 1.018 GB, free: 1.719 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/1.139, allocations: 0 / 1.018 GB, free: 1.719 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.391e-05/1.139, allocations: 30.86 kB / 1.018 GB, free: 1.695 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003323/1.139, allocations: 19.33 kB / 1.018 GB, free: 1.68 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006331/1.14, allocations: 115.9 kB / 1.018 GB, free: 1.531 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/1.14, allocations: 0.6924 MB / 1.019 GB, free: 0.8125 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 6.975e-05/1.14, allocations: 19.77 kB / 1.019 GB, free: 0.793 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.597e-05/1.14, allocations: 21.38 kB / 1.019 GB, free: 0.7812 MB / 0.6355 GB Notification: Performance of SimCode: time 1.032e-06/1.14, allocations: 0 / 1.019 GB, free: 0.7812 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0382/1.179, allocations: 1.26 MB / 1.02 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003057/1.179, allocations: 149.5 kB / 1.02 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.296/3.475, allocations: 0 / 1.02 GB, free: 15.34 MB / 0.6511 GB