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.TriggeredSampler.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.TriggeredSampler,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",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.338/1.338, allocations: 251.5 MB / 266.7 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.0009669/0.000967, allocations: 161.8 kB / 325.8 MB, free: 2.727 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.516/1.516, allocations: 205 MB / 0.576 GB, free: 20.99 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.0007833/0.0007833, allocations: 86.34 kB / 0.6797 GB, free: 14.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003393/0.0003394, allocations: 14.94 kB / 0.7933 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1894/0.1897, allocations: 105.4 MB / 0.8962 GB, free: 68.16 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001393/0.1912, allocations: 1.21 MB / 0.8974 GB, free: 66.93 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003667/0.1915, allocations: 237.8 kB / 0.8976 GB, free: 66.7 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.222e-05/0.1916, allocations: 0 / 0.8976 GB, free: 66.7 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.916e-05/0.1916, allocations: 3.938 kB / 0.8976 GB, free: 66.69 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.663e-05/0.1917, allocations: 7.938 kB / 0.8976 GB, free: 66.68 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001483/0.1919, allocations: 23.97 kB / 0.8977 GB, free: 66.66 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.236e-05/0.192, allocations: 71.77 kB / 0.8977 GB, free: 66.59 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.99e-05/0.1921, allocations: 24.41 kB / 0.8977 GB, free: 66.56 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.732e-05/0.1921, allocations: 19.92 kB / 0.8978 GB, free: 66.54 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.365e-05/0.1922, allocations: 23.84 kB / 0.8978 GB, free: 66.52 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.978e-05/0.1922, allocations: 4 kB / 0.8978 GB, free: 66.52 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.083e-05/0.1922, allocations: 4 kB / 0.8978 GB, free: 66.51 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.803e-05/0.1922, allocations: 7.938 kB / 0.8978 GB, free: 66.5 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.524e-05/0.1923, allocations: 23.86 kB / 0.8978 GB, free: 66.48 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.327e-05/0.1924, allocations: 63.69 kB / 0.8979 GB, free: 66.42 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.1924, allocations: 4 kB / 0.8979 GB, free: 66.41 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.222e-06/0.1924, allocations: 3.938 kB / 0.8979 GB, free: 66.41 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.1924, allocations: 0 / 0.8979 GB, free: 66.41 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.0004315/0.1928, allocations: 375.4 kB / 0.8982 GB, free: 66 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.1929, allocations: 8.031 kB / 0.8983 GB, free: 65.99 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.903e-05/0.1929, allocations: 42.75 kB / 0.8983 GB, free: 65.94 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.609e-05/0.1929, allocations: 12.83 kB / 0.8983 GB, free: 65.93 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.556e-05/0.193, allocations: 172.2 kB / 0.8985 GB, free: 65.72 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.193, allocations: 4.375 kB / 0.8985 GB, free: 65.71 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.278e-05/0.1931, allocations: 4.375 kB / 0.8985 GB, free: 65.71 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00017/0.1932, allocations: 81.97 kB / 0.8986 GB, free: 65.62 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.1932, allocations: 7.875 kB / 0.8986 GB, free: 65.62 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.227e-06/0.1933, allocations: 4 kB / 0.8986 GB, free: 65.61 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.1933, allocations: 4 kB / 0.8986 GB, free: 65.61 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001741/0.1935, allocations: 59.94 kB / 0.8986 GB, free: 65.55 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000333/0.1938, allocations: 316.7 kB / 0.8989 GB, free: 65.19 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001774/0.194, allocations: 70.48 kB / 0.899 GB, free: 65.11 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.06e-05/0.1941, allocations: 40.97 kB / 0.899 GB, free: 65.07 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.1941, allocations: 7.984 kB / 0.899 GB, free: 65.06 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001898/0.1943, allocations: 87.36 kB / 0.8991 GB, free: 64.96 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=8): time 1.253e-06/0.1943, allocations: 0 / 0.8991 GB, free: 64.96 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8): time 0.0003606/0.1947, allocations: 157.5 kB / 0.8993 GB, free: 64.8 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.628e-05/0.1947, allocations: 55.41 kB / 0.8993 GB, free: 64.74 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.289e-05/0.1948, allocations: 113.8 kB / 0.8994 GB, free: 64.62 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/0.1948, allocations: 37.69 kB / 0.8995 GB, free: 64.57 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.912e-05/0.1948, allocations: 95.98 kB / 0.8996 GB, free: 64.48 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.73e-05/0.1948, allocations: 23.66 kB / 0.8996 GB, free: 64.45 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.307e-05/0.1949, allocations: 22.08 kB / 0.8996 GB, free: 64.43 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 3.985e-05/0.1949, allocations: 314.8 kB / 0.8999 GB, free: 64.11 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.325e-05/0.195, allocations: 39.97 kB / 0.9 GB, free: 64.07 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.971e-05/0.1951, allocations: 68.27 kB / 0.9 GB, free: 63.99 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001773/0.1953, allocations: 108.1 kB / 0.9001 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1953, allocations: 112 / 0.9001 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002272/0.1956, allocations: 137.4 kB / 0.9003 GB, free: 63.73 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/0.1956, allocations: 8 kB / 0.9003 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.1956, allocations: 0 / 0.9003 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.1956, allocations: 4 kB / 0.9003 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.287e-05/0.1957, allocations: 15.98 kB / 0.9003 GB, free: 63.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.1957, allocations: 8.062 kB / 0.9003 GB, free: 63.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.13e-05/0.1958, allocations: 27.92 kB / 0.9003 GB, free: 63.66 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-06/0.1958, allocations: 0 / 0.9003 GB, free: 63.66 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: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,$whenCondition1,booPul.pulseStart,$PRE.booPul.pulseStart,booPul.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.781e-05/0.1959, allocations: 117.8 kB / 0.9004 GB, free: 63.54 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.12e-05/0.1959, allocations: 7.906 kB / 0.9004 GB, free: 63.53 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002486/0.1961, allocations: 138.2 kB / 0.9006 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.1962, allocations: 0 / 0.9006 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1962, allocations: 0 / 0.9006 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.1962, allocations: 3.938 kB / 0.9006 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003668/0.1965, allocations: 406.6 kB / 0.901 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1966, allocations: 0 / 0.901 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.264e-05/0.1966, allocations: 15.92 kB / 0.901 GB, free: 62.92 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1966, allocations: 0 / 0.901 GB, free: 62.92 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.1966, allocations: 11.94 kB / 0.901 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.1966, allocations: 0 / 0.901 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1966, allocations: 0 / 0.901 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000219/0.1969, allocations: 215.4 kB / 0.9012 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.755e-05/0.1969, allocations: 85.02 kB / 0.9013 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.1969, allocations: 7.938 kB / 0.9013 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.197, allocations: 19.97 kB / 0.9013 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.85e-05/0.1971, allocations: 4 kB / 0.9013 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.1971, allocations: 7.984 kB / 0.9013 GB, free: 62.54 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.773e-05/0.1971, allocations: 87.28 kB / 0.9014 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1971, allocations: 0 / 0.9014 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002026/0.1973, allocations: 20 kB / 0.9014 GB, free: 62.43 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: 6 (booPul.y,$whenCondition2,$whenCondition1,booPul.pulseStart,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003859/0.1977, allocations: 0.7633 MB / 0.9022 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002245/0.1979, allocations: 87.83 kB / 0.9022 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.198, allocations: 0 / 0.9022 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001/0.1981, allocations: 52.16 kB / 0.9023 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002455/0.1983, allocations: 16.14 kB / 0.9023 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.1995, allocations: 1.534 MB / 0.9038 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001007/0.1997, allocations: 0.6944 MB / 0.9045 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 2.954e-05/0.1997, allocations: 4 kB / 0.9045 GB, free: 59.13 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.068e-05/0.1997, allocations: 23.42 kB / 0.9045 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of SimCode: time 2.6e-07/0.1997, allocations: 0 / 0.9045 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01129/0.211, allocations: 1.722 MB / 0.9062 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001465/0.2112, allocations: 229.5 kB / 0.9064 GB, free: 57.3 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.472/1.683, allocations: 0 / 0.9064 GB, free: 57.3 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)