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.326/1.326, allocations: 251.5 MB / 266.7 MB, free: 11.02 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.001139/0.001139, allocations: 175.8 kB / 325.8 MB, free: 2.695 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.476/1.476, allocations: 205 MB / 0.576 GB, free: 21 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.0007269/0.000727, allocations: 97.52 kB / 0.6797 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003083/0.0003084, allocations: 10.78 kB / 0.7933 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1881/0.1885, allocations: 105.4 MB / 0.8962 GB, free: 68.05 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001439/0.1899, allocations: 1.135 MB / 0.8973 GB, free: 66.9 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004688/0.1904, allocations: 253.8 kB / 0.8976 GB, free: 66.65 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.489e-05/0.1905, allocations: 0 / 0.8976 GB, free: 66.65 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3.247e-05/0.1906, allocations: 0 / 0.8976 GB, free: 66.65 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.282e-05/0.1906, allocations: 3.938 kB / 0.8976 GB, free: 66.64 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001762/0.1908, allocations: 23.92 kB / 0.8976 GB, free: 66.62 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.547e-05/0.1909, allocations: 67.83 kB / 0.8977 GB, free: 66.55 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.363e-05/0.191, allocations: 12.27 kB / 0.8977 GB, free: 66.54 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.658e-05/0.1911, allocations: 27.92 kB / 0.8977 GB, free: 66.52 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.932e-05/0.1911, allocations: 23.91 kB / 0.8977 GB, free: 66.49 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.762e-05/0.1912, allocations: 0 / 0.8977 GB, free: 66.49 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.297e-05/0.1912, allocations: 4 kB / 0.8977 GB, free: 66.49 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.094e-05/0.1912, allocations: 15.92 kB / 0.8977 GB, free: 66.47 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.069e-05/0.1912, allocations: 27.86 kB / 0.8978 GB, free: 66.45 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.094e-05/0.1913, allocations: 59.75 kB / 0.8978 GB, free: 66.39 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.1914, allocations: 0 / 0.8978 GB, free: 66.39 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.382e-06/0.1914, allocations: 0 / 0.8978 GB, free: 66.39 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.1914, allocations: 0 / 0.8978 GB, free: 66.39 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.0004783/0.1919, allocations: 375.4 kB / 0.8982 GB, free: 65.97 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.1919, allocations: 15.97 kB / 0.8982 GB, free: 65.95 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.661e-05/0.1919, allocations: 34.75 kB / 0.8982 GB, free: 65.91 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.079e-05/0.192, allocations: 8.844 kB / 0.8982 GB, free: 65.9 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.899e-05/0.1921, allocations: 168.4 kB / 0.8984 GB, free: 65.7 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/0.1921, allocations: 12.31 kB / 0.8984 GB, free: 65.69 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.1921, allocations: 4.375 kB / 0.8984 GB, free: 65.68 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001957/0.1923, allocations: 86.2 kB / 0.8985 GB, free: 65.59 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.1923, allocations: 3.938 kB / 0.8985 GB, free: 65.59 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.1923, allocations: 0 / 0.8985 GB, free: 65.59 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.78e-06/0.1924, allocations: 4 kB / 0.8985 GB, free: 65.59 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/0.1925, allocations: 67.89 kB / 0.8986 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003902/0.1929, allocations: 316.6 kB / 0.8989 GB, free: 65.16 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001696/0.1931, allocations: 90.52 kB / 0.899 GB, free: 65.06 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.1932, allocations: 52.83 kB / 0.899 GB, free: 65.01 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/0.1933, allocations: 4.125 kB / 0.899 GB, free: 65 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001988/0.1935, allocations: 91.38 kB / 0.8991 GB, free: 64.9 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=10): time 2.091e-05/0.1935, allocations: 0 / 0.8991 GB, free: 64.9 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10): time 0.0004221/0.1939, allocations: 189.5 kB / 0.8993 GB, free: 64.71 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.964e-05/0.194, allocations: 59.38 kB / 0.8993 GB, free: 64.64 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.696e-05/0.194, allocations: 113.8 kB / 0.8994 GB, free: 64.52 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.429e-05/0.1941, allocations: 29.7 kB / 0.8995 GB, free: 64.48 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.774e-05/0.1941, allocations: 84.38 kB / 0.8995 GB, free: 64.39 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.179e-05/0.1941, allocations: 23.7 kB / 0.8996 GB, free: 64.37 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.457e-05/0.1942, allocations: 21.72 kB / 0.8996 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.374e-05/0.1942, allocations: 326.9 kB / 0.8999 GB, free: 64.02 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.1943, allocations: 47.84 kB / 0.8999 GB, free: 63.97 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001066/0.1944, allocations: 80.33 kB / 0.9 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002015/0.1946, allocations: 111.3 kB / 0.9001 GB, free: 63.76 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1946, allocations: 4 kB / 0.9001 GB, free: 63.75 MB / 0.6042 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002738/0.1949, allocations: 153.4 kB / 0.9003 GB, free: 63.6 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.195, allocations: 6.812 kB / 0.9003 GB, free: 63.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.195, allocations: 0 / 0.9003 GB, free: 63.59 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.195, allocations: 8.094 kB / 0.9003 GB, free: 63.59 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.1951, allocations: 19.98 kB / 0.9003 GB, free: 63.57 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.1951, allocations: 7.938 kB / 0.9003 GB, free: 63.56 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.716e-05/0.1952, allocations: 19.92 kB / 0.9003 GB, free: 63.54 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.867e-06/0.1952, allocations: 4.25 kB / 0.9003 GB, free: 63.54 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 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.874e-05/0.1953, allocations: 122.2 kB / 0.9005 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.374e-05/0.1953, allocations: 11.91 kB / 0.9005 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000294/0.1956, allocations: 157.9 kB / 0.9006 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.1956, allocations: 4 kB / 0.9006 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1956, allocations: 0 / 0.9006 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.1956, allocations: 0 / 0.9006 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003908/0.196, allocations: 422.3 kB / 0.901 GB, free: 62.76 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.196, allocations: 0 / 0.901 GB, free: 62.76 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.482e-05/0.1961, allocations: 19.98 kB / 0.901 GB, free: 62.74 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.1961, allocations: 4 kB / 0.9011 GB, free: 62.74 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.1961, allocations: 3.984 kB / 0.9011 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.1961, allocations: 3.938 kB / 0.9011 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1961, allocations: 4 kB / 0.9011 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002783/0.1964, allocations: 243.3 kB / 0.9013 GB, free: 62.47 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.891e-05/0.1965, allocations: 85.02 kB / 0.9014 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.1965, allocations: 7.984 kB / 0.9014 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.89e-05/0.1966, allocations: 8 kB / 0.9014 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.779e-05/0.1966, allocations: 11.92 kB / 0.9014 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-06/0.1966, allocations: 4 kB / 0.9014 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.694e-05/0.1967, allocations: 87.27 kB / 0.9015 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1967, allocations: 4 kB / 0.9015 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002162/0.1969, allocations: 16 kB / 0.9015 GB, free: 62.23 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 (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.0004575/0.1974, allocations: 0.779 MB / 0.9023 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002652/0.1976, allocations: 107.9 kB / 0.9024 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1977, allocations: 0 / 0.9024 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001163/0.1978, allocations: 56.09 kB / 0.9024 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002396/0.198, allocations: 12.5 kB / 0.9024 GB, free: 61.26 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.1993, allocations: 1.531 MB / 0.9039 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001206/0.1995, allocations: 0.6887 MB / 0.9046 GB, free: 58.92 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.502e-05/0.1995, allocations: 4.438 kB / 0.9046 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.493e-05/0.1995, allocations: 23.42 kB / 0.9046 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of SimCode: time 2.41e-07/0.1996, allocations: 0 / 0.9046 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01173/0.2113, allocations: 1.61 MB / 0.9062 GB, free: 57.45 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001517/0.2115, allocations: 224.6 kB / 0.9064 GB, free: 57.19 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.542/1.753, allocations: 0 / 0.9064 GB, free: 57.19 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)