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 5.416/5.416, allocations: 0.5623 GB / 0.5776 GB, free: 3.344 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.003739/0.003739, allocations: 352.4 kB / 0.6447 GB, free: 185.6 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.819/4.819, allocations: 410.7 MB / 1.113 GB, free: 5.961 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.001927/0.001927, allocations: 189 kB / 1.226 GB, free: 6.16 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0007532/0.0007535, allocations: 15.98 kB / 1.349 GB, free: 8.289 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8283/0.8291, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.0009528/0.8302, allocations: 414.8 kB / 1.462 GB, free: 283.9 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001434/0.8316, allocations: 1.039 MB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.013e-05/0.8317, allocations: 0 / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 2.026e-05/0.8317, allocations: 7.938 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 6.249e-05/0.8318, allocations: 0.5312 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002617/0.8321, allocations: 40.52 kB / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 8.97e-05/0.8322, allocations: 59.84 kB / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 9.751e-05/0.8323, allocations: 17.02 kB / 1.463 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 7.143e-05/0.8324, allocations: 19.92 kB / 1.463 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 6.961e-05/0.8324, allocations: 35.89 kB / 1.463 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.577e-05/0.8325, allocations: 0 / 1.463 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 9.425e-05/0.8326, allocations: 19.98 kB / 1.463 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 1.822e-05/0.8326, allocations: 11.92 kB / 1.463 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 3.456e-05/0.8326, allocations: 34.48 kB / 1.463 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0001131/0.8328, allocations: 55.81 kB / 1.463 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.8328, allocations: 4.594 kB / 1.463 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.492e-06/0.8328, allocations: 0 / 1.463 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.568e-06/0.8328, allocations: 2.281 kB / 1.463 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.0006775/0.8335, allocations: 370.3 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.8335, allocations: 17 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.016e-05/0.8336, allocations: 7.891 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.936e-05/0.8337, allocations: 171 kB / 1.464 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.966e-05/0.8337, allocations: 8 kB / 1.464 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.59e-05/0.8338, allocations: 6.75 kB / 1.464 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002957/0.8341, allocations: 81.64 kB / 1.464 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.8341, allocations: 0 / 1.464 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/0.8341, allocations: 4 kB / 1.464 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.8342, allocations: 0.75 kB / 1.464 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003354/0.8345, allocations: 66.14 kB / 1.464 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005986/0.8351, allocations: 322.9 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002755/0.8354, allocations: 79.95 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001954/0.8356, allocations: 55.56 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.942e-05/0.8357, allocations: 3.938 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003086/0.836, allocations: 96.52 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=10): time 2.905e-06/0.836, allocations: 3.047 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of matching and sorting (n=10): time 0.0007621/0.8368, allocations: 188 kB / 1.464 GB, free: 281 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.008e-05/0.8368, allocations: 51.41 kB / 1.465 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.434e-05/0.8369, allocations: 118.3 kB / 1.465 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.421e-05/0.8369, allocations: 33.7 kB / 1.465 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 4.123e-05/0.837, allocations: 81.72 kB / 1.465 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.367e-05/0.837, allocations: 27.64 kB / 1.465 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.347e-06/0.8371, allocations: 4.375 kB / 1.465 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 6.346e-05/0.8371, allocations: 325.2 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001885/0.8373, allocations: 39.97 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/0.8375, allocations: 69.05 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002041/0.8378, allocations: 49.14 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.8378, allocations: 1.188 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004784/0.8383, allocations: 153.4 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.8383, allocations: 7.75 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.8383, allocations: 1.969 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.8383, allocations: 7.938 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002091/0.8386, allocations: 28.22 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.342e-05/0.8386, allocations: 4 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.8387, allocations: 9.281 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.8387, allocations: 7.953 kB / 1.465 GB, free: 279.9 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 9.496e-05/0.8388, allocations: 136.8 kB / 1.466 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.916e-05/0.8389, allocations: 7.906 kB / 1.466 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005086/0.8394, allocations: 152.1 kB / 1.466 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.8394, allocations: 0.75 kB / 1.466 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.8394, allocations: 4 kB / 1.466 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.158e-05/0.8395, allocations: 85.52 kB / 1.466 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.792e-05/0.8395, allocations: 5.266 kB / 1.466 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.8396, allocations: 11.98 kB / 1.466 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.781e-05/0.8397, allocations: 12.64 kB / 1.466 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005457/0.8403, allocations: 237.9 kB / 1.466 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0005149/0.8408, allocations: 317.4 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002029/0.841, allocations: 52.69 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.461e-05/0.841, allocations: 80.59 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of Backend: time 6.51e-07/0.8411, allocations: 0 / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0006442/0.8417, allocations: 152.8 kB / 1.467 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of SimCode: time 0.0004971/0.8422, allocations: 0.6053 MB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of Templates: time 0.004334/0.8466, allocations: 0.9742 MB / 1.468 GB, free: 277.1 MB / 0.8542 GB