Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.386/1.386, allocations: 252 MB / 267.6 MB, free: 10.91 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009627/0.0009626, allocations: 182.2 kB / 327.3 MB, free: 2.211 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.683/1.683, allocations: 205.4 MB / 0.5783 GB, free: 20.23 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007828/0.0007831, allocations: 82.39 kB / 0.6829 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003713/0.0003714, allocations: 9.219 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.2144, allocations: 106.3 MB / 0.9008 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001473/0.2159, allocations: 1.109 MB / 0.9019 GB, free: 62.79 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004525/0.2164, allocations: 244.2 kB / 0.9022 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.449e-05/0.2165, allocations: 0 / 0.9022 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.585e-05/0.2165, allocations: 3.938 kB / 0.9022 GB, free: 62.54 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.877e-05/0.2166, allocations: 4 kB / 0.9022 GB, free: 62.54 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001863/0.2168, allocations: 23.86 kB / 0.9022 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.564e-05/0.2169, allocations: 59.83 kB / 0.9022 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001165/0.217, allocations: 11.98 kB / 0.9023 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.342e-05/0.2171, allocations: 23.92 kB / 0.9023 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.153e-05/0.2171, allocations: 23.91 kB / 0.9023 GB, free: 62.4 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.944e-05/0.2172, allocations: 4 kB / 0.9023 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.408e-05/0.2172, allocations: 0 / 0.9023 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.81e-05/0.2172, allocations: 15.97 kB / 0.9023 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.7e-05/0.2173, allocations: 45.58 kB / 0.9024 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.701e-05/0.2174, allocations: 43.91 kB / 0.9024 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.2174, allocations: 0 / 0.9024 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.874e-06/0.2174, allocations: 0 / 0.9024 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.2174, allocations: 0 / 0.9024 GB, free: 62.29 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.0005691/0.218, allocations: 383.4 kB / 0.9028 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.218, allocations: 12.03 kB / 0.9028 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.882e-05/0.2181, allocations: 0 / 0.9028 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001002/0.2182, allocations: 170.9 kB / 0.9029 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/0.2182, allocations: 4 kB / 0.9029 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.507e-05/0.2182, allocations: 8 kB / 0.903 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002114/0.2184, allocations: 85.58 kB / 0.903 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.2185, allocations: 4 kB / 0.903 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.325e-05/0.2185, allocations: 4 kB / 0.903 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.2185, allocations: 0 / 0.903 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002022/0.2187, allocations: 67.89 kB / 0.9031 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004161/0.2191, allocations: 312.7 kB / 0.9034 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001829/0.2193, allocations: 86.48 kB / 0.9035 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.2194, allocations: 52.83 kB / 0.9035 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.2195, allocations: 0 / 0.9035 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002269/0.2197, allocations: 95.36 kB / 0.9036 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=10): time 1.583e-06/0.2197, allocations: 0 / 0.9036 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10): time 0.0004498/0.2202, allocations: 189.6 kB / 0.9038 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.758e-05/0.2202, allocations: 59.36 kB / 0.9039 GB, free: 60.6 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.751e-05/0.2203, allocations: 105.8 kB / 0.904 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/0.2203, allocations: 37.7 kB / 0.904 GB, free: 60.44 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.008e-05/0.2204, allocations: 88.66 kB / 0.9041 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.507e-05/0.2204, allocations: 27.64 kB / 0.9041 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.31e-06/0.2204, allocations: 3.938 kB / 0.9041 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.77e-05/0.2205, allocations: 322.8 kB / 0.9044 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.2206, allocations: 39.92 kB / 0.9045 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.2207, allocations: 76.38 kB / 0.9045 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001194/0.2209, allocations: 47.98 kB / 0.9046 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2209, allocations: 0 / 0.9046 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002719/0.2211, allocations: 145.6 kB / 0.9047 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.2212, allocations: 8 kB / 0.9047 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.2212, allocations: 0 / 0.9047 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.2212, allocations: 4.094 kB / 0.9047 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.2213, allocations: 27.92 kB / 0.9048 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.2213, allocations: 3.984 kB / 0.9048 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.2e-05/0.2214, allocations: 23.84 kB / 0.9048 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.187e-06/0.2214, allocations: 4.25 kB / 0.9048 GB, free: 59.6 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 7.785e-05/0.2215, allocations: 129.7 kB / 0.9049 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.182e-05/0.2215, allocations: 7.906 kB / 0.9049 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003162/0.2219, allocations: 153.9 kB / 0.9051 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.2219, allocations: 8 kB / 0.9051 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.2219, allocations: 0 / 0.9051 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.2219, allocations: 7.969 kB / 0.9051 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004164/0.2223, allocations: 414.4 kB / 0.9055 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2223, allocations: 4 kB / 0.9055 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.731e-05/0.2224, allocations: 11.98 kB / 0.9055 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.2224, allocations: 4 kB / 0.9055 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.2224, allocations: 8 kB / 0.9055 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2224, allocations: 0 / 0.9055 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.2224, allocations: 3.953 kB / 0.9055 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002884/0.2227, allocations: 247.5 kB / 0.9057 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.194e-05/0.2228, allocations: 81.11 kB / 0.9058 GB, free: 58.44 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.257e-05/0.2228, allocations: 4 kB / 0.9058 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.2229, allocations: 15.92 kB / 0.9058 GB, free: 58.42 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.489e-05/0.223, allocations: 11.94 kB / 0.9059 GB, free: 58.41 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.637e-06/0.223, allocations: 4 kB / 0.9059 GB, free: 58.4 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.994e-05/0.223, allocations: 83.28 kB / 0.9059 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.223, allocations: 4 kB / 0.9059 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002138/0.2232, allocations: 16 kB / 0.906 GB, free: 58.3 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.0001022/0.2233, allocations: 107.2 kB / 0.9061 GB, free: 58.19 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002878/0.2236, allocations: 111.9 kB / 0.9062 GB, free: 58.08 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2236, allocations: 0 / 0.9062 GB, free: 58.08 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001249/0.2238, allocations: 55.91 kB / 0.9062 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002525/0.224, allocations: 6.516 kB / 0.9062 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000353/0.2244, allocations: 195.1 kB / 0.9064 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001238/0.2245, allocations: 0.6887 MB / 0.9071 GB, free: 57.08 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.419e-05/0.2246, allocations: 15.44 kB / 0.9071 GB, free: 57.06 MB / 0.6042 GB Notification: Performance of SimCode: time 2.2e-07/0.2246, allocations: 0 / 0.9071 GB, free: 57.06 MB / 0.6042 GB Notification: Performance of Templates: time 0.002188/0.2268, allocations: 0.9953 MB / 0.9081 GB, free: 56.07 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)