Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.208/2.208, allocations: 251.3 MB / 266.2 MB, free: 11.51 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001937/0.001937, allocations: 183.2 kB / 325.8 MB, free: 2.789 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.501/2.501, allocations: 205.4 MB / 0.5767 GB, free: 20.75 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001209/0.001209, allocations: 91.48 kB / 0.6812 GB, free: 13.58 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004652/0.0004653, allocations: 11.84 kB / 0.7953 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2136/0.2141, allocations: 106.3 MB / 0.899 GB, free: 65.41 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001618/0.2158, allocations: 1.1 MB / 0.9001 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005349/0.2164, allocations: 229.4 kB / 0.9003 GB, free: 64.07 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.217e-05/0.2164, allocations: 0 / 0.9003 GB, free: 64.07 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.607e-05/0.2165, allocations: 0 / 0.9003 GB, free: 64.07 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.608e-05/0.2166, allocations: 11.92 kB / 0.9004 GB, free: 64.06 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001952/0.2168, allocations: 23.97 kB / 0.9004 GB, free: 64.04 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.237e-05/0.2169, allocations: 39.86 kB / 0.9004 GB, free: 64 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.037e-05/0.217, allocations: 11.98 kB / 0.9004 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.275e-05/0.217, allocations: 15.94 kB / 0.9004 GB, free: 63.97 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.207e-05/0.2171, allocations: 19.91 kB / 0.9005 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.745e-05/0.2171, allocations: 4 kB / 0.9005 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.263e-05/0.2171, allocations: 0 / 0.9005 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.028e-05/0.2172, allocations: 11.98 kB / 0.9005 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.873e-05/0.2172, allocations: 37.52 kB / 0.9005 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.506e-05/0.2173, allocations: 27.94 kB / 0.9005 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.2173, allocations: 3.984 kB / 0.9005 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.904e-06/0.2173, allocations: 0 / 0.9005 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.2173, allocations: 0 / 0.9005 GB, free: 63.86 MB / 0.6042 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.0005842/0.2179, allocations: 367.7 kB / 0.9009 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.218, allocations: 8.031 kB / 0.9009 GB, free: 63.44 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.662e-05/0.218, allocations: 8.844 kB / 0.9009 GB, free: 63.43 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.268e-05/0.2181, allocations: 160.4 kB / 0.9011 GB, free: 63.24 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/0.2182, allocations: 4.375 kB / 0.9011 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.848e-05/0.2182, allocations: 8.375 kB / 0.9011 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002695/0.2185, allocations: 74.16 kB / 0.9011 GB, free: 63.15 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.2185, allocations: 192 / 0.9011 GB, free: 63.15 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.2185, allocations: 3.938 kB / 0.9011 GB, free: 63.14 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.2185, allocations: 4 kB / 0.9011 GB, free: 63.14 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003325/0.2189, allocations: 55.95 kB / 0.9012 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004158/0.2193, allocations: 280.8 kB / 0.9015 GB, free: 62.76 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002292/0.2195, allocations: 70.42 kB / 0.9015 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.2197, allocations: 28.97 kB / 0.9016 GB, free: 62.65 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.776e-05/0.2198, allocations: 4 kB / 0.9016 GB, free: 62.65 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002646/0.22, allocations: 83.38 kB / 0.9016 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 2.615e-06/0.22, allocations: 0 / 0.9016 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0006147/0.2207, allocations: 141.7 kB / 0.9018 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.945e-05/0.2207, allocations: 55.34 kB / 0.9018 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.956e-05/0.2208, allocations: 105.8 kB / 0.9019 GB, free: 62.23 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.2208, allocations: 29.7 kB / 0.902 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.572e-05/0.2209, allocations: 91.98 kB / 0.9021 GB, free: 62.1 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.481e-05/0.2209, allocations: 15.8 kB / 0.9021 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.993e-06/0.2209, allocations: 4 kB / 0.9021 GB, free: 62.08 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.901e-05/0.221, allocations: 310.8 kB / 0.9024 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000159/0.2212, allocations: 39.97 kB / 0.9024 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001735/0.2213, allocations: 60.27 kB / 0.9025 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001714/0.2215, allocations: 39.92 kB / 0.9025 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.2215, allocations: 0 / 0.9025 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004097/0.222, allocations: 129.4 kB / 0.9026 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.222, allocations: 11.94 kB / 0.9026 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.222, allocations: 192 / 0.9026 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.222, allocations: 0 / 0.9026 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001712/0.2222, allocations: 27.86 kB / 0.9027 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.2222, allocations: 4 kB / 0.9027 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.2224, allocations: 12.11 kB / 0.9027 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.42e-05/0.2224, allocations: 8.25 kB / 0.9027 GB, free: 61.42 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.765e-05/0.2225, allocations: 121.7 kB / 0.9028 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.733e-05/0.2225, allocations: 4 kB / 0.9028 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000454/0.223, allocations: 122 kB / 0.9029 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.223, allocations: 0 / 0.9029 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.223, allocations: 4 kB / 0.9029 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.223, allocations: 4.031 kB / 0.9029 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005883/0.2236, allocations: 378.4 kB / 0.9033 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.2236, allocations: 0 / 0.9033 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001107/0.2238, allocations: 11.94 kB / 0.9033 GB, free: 60.72 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.2238, allocations: 0 / 0.9033 GB, free: 60.72 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.2238, allocations: 7.984 kB / 0.9033 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.2238, allocations: 0 / 0.9033 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.2238, allocations: 0 / 0.9033 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004047/0.2242, allocations: 207.9 kB / 0.9035 GB, free: 60.49 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.963e-05/0.2243, allocations: 85 kB / 0.9036 GB, free: 60.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.445e-05/0.2243, allocations: 4 kB / 0.9036 GB, free: 60.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000153/0.2245, allocations: 19.98 kB / 0.9036 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.92e-05/0.2245, allocations: 0 / 0.9036 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.932e-05/0.2246, allocations: 7.938 kB / 0.9036 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.722e-05/0.2246, allocations: 87.27 kB / 0.9037 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.71e-07/0.2246, allocations: 0 / 0.9037 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002979/0.2249, allocations: 12 kB / 0.9037 GB, free: 60.26 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * 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.0001173/0.225, allocations: 99.19 kB / 0.9038 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003897/0.2254, allocations: 87.94 kB / 0.9039 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2255, allocations: 0 / 0.9039 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001783/0.2256, allocations: 31.98 kB / 0.9039 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003364/0.226, allocations: 16.23 kB / 0.9039 GB, free: 60.02 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003852/0.2264, allocations: 148.6 kB / 0.9041 GB, free: 59.85 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001486/0.2266, allocations: 0.6848 MB / 0.9048 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.587e-05/0.2266, allocations: 7.984 kB / 0.9048 GB, free: 59.13 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.511e-05/0.2267, allocations: 11.44 kB / 0.9048 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of SimCode: time 6.42e-07/0.2267, allocations: 0 / 0.9048 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of Templates: time 0.003306/0.23, allocations: 0.5762 MB / 0.9053 GB, free: 58.55 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)