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.451/1.451, allocations: 251.9 MB / 266.9 MB, free: 11.05 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.001273/0.001272, allocations: 172.7 kB / 326.5 MB, free: 2.258 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.085/2.085, allocations: 205.4 MB / 0.5775 GB, free: 20.55 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.0009403/0.0009406, allocations: 89.75 kB / 0.6821 GB, free: 13.36 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000318/0.000318, allocations: 8.719 kB / 0.7963 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2038/0.2041, allocations: 106.3 MB / 0.9002 GB, free: 64.38 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.00162/0.2058, allocations: 1.1 MB / 0.9012 GB, free: 63.26 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004665/0.2063, allocations: 218.3 kB / 0.9014 GB, free: 63.05 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.583e-05/0.2063, allocations: 4 kB / 0.9015 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.573e-05/0.2063, allocations: 3.938 kB / 0.9015 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.39e-05/0.2064, allocations: 7.984 kB / 0.9015 GB, free: 63.03 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001813/0.2066, allocations: 19.97 kB / 0.9015 GB, free: 63.01 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.831e-05/0.2067, allocations: 31.91 kB / 0.9015 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.726e-05/0.2068, allocations: 8 kB / 0.9015 GB, free: 62.97 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.048e-05/0.2069, allocations: 15.91 kB / 0.9015 GB, free: 62.96 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.748e-05/0.2069, allocations: 19.92 kB / 0.9016 GB, free: 62.94 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.825e-05/0.207, allocations: 0 / 0.9016 GB, free: 62.94 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.305e-05/0.207, allocations: 4 kB / 0.9016 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.867e-05/0.207, allocations: 7.984 kB / 0.9016 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.853e-05/0.207, allocations: 29.7 kB / 0.9016 GB, free: 62.89 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.837e-05/0.2071, allocations: 31.94 kB / 0.9016 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.2071, allocations: 3.938 kB / 0.9016 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2071, allocations: 0 / 0.9016 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.2072, allocations: 0 / 0.9016 GB, free: 62.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.0005114/0.2077, allocations: 363.5 kB / 0.902 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.2077, allocations: 12.03 kB / 0.902 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.938e-05/0.2078, allocations: 42.5 kB / 0.902 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.882e-05/0.2078, allocations: 3.984 kB / 0.902 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.529e-05/0.2079, allocations: 167 kB / 0.9022 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.2079, allocations: 3.984 kB / 0.9022 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.615e-05/0.208, allocations: 4 kB / 0.9022 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002439/0.2082, allocations: 73.66 kB / 0.9023 GB, free: 62.1 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.2082, allocations: 4 kB / 0.9023 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.2082, allocations: 4 kB / 0.9023 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.2083, allocations: 0 / 0.9023 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001804/0.2084, allocations: 55.89 kB / 0.9023 GB, free: 62.04 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003618/0.2088, allocations: 276.8 kB / 0.9026 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001486/0.209, allocations: 62.55 kB / 0.9027 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.209, allocations: 7.984 kB / 0.9027 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002067/0.2092, allocations: 83.52 kB / 0.9027 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.913e-06/0.2092, allocations: 0 / 0.9027 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0003888/0.2096, allocations: 137.6 kB / 0.9029 GB, free: 61.4 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.917e-05/0.2097, allocations: 59.33 kB / 0.9029 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.561e-05/0.2097, allocations: 113.7 kB / 0.903 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.089e-05/0.2098, allocations: 25.7 kB / 0.9031 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.444e-05/0.2098, allocations: 92.12 kB / 0.9031 GB, free: 61.09 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.673e-05/0.2098, allocations: 11.81 kB / 0.9032 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.987e-06/0.2098, allocations: 4 kB / 0.9032 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.783e-05/0.2099, allocations: 322.8 kB / 0.9035 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.973e-05/0.21, allocations: 27.98 kB / 0.9035 GB, free: 60.72 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.477e-05/0.2101, allocations: 64.2 kB / 0.9036 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.298e-05/0.2102, allocations: 35.98 kB / 0.9036 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.2102, allocations: 0 / 0.9036 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002265/0.2104, allocations: 129.4 kB / 0.9037 GB, free: 60.47 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.2104, allocations: 4 kB / 0.9037 GB, free: 60.47 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.2105, allocations: 4 kB / 0.9037 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.2105, allocations: 3.938 kB / 0.9037 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.536e-05/0.2106, allocations: 19.98 kB / 0.9037 GB, free: 60.44 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.2106, allocations: 128 / 0.9037 GB, free: 60.44 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.24e-05/0.2107, allocations: 23.94 kB / 0.9038 GB, free: 60.42 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-06/0.2107, allocations: 4.312 kB / 0.9038 GB, free: 60.41 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 5.84e-05/0.2107, allocations: 121.7 kB / 0.9039 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.176e-05/0.2108, allocations: 7.906 kB / 0.9039 GB, free: 60.28 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002505/0.211, allocations: 126 kB / 0.904 GB, free: 60.15 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.211, allocations: 4 kB / 0.904 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.211, allocations: 0 / 0.904 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.211, allocations: 0 / 0.904 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003986/0.2114, allocations: 370.4 kB / 0.9044 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2115, allocations: 0 / 0.9044 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.21e-05/0.2116, allocations: 16.23 kB / 0.9044 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.2116, allocations: 0 / 0.9044 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.2116, allocations: 8 kB / 0.9044 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.2116, allocations: 0 / 0.9044 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2116, allocations: 7.953 kB / 0.9044 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003242/0.212, allocations: 211.4 kB / 0.9046 GB, free: 59.47 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.547e-05/0.212, allocations: 77.11 kB / 0.9047 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.503e-05/0.212, allocations: 8 kB / 0.9047 GB, free: 59.37 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/0.2122, allocations: 15.98 kB / 0.9047 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.21e-05/0.2122, allocations: 4.172 kB / 0.9047 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.761e-05/0.2123, allocations: 7.953 kB / 0.9047 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.841e-05/0.2123, allocations: 87.22 kB / 0.9048 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.1e-07/0.2123, allocations: 0 / 0.9048 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000358/0.2127, allocations: 8 kB / 0.9048 GB, free: 59.25 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.000535/0.2132, allocations: 0.7436 MB / 0.9055 GB, free: 58.48 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003279/0.2136, allocations: 87.86 kB / 0.9056 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2136, allocations: 0 / 0.9056 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001519/0.2137, allocations: 35.98 kB / 0.9056 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002526/0.214, allocations: 8.234 kB / 0.9057 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000746/0.2148, allocations: 0.9727 MB / 0.9066 GB, free: 57.3 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001524/0.2149, allocations: 0.6887 MB / 0.9073 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.468e-05/0.215, allocations: 4.188 kB / 0.9073 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.302e-05/0.215, allocations: 19.42 kB / 0.9073 GB, free: 56.57 MB / 0.6042 GB Notification: Performance of SimCode: time 2.8e-07/0.2151, allocations: 4 kB / 0.9073 GB, free: 56.56 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0128/0.2279, allocations: 1.375 MB / 0.9086 GB, free: 55.36 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000194/0.2281, allocations: 204.7 kB / 0.9088 GB, free: 55.11 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.464/1.692, allocations: 0 / 0.9088 GB, free: 55.11 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)