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.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.281/2.281, allocations: 251.3 MB / 266.2 MB, free: 11.52 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.001319/0.001319, allocations: 181.8 kB / 325.8 MB, free: 2.777 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.727/2.727, allocations: 205.4 MB / 0.5767 GB, free: 20.77 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.001305/0.001305, allocations: 92.72 kB / 0.6812 GB, free: 13.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005011/0.0005015, allocations: 11.97 kB / 0.7953 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2067/0.2072, allocations: 106.2 MB / 0.899 GB, free: 65.39 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001639/0.2089, allocations: 1.119 MB / 0.9001 GB, free: 64.26 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005686/0.2095, allocations: 233.4 kB / 0.9004 GB, free: 64.03 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.936e-05/0.2096, allocations: 0 / 0.9004 GB, free: 64.03 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.994e-05/0.2096, allocations: 3.938 kB / 0.9004 GB, free: 64.02 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.635e-05/0.2097, allocations: 11.88 kB / 0.9004 GB, free: 64.01 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000199/0.2099, allocations: 23.95 kB / 0.9004 GB, free: 63.99 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.993e-05/0.21, allocations: 59.84 kB / 0.9004 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.962e-05/0.2101, allocations: 12 kB / 0.9005 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.11e-05/0.2102, allocations: 23.91 kB / 0.9005 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.327e-05/0.2103, allocations: 23.91 kB / 0.9005 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.006e-05/0.2103, allocations: 4 kB / 0.9005 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.583e-05/0.2103, allocations: 4 kB / 0.9005 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.961e-05/0.2104, allocations: 7.984 kB / 0.9005 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.633e-05/0.2104, allocations: 41.64 kB / 0.9006 GB, free: 63.81 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.727e-05/0.2105, allocations: 47.88 kB / 0.9006 GB, free: 63.76 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.2105, allocations: 0 / 0.9006 GB, free: 63.76 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.154e-06/0.2105, allocations: 0 / 0.9006 GB, free: 63.76 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.2106, allocations: 3.938 kB / 0.9006 GB, free: 63.76 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006482/0.2112, allocations: 375.6 kB / 0.901 GB, free: 63.34 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.2113, allocations: 8.031 kB / 0.901 GB, free: 63.33 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.482e-05/0.2113, allocations: 4.938 kB / 0.901 GB, free: 63.33 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.192e-05/0.2114, allocations: 172.3 kB / 0.9011 GB, free: 63.12 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.099e-05/0.2115, allocations: 8.375 kB / 0.9012 GB, free: 63.11 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.579e-05/0.2115, allocations: 8.312 kB / 0.9012 GB, free: 63.11 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002973/0.2118, allocations: 86.22 kB / 0.9012 GB, free: 63.02 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.2118, allocations: 8.156 kB / 0.9013 GB, free: 63.01 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.2119, allocations: 7.938 kB / 0.9013 GB, free: 63 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.2119, allocations: 0 / 0.9013 GB, free: 63 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003344/0.2122, allocations: 71.89 kB / 0.9013 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005665/0.2128, allocations: 300.8 kB / 0.9016 GB, free: 62.59 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002861/0.2131, allocations: 98.41 kB / 0.9017 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001893/0.2133, allocations: 40.84 kB / 0.9017 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.17e-05/0.2134, allocations: 11.97 kB / 0.9018 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003131/0.2137, allocations: 95.56 kB / 0.9019 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=10): time 2.494e-06/0.2137, allocations: 3.938 kB / 0.9019 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10): time 0.0007482/0.2145, allocations: 181.5 kB / 0.902 GB, free: 62.13 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.856e-05/0.2145, allocations: 63.34 kB / 0.9021 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.891e-05/0.2146, allocations: 109.8 kB / 0.9022 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.2146, allocations: 29.7 kB / 0.9022 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.067e-05/0.2147, allocations: 88.36 kB / 0.9023 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.477e-05/0.2147, allocations: 27.66 kB / 0.9023 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.627e-06/0.2148, allocations: 0 / 0.9023 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.261e-05/0.2148, allocations: 322.8 kB / 0.9026 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001845/0.215, allocations: 40.34 kB / 0.9027 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002027/0.2152, allocations: 72.39 kB / 0.9027 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002044/0.2155, allocations: 51.92 kB / 0.9028 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.2155, allocations: 0 / 0.9028 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000483/0.216, allocations: 165.3 kB / 0.903 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.216, allocations: 4 kB / 0.903 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.535e-06/0.216, allocations: 0 / 0.903 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.2161, allocations: 7.984 kB / 0.903 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002251/0.2163, allocations: 19.98 kB / 0.903 GB, free: 61.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.2163, allocations: 4 kB / 0.903 GB, free: 61.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001196/0.2164, allocations: 20 kB / 0.903 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.476e-05/0.2165, allocations: 4 kB / 0.903 GB, free: 61.06 MB / 0.6042 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 () * 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 0.0001025/0.2166, allocations: 129.7 kB / 0.9031 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.045e-05/0.2166, allocations: 4 kB / 0.9031 GB, free: 60.92 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005247/0.2171, allocations: 161.8 kB / 0.9033 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.85e-06/0.2172, allocations: 0 / 0.9033 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2172, allocations: 0 / 0.9033 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.2172, allocations: 0 / 0.9033 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000706/0.2179, allocations: 422.3 kB / 0.9037 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.2179, allocations: 0 / 0.9037 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001275/0.2181, allocations: 11.98 kB / 0.9037 GB, free: 60.28 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.95e-06/0.2181, allocations: 4 kB / 0.9037 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.2181, allocations: 4 kB / 0.9037 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.2181, allocations: 0 / 0.9037 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.2181, allocations: 0 / 0.9037 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005007/0.2186, allocations: 251.3 kB / 0.904 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.769e-05/0.2187, allocations: 77.39 kB / 0.904 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.962e-05/0.2187, allocations: 12.19 kB / 0.904 GB, free: 59.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001662/0.2189, allocations: 19.98 kB / 0.9041 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.787e-05/0.219, allocations: 11.92 kB / 0.9041 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/0.219, allocations: 3.938 kB / 0.9041 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.011e-05/0.219, allocations: 95.2 kB / 0.9042 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of sort global known variables: time 4.71e-07/0.2191, allocations: 0 / 0.9042 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003081/0.2194, allocations: 16 kB / 0.9042 GB, free: 59.76 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: 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.0001199/0.2195, allocations: 100.5 kB / 0.9043 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004713/0.22, allocations: 111.9 kB / 0.9044 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.22, allocations: 0 / 0.9044 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002166/0.2202, allocations: 51.91 kB / 0.9044 GB, free: 59.49 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000379/0.2206, allocations: 12.19 kB / 0.9044 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004462/0.2211, allocations: 173.2 kB / 0.9046 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001387/0.2212, allocations: 0.6848 MB / 0.9053 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.315e-05/0.2213, allocations: 12.42 kB / 0.9053 GB, free: 58.56 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.315e-05/0.2214, allocations: 11.44 kB / 0.9053 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of SimCode: time 1.383e-06/0.2214, allocations: 0 / 0.9053 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of Templates: time 0.003903/0.2253, allocations: 0.7436 MB / 0.906 GB, free: 57.81 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)