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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",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.568/1.568, allocations: 252 MB / 267 MB, free: 10.96 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.001155/0.001155, allocations: 178.2 kB / 326.6 MB, free: 2.227 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.904/1.904, allocations: 205.4 MB / 0.5777 GB, free: 20.32 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.0007432/0.0007431, allocations: 99.52 kB / 0.6823 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003145/0.0003146, allocations: 9.875 kB / 0.7965 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2185/0.2188, allocations: 106.3 MB / 0.9003 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001537/0.2204, allocations: 1.116 MB / 0.9014 GB, free: 62.71 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004816/0.2209, allocations: 232.2 kB / 0.9016 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.317e-05/0.221, allocations: 0 / 0.9016 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.7e-05/0.221, allocations: 3.938 kB / 0.9016 GB, free: 62.47 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.46e-05/0.2211, allocations: 7.984 kB / 0.9016 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001713/0.2212, allocations: 35.84 kB / 0.9017 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.807e-05/0.2213, allocations: 59.84 kB / 0.9017 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.18e-05/0.2214, allocations: 4 kB / 0.9017 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.09e-05/0.2215, allocations: 23.91 kB / 0.9018 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.704e-05/0.2216, allocations: 27.91 kB / 0.9018 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.151e-05/0.2216, allocations: 4 kB / 0.9018 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.509e-05/0.2216, allocations: 4 kB / 0.9018 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.678e-05/0.2217, allocations: 7.984 kB / 0.9018 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.223e-05/0.2217, allocations: 45.64 kB / 0.9018 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.611e-05/0.2218, allocations: 43.88 kB / 0.9019 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2218, allocations: 0 / 0.9019 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2218, allocations: 0 / 0.9019 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.2218, allocations: 0 / 0.9019 GB, free: 62.21 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.0005723/0.2224, allocations: 375.5 kB / 0.9022 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.2224, allocations: 8.031 kB / 0.9022 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.594e-05/0.2225, allocations: 42.55 kB / 0.9023 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.445e-05/0.2225, allocations: 7.906 kB / 0.9023 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.546e-05/0.2226, allocations: 167 kB / 0.9025 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.389e-05/0.2227, allocations: 7.938 kB / 0.9025 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.089e-05/0.2227, allocations: 8 kB / 0.9025 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002683/0.223, allocations: 81.64 kB / 0.9026 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.223, allocations: 4 kB / 0.9026 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.41e-05/0.223, allocations: 4 kB / 0.9026 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.223, allocations: 0 / 0.9026 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002961/0.2233, allocations: 63.89 kB / 0.9026 GB, free: 61.35 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004656/0.2238, allocations: 316.7 kB / 0.9029 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002484/0.2241, allocations: 86.47 kB / 0.903 GB, free: 60.9 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001745/0.2243, allocations: 56.83 kB / 0.9031 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.207e-05/0.2243, allocations: 0 / 0.9031 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00026/0.2246, allocations: 95.48 kB / 0.9031 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=10): time 1.744e-06/0.2246, allocations: 0 / 0.9031 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10): time 0.0006369/0.2252, allocations: 193.4 kB / 0.9033 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/0.2253, allocations: 59.36 kB / 0.9034 GB, free: 60.47 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.555e-05/0.2254, allocations: 105.8 kB / 0.9035 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.2254, allocations: 37.7 kB / 0.9035 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.971e-05/0.2254, allocations: 88.28 kB / 0.9036 GB, free: 60.22 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.935e-05/0.2255, allocations: 27.64 kB / 0.9036 GB, free: 60.19 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.975e-06/0.2255, allocations: 0 / 0.9036 GB, free: 60.19 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.443e-05/0.2255, allocations: 318.8 kB / 0.9039 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.2257, allocations: 39.97 kB / 0.904 GB, free: 59.83 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002313/0.226, allocations: 75.39 kB / 0.9041 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001618/0.2261, allocations: 47.98 kB / 0.9041 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2261, allocations: 0 / 0.9041 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003712/0.2265, allocations: 149.6 kB / 0.9042 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.2265, allocations: 8 kB / 0.9042 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.2266, allocations: 0 / 0.9042 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.2266, allocations: 4.094 kB / 0.9043 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.2267, allocations: 27.98 kB / 0.9043 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.2267, allocations: 3.953 kB / 0.9043 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.61e-05/0.2268, allocations: 15.89 kB / 0.9043 GB, free: 59.49 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.054e-05/0.2269, allocations: 4 kB / 0.9043 GB, free: 59.48 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.28e-05/0.2269, allocations: 131.7 kB / 0.9044 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.673e-05/0.227, allocations: 7.906 kB / 0.9044 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003861/0.2274, allocations: 153.9 kB / 0.9046 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.2274, allocations: 0 / 0.9046 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2274, allocations: 7.984 kB / 0.9046 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.2274, allocations: 3.953 kB / 0.9046 GB, free: 59.17 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004853/0.2279, allocations: 422.8 kB / 0.905 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2279, allocations: 0 / 0.905 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.479e-05/0.228, allocations: 12.25 kB / 0.905 GB, free: 58.69 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.228, allocations: 7.984 kB / 0.905 GB, free: 58.68 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.228, allocations: 4 kB / 0.905 GB, free: 58.68 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.228, allocations: 7.953 kB / 0.905 GB, free: 58.67 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.228, allocations: 0 / 0.905 GB, free: 58.67 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003435/0.2284, allocations: 243.3 kB / 0.9053 GB, free: 58.42 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.871e-05/0.2284, allocations: 85.09 kB / 0.9053 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.94e-05/0.2284, allocations: 3.938 kB / 0.9053 GB, free: 58.31 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/0.2286, allocations: 11.98 kB / 0.9054 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.646e-05/0.2286, allocations: 11.89 kB / 0.9054 GB, free: 58.29 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.066e-05/0.2286, allocations: 11.98 kB / 0.9054 GB, free: 58.28 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.281e-05/0.2287, allocations: 79.28 kB / 0.9055 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2287, allocations: 4 kB / 0.9055 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002541/0.2289, allocations: 19.91 kB / 0.9055 GB, free: 58.18 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.0005118/0.2295, allocations: 0.7761 MB / 0.9062 GB, free: 57.38 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004474/0.2299, allocations: 107.9 kB / 0.9063 GB, free: 57.27 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2299, allocations: 0 / 0.9063 GB, free: 57.27 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.000241/0.2302, allocations: 60.38 kB / 0.9064 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004578/0.2307, allocations: 16.06 kB / 0.9064 GB, free: 57.2 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001384/0.2321, allocations: 0.5628 MB / 0.907 GB, free: 56.57 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001173/0.2322, allocations: 0.6887 MB / 0.9076 GB, free: 55.86 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.881e-05/0.2323, allocations: 4.438 kB / 0.9076 GB, free: 55.85 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.786e-05/0.2323, allocations: 19.42 kB / 0.9077 GB, free: 55.83 MB / 0.6042 GB Notification: Performance of SimCode: time 2.91e-07/0.2323, allocations: 4 kB / 0.9077 GB, free: 55.83 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01105/0.2434, allocations: 1.628 MB / 0.9092 GB, free: 54.38 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001611/0.2436, allocations: 205.4 kB / 0.9094 GB, free: 54.14 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.596/1.839, allocations: 0 / 0.9094 GB, free: 54.14 MB / 0.6042 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)