Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.FirstOrderHold,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",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.349/2.349, allocations: 248.7 MB / 256.2 MB, free: 7.09 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.002335/0.002335, allocations: 189.1 kB / 315.4 MB, free: 3.996 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.07/2.07, allocations: 205.3 MB / 0.5662 GB, free: 0.5312 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.001175/0.001175, allocations: 95.8 kB / 0.6704 GB, free: 5.742 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.082e-05/3.089e-05, allocations: 4 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.2162, allocations: 106.3 MB / 0.8841 GB, free: 12.97 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8626/1.079, allocations: 131.9 MB / 1.013 GB, free: 6.914 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002585/1.079, allocations: 73.33 kB / 1.013 GB, free: 6.875 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004042/1.083, allocations: 0.9483 MB / 1.014 GB, free: 6.012 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.593e-06/1.083, allocations: 0 / 1.014 GB, free: 6.012 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.795e-06/1.083, allocations: 0 / 1.014 GB, free: 6.012 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006852/1.084, allocations: 372.5 kB / 1.014 GB, free: 5.609 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/1.084, allocations: 8.031 kB / 1.014 GB, free: 5.602 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.1e-05/1.084, allocations: 7.906 kB / 1.014 GB, free: 5.594 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001441/1.084, allocations: 167 kB / 1.014 GB, free: 5.391 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.12e-05/1.084, allocations: 4 kB / 1.014 GB, free: 5.387 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.305e-05/1.084, allocations: 4 kB / 1.014 GB, free: 5.383 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000155/1.084, allocations: 25.69 kB / 1.014 GB, free: 5.367 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001582/1.085, allocations: 64.75 kB / 1.014 GB, free: 5.312 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/1.085, allocations: 0 / 1.014 GB, free: 5.312 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.514e-05/1.085, allocations: 11.98 kB / 1.015 GB, free: 5.301 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/1.085, allocations: 3.984 kB / 1.015 GB, free: 5.297 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007236/1.085, allocations: 304.3 kB / 1.015 GB, free: 4.98 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001664/1.086, allocations: 64.02 kB / 1.015 GB, free: 4.926 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.361e-05/1.086, allocations: 26.67 kB / 1.015 GB, free: 4.906 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.026e-05/1.086, allocations: 4 kB / 1.015 GB, free: 4.902 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001836/1.086, allocations: 73.52 kB / 1.015 GB, free: 4.832 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 3.006e-06/1.086, allocations: 192 / 1.015 GB, free: 4.832 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0003465/1.086, allocations: 105.9 kB / 1.015 GB, free: 4.738 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.555e-05/1.086, allocations: 66.83 kB / 1.015 GB, free: 4.664 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/1.087, allocations: 103.1 kB / 1.015 GB, free: 4.562 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.052e-05/1.087, allocations: 29.7 kB / 1.015 GB, free: 4.527 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.174e-05/1.087, allocations: 83.56 kB / 1.015 GB, free: 4.441 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.961e-05/1.087, allocations: 23.08 kB / 1.015 GB, free: 4.422 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.887e-06/1.087, allocations: 0 / 1.015 GB, free: 4.422 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.00015/1.087, allocations: 322.3 kB / 1.016 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.499e-05/1.087, allocations: 29.5 kB / 1.016 GB, free: 4.082 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001083/1.087, allocations: 57.52 kB / 1.016 GB, free: 4.023 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.105e-05/1.087, allocations: 28.98 kB / 1.016 GB, free: 4.004 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.032e-06/1.087, allocations: 4 kB / 1.016 GB, free: 4 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002672/1.087, allocations: 96.03 kB / 1.016 GB, free: 3.914 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/1.088, allocations: 4 kB / 1.016 GB, free: 3.91 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.515e-06/1.088, allocations: 4.094 kB / 1.016 GB, free: 3.906 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/1.088, allocations: 4 kB / 1.016 GB, free: 3.902 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002436/1.088, allocations: 35.41 kB / 1.016 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/1.088, allocations: 0 / 1.016 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001239/1.088, allocations: 8 kB / 1.016 GB, free: 3.863 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.826e-05/1.088, allocations: 4 kB / 1.016 GB, free: 3.859 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001224/1.088, allocations: 117.4 kB / 1.016 GB, free: 3.738 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002656/1.088, allocations: 110 kB / 1.016 GB, free: 3.645 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.075e-05/1.088, allocations: 7.906 kB / 1.016 GB, free: 3.637 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002972/1.089, allocations: 114.2 kB / 1.016 GB, free: 3.539 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/1.089, allocations: 4 kB / 1.016 GB, free: 3.535 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/1.089, allocations: 0 / 1.016 GB, free: 3.535 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/1.089, allocations: 3.953 kB / 1.016 GB, free: 3.531 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005279/1.089, allocations: 345.1 kB / 1.017 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/1.089, allocations: 0 / 1.017 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001412/1.09, allocations: 12 kB / 1.017 GB, free: 3.168 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.215e-06/1.09, allocations: 7.984 kB / 1.017 GB, free: 3.16 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/1.09, allocations: 256 / 1.017 GB, free: 3.16 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/1.09, allocations: 0 / 1.017 GB, free: 3.16 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.084e-06/1.09, allocations: 7.953 kB / 1.017 GB, free: 3.152 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003041/1.09, allocations: 213.2 kB / 1.017 GB, free: 2.953 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.285e-05/1.09, allocations: 84.95 kB / 1.017 GB, free: 2.852 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.024e-05/1.09, allocations: 4 kB / 1.017 GB, free: 2.848 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/1.09, allocations: 15.98 kB / 1.017 GB, free: 2.832 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.83e-05/1.09, allocations: 11.81 kB / 1.017 GB, free: 2.824 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/1.09, allocations: 4 kB / 1.017 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.522e-05/1.09, allocations: 83.09 kB / 1.017 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of sort global known variables: time 2.535e-06/1.09, allocations: 0 / 1.017 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003284/1.091, allocations: 19.92 kB / 1.017 GB, free: 2.723 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.000689/1.091, allocations: 0.741 MB / 1.018 GB, free: 1.98 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002636/1.092, allocations: 66.48 kB / 1.018 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/1.092, allocations: 0 / 1.018 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001019/1.092, allocations: 27.81 kB / 1.018 GB, free: 1.914 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002679/1.092, allocations: 7.75 kB / 1.018 GB, free: 1.91 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000575/1.093, allocations: 145.5 kB / 1.018 GB, free: 1.746 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000294/1.093, allocations: 0.6885 MB / 1.019 GB, free: 1.031 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 6.144e-05/1.093, allocations: 8.422 kB / 1.019 GB, free: 1.023 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.263e-05/1.093, allocations: 15.25 kB / 1.019 GB, free: 1.012 MB / 0.6355 GB Notification: Performance of SimCode: time 1.122e-06/1.093, allocations: 0 / 1.019 GB, free: 1.012 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03663/1.13, allocations: 1.292 MB / 1.02 GB, free: 15.74 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003345/1.13, allocations: 164.3 kB / 1.02 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.291/3.421, allocations: 2.344 kB / 1.02 GB, free: 15.54 MB / 0.6511 GB