Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.935/4.935, allocations: 0.5623 GB / 0.5769 GB, free: 3.336 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002408/0.002407, allocations: 354 kB / 0.644 GB, free: 185.7 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.518/4.518, allocations: 410.7 MB / 1.112 GB, free: 5.953 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001795/0.001795, allocations: 181.5 kB / 1.225 GB, free: 6.082 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0005668/0.000567, allocations: 11.98 kB / 1.348 GB, free: 8.199 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5873/0.5879, allocations: 115.3 MB / 1.461 GB, free: 284.4 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.0007271/0.5886, allocations: 406.6 kB / 1.461 GB, free: 284 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001199/0.5899, allocations: 1.043 MB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.413e-05/0.5899, allocations: 4 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 1.405e-05/0.59, allocations: 3.938 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 5.896e-05/0.59, allocations: 1.469 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002091/0.5902, allocations: 39.83 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 7.551e-05/0.5903, allocations: 59.84 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 8.117e-05/0.5904, allocations: 17.19 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 5.873e-05/0.5905, allocations: 23.92 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 5.502e-05/0.5906, allocations: 28.75 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.619e-05/0.5906, allocations: 4 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 6.086e-05/0.5907, allocations: 17.2 kB / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 1.835e-05/0.5907, allocations: 19.84 kB / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 2.956e-05/0.5907, allocations: 33.7 kB / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 9.434e-05/0.5908, allocations: 48.64 kB / 1.462 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.585e-06/0.5909, allocations: 0 / 1.462 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.035e-06/0.5909, allocations: 0.75 kB / 1.462 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 1.012e-05/0.5909, allocations: 0 / 1.462 GB, free: 282.6 MB / 0.8542 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.0005164/0.5914, allocations: 376.6 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.5915, allocations: 15.62 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.31e-05/0.5915, allocations: 11.89 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.19e-05/0.5916, allocations: 171.9 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.64e-05/0.5916, allocations: 8 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.171e-05/0.5917, allocations: 5.219 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002316/0.5919, allocations: 86.92 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.5919, allocations: 1.266 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.592, allocations: 0 / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.982e-06/0.592, allocations: 0.5312 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002337/0.5922, allocations: 67.08 kB / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005065/0.5927, allocations: 325.9 kB / 1.463 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002211/0.593, allocations: 80.89 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001434/0.5932, allocations: 55.23 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.5932, allocations: 0 / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002511/0.5935, allocations: 101.5 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=10): time 4.702e-06/0.5935, allocations: 1.359 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of matching and sorting (n=10): time 0.0006052/0.5941, allocations: 184.1 kB / 1.464 GB, free: 281 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.6e-05/0.5941, allocations: 56.12 kB / 1.464 GB, free: 281 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.526e-05/0.5942, allocations: 118.7 kB / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.5943, allocations: 29.7 kB / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 3.613e-05/0.5943, allocations: 86.22 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.254e-05/0.5944, allocations: 31.62 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.078e-06/0.5944, allocations: 4 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 5.471e-05/0.5944, allocations: 318.8 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.5946, allocations: 41.19 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000153/0.5948, allocations: 69.27 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001576/0.5949, allocations: 46 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.203e-06/0.5949, allocations: 0.625 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003862/0.5953, allocations: 152.9 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.5954, allocations: 5.5 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.026e-06/0.5954, allocations: 7.938 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.5954, allocations: 0 / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000164/0.5956, allocations: 28.78 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.199e-06/0.5956, allocations: 4.844 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.398e-05/0.5957, allocations: 12.45 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.5957, allocations: 4 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 () * Number of clocked 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 8.6e-05/0.5958, allocations: 127.5 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.086e-05/0.5959, allocations: 8.406 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003992/0.5963, allocations: 162.1 kB / 1.465 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.257e-06/0.5963, allocations: 0.75 kB / 1.465 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.464e-06/0.5963, allocations: 0 / 1.465 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.296e-06/0.5963, allocations: 2.719 kB / 1.465 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005639/0.5969, allocations: 423.4 kB / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.29e-06/0.5969, allocations: 0 / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.062e-05/0.597, allocations: 12.95 kB / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.627e-06/0.597, allocations: 4 kB / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.5971, allocations: 3.188 kB / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.081e-06/0.5971, allocations: 256 / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.775e-06/0.5971, allocations: 3.953 kB / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003788/0.5975, allocations: 244.7 kB / 1.466 GB, free: 279 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.455e-05/0.5975, allocations: 85.02 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.545e-05/0.5976, allocations: 4.938 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001467/0.5977, allocations: 14.89 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.946e-05/0.5978, allocations: 7.984 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/0.5978, allocations: 7.953 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.453e-05/0.5978, allocations: 83.27 kB / 1.466 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.17e-06/0.5979, allocations: 4 kB / 1.466 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003387/0.5982, allocations: 19.94 kB / 1.466 GB, free: 278.7 MB / 0.8542 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) * Number of clocked states: 0 () * 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.000133/0.5984, allocations: 113.8 kB / 1.466 GB, free: 278.6 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.000358/0.5987, allocations: 110.5 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.797e-06/0.5987, allocations: 0.9688 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.000161/0.5989, allocations: 57.02 kB / 1.466 GB, free: 278.4 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003367/0.5993, allocations: 13.08 kB / 1.466 GB, free: 278.4 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003616/0.5996, allocations: 171.7 kB / 1.466 GB, free: 278.2 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001279/0.5998, allocations: 0.6936 MB / 1.467 GB, free: 277.5 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.636e-05/0.5998, allocations: 4.438 kB / 1.467 GB, free: 277.5 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.358e-05/0.5999, allocations: 16.02 kB / 1.467 GB, free: 277.5 MB / 0.8542 GB Notification: Performance of SimCode: time 1.954e-06/0.5999, allocations: 0 / 1.467 GB, free: 277.5 MB / 0.8542 GB Notification: Performance of Templates: time 0.003814/0.6037, allocations: 0.8827 MB / 1.468 GB, free: 276.7 MB / 0.8542 GB