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.ZeroOrderHold.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.449/1.449, allocations: 252 MB / 267.3 MB, free: 10.84 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.001115/0.001115, allocations: 180.8 kB / 327 MB, free: 2.09 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.111/2.111, allocations: 205.4 MB / 0.578 GB, free: 20.16 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.001126/0.001126, allocations: 86.38 kB / 0.6826 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003329/0.000333, allocations: 11 kB / 0.7971 GB, free: 134.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2207, allocations: 106.3 MB / 0.9009 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001328/0.222, allocations: 1.109 MB / 0.902 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004029/0.2225, allocations: 232.2 kB / 0.9022 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.784e-05/0.2225, allocations: 0 / 0.9022 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.986e-05/0.2225, allocations: 3.938 kB / 0.9022 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.22e-05/0.2226, allocations: 4 kB / 0.9022 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001689/0.2228, allocations: 27.91 kB / 0.9023 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.589e-05/0.2229, allocations: 43.84 kB / 0.9023 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.717e-05/0.223, allocations: 8 kB / 0.9023 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.725e-05/0.223, allocations: 19.86 kB / 0.9023 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.245e-05/0.2231, allocations: 23.91 kB / 0.9024 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.735e-05/0.2231, allocations: 0 / 0.9024 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.095e-05/0.2231, allocations: 4 kB / 0.9024 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.958e-05/0.2231, allocations: 7.984 kB / 0.9024 GB, free: 61.74 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.841e-05/0.2232, allocations: 41.58 kB / 0.9024 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.49e-05/0.2233, allocations: 51.84 kB / 0.9025 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.2233, allocations: 0 / 0.9025 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.764e-06/0.2233, allocations: 0 / 0.9025 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.787e-06/0.2233, allocations: 0 / 0.9025 GB, free: 61.64 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.0004393/0.2237, allocations: 359.7 kB / 0.9028 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.2238, allocations: 8.031 kB / 0.9028 GB, free: 61.23 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.114e-05/0.2238, allocations: 42.75 kB / 0.9029 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.541e-05/0.2238, allocations: 4.922 kB / 0.9029 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.796e-05/0.2239, allocations: 168.3 kB / 0.903 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.005e-05/0.2239, allocations: 384 / 0.903 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.888e-06/0.2239, allocations: 4.375 kB / 0.903 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000176/0.2241, allocations: 74.16 kB / 0.9031 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.2241, allocations: 3.938 kB / 0.9031 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.919e-06/0.2242, allocations: 11.94 kB / 0.9031 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.2242, allocations: 4 kB / 0.9031 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001696/0.2243, allocations: 47.95 kB / 0.9032 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003067/0.2247, allocations: 280.8 kB / 0.9034 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001422/0.2248, allocations: 70.42 kB / 0.9035 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.218e-05/0.2249, allocations: 36.95 kB / 0.9035 GB, free: 60.39 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.972e-05/0.2249, allocations: 4 kB / 0.9035 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001875/0.2251, allocations: 83.44 kB / 0.9036 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.2251, allocations: 0 / 0.9036 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0003744/0.2255, allocations: 137.5 kB / 0.9037 GB, free: 60.15 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.2256, allocations: 59.34 kB / 0.9038 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.601e-05/0.2256, allocations: 105.8 kB / 0.9039 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.1e-05/0.2257, allocations: 29.7 kB / 0.9039 GB, free: 59.93 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.585e-05/0.2257, allocations: 80.14 kB / 0.904 GB, free: 59.85 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.668e-05/0.2257, allocations: 23.8 kB / 0.904 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.119e-06/0.2257, allocations: 0 / 0.904 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.212e-05/0.2258, allocations: 322.8 kB / 0.9043 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.742e-05/0.2259, allocations: 27.97 kB / 0.9044 GB, free: 59.47 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.644e-05/0.226, allocations: 68.27 kB / 0.9044 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001831/0.2262, allocations: 100.2 kB / 0.9045 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2262, allocations: 0 / 0.9045 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002505/0.2264, allocations: 133.5 kB / 0.9047 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.2264, allocations: 4 kB / 0.9047 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.2265, allocations: 0 / 0.9047 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.2265, allocations: 4 kB / 0.9047 GB, free: 59.13 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.674e-05/0.2266, allocations: 20.23 kB / 0.9047 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.2266, allocations: 7.938 kB / 0.9047 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.037e-05/0.2267, allocations: 15.98 kB / 0.9047 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.784e-06/0.2267, allocations: 8 kB / 0.9047 GB, free: 59.08 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.759e-05/0.2267, allocations: 121.7 kB / 0.9048 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.019e-05/0.2268, allocations: 3.906 kB / 0.9048 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002487/0.227, allocations: 122 kB / 0.9049 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.227, allocations: 3.984 kB / 0.9049 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.227, allocations: 0 / 0.9049 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/0.227, allocations: 3.938 kB / 0.905 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003342/0.2274, allocations: 366.9 kB / 0.9053 GB, free: 58.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.2274, allocations: 7.938 kB / 0.9053 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.986e-05/0.2275, allocations: 19.98 kB / 0.9053 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.2275, allocations: 0 / 0.9053 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.797e-06/0.2275, allocations: 0 / 0.9053 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2275, allocations: 192 / 0.9053 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2275, allocations: 0 / 0.9053 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002316/0.2277, allocations: 227.3 kB / 0.9055 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.802e-05/0.2278, allocations: 77.11 kB / 0.9056 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.574e-05/0.2278, allocations: 0 / 0.9056 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.863e-05/0.2279, allocations: 11.98 kB / 0.9056 GB, free: 58.03 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.844e-05/0.2279, allocations: 15.92 kB / 0.9056 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.237e-05/0.2279, allocations: 4 kB / 0.9056 GB, free: 58.01 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.2e-05/0.228, allocations: 83.28 kB / 0.9057 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.228, allocations: 0 / 0.9057 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002082/0.2282, allocations: 12 kB / 0.9057 GB, free: 57.92 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003992/0.2286, allocations: 0.7397 MB / 0.9065 GB, free: 57.15 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.000216/0.2288, allocations: 87.86 kB / 0.9065 GB, free: 57.07 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2288, allocations: 4 kB / 0.9066 GB, free: 57.06 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 9.631e-05/0.2289, allocations: 31.98 kB / 0.9066 GB, free: 57.03 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002289/0.2292, allocations: 11.92 kB / 0.9066 GB, free: 57.02 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.2304, allocations: 1.449 MB / 0.908 GB, free: 55.46 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001507/0.2305, allocations: 0.6835 MB / 0.9087 GB, free: 54.76 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.376e-05/0.2306, allocations: 7.984 kB / 0.9087 GB, free: 54.75 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.36e-05/0.2306, allocations: 15.44 kB / 0.9087 GB, free: 54.73 MB / 0.6042 GB Notification: Performance of SimCode: time 2.9e-07/0.2306, allocations: 3.938 kB / 0.9087 GB, free: 54.73 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.066/0.2966, allocations: 1.396 MB / 0.9101 GB, free: 53.5 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003778/0.2971, allocations: 225.8 kB / 0.9103 GB, free: 53.24 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.701/1.998, allocations: 0 / 0.9103 GB, free: 53.24 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)