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.Sampler.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.Sampler,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",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.41/1.41, allocations: 252 MB / 267 MB, free: 10.98 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.001067/0.001066, allocations: 188.1 kB / 326.6 MB, free: 2.223 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.617/1.617, allocations: 205.4 MB / 0.5777 GB, free: 20.54 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.000758/0.0007579, allocations: 83.73 kB / 0.6823 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003312/0.0003314, allocations: 9.406 kB / 0.7965 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2082/0.2086, allocations: 106.3 MB / 0.9003 GB, free: 64.19 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001396/0.21, allocations: 1.089 MB / 0.9014 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003726/0.2104, allocations: 216.3 kB / 0.9016 GB, free: 62.87 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.581e-05/0.2104, allocations: 0 / 0.9016 GB, free: 62.87 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.423e-05/0.2105, allocations: 3.938 kB / 0.9016 GB, free: 62.87 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.989e-05/0.2105, allocations: 3.984 kB / 0.9016 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001654/0.2107, allocations: 23.92 kB / 0.9016 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.078e-05/0.2108, allocations: 35.92 kB / 0.9017 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 7.699e-05/0.2109, allocations: 7.984 kB / 0.9017 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.337e-05/0.2109, allocations: 23.92 kB / 0.9017 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.17e-05/0.211, allocations: 15.91 kB / 0.9017 GB, free: 62.76 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.467e-05/0.211, allocations: 3.938 kB / 0.9017 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.173e-05/0.211, allocations: 4 kB / 0.9017 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.563e-05/0.211, allocations: 4 kB / 0.9017 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.535e-05/0.2111, allocations: 33.64 kB / 0.9017 GB, free: 62.71 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.214e-05/0.2111, allocations: 27.94 kB / 0.9018 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.2111, allocations: 0 / 0.9018 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.793e-06/0.2112, allocations: 0 / 0.9018 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.429e-06/0.2112, allocations: 0 / 0.9018 GB, free: 62.68 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004323/0.2116, allocations: 367.5 kB / 0.9021 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.2116, allocations: 8.031 kB / 0.9021 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.401e-05/0.2117, allocations: 42.55 kB / 0.9022 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.528e-05/0.2117, allocations: 0 / 0.9022 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.052e-05/0.2118, allocations: 175 kB / 0.9023 GB, free: 62 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.2118, allocations: 0 / 0.9023 GB, free: 62 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.154e-05/0.2118, allocations: 8 kB / 0.9023 GB, free: 62 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001862/0.212, allocations: 69.59 kB / 0.9024 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.212, allocations: 0 / 0.9024 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.817e-06/0.212, allocations: 0 / 0.9024 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.2121, allocations: 4 kB / 0.9024 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001843/0.2122, allocations: 59.94 kB / 0.9025 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003047/0.2126, allocations: 272.8 kB / 0.9027 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001511/0.2127, allocations: 66.48 kB / 0.9028 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.402e-05/0.2128, allocations: 36.95 kB / 0.9028 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.733e-05/0.2129, allocations: 0 / 0.9028 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001791/0.213, allocations: 79.38 kB / 0.9029 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.213, allocations: 4 kB / 0.9029 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0003673/0.2134, allocations: 129.6 kB / 0.903 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.151e-05/0.2135, allocations: 67.34 kB / 0.9031 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.828e-05/0.2135, allocations: 105.9 kB / 0.9032 GB, free: 61.01 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.356e-06/0.2135, allocations: 25.7 kB / 0.9032 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.647e-05/0.2136, allocations: 91.97 kB / 0.9033 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.622e-05/0.2136, allocations: 15.81 kB / 0.9033 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.948e-06/0.2136, allocations: 0 / 0.9033 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 3.739e-05/0.2136, allocations: 314.8 kB / 0.9036 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.979e-05/0.2137, allocations: 35.97 kB / 0.9037 GB, free: 60.52 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000104/0.2138, allocations: 51.41 kB / 0.9037 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.287e-05/0.2139, allocations: 39.92 kB / 0.9037 GB, free: 60.42 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2139, allocations: 0 / 0.9037 GB, free: 60.42 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002216/0.2142, allocations: 113.6 kB / 0.9039 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.2142, allocations: 8 kB / 0.9039 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.2142, allocations: 0 / 0.9039 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.2142, allocations: 0 / 0.9039 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.703e-05/0.2143, allocations: 15.98 kB / 0.9039 GB, free: 60.28 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.2143, allocations: 4 kB / 0.9039 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.333e-05/0.2144, allocations: 11.95 kB / 0.9039 GB, free: 60.26 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-06/0.2144, allocations: 4 kB / 0.9039 GB, free: 60.26 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: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 6.545e-05/0.2145, allocations: 121.8 kB / 0.904 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.228e-05/0.2145, allocations: 7.906 kB / 0.904 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002585/0.2148, allocations: 110.5 kB / 0.9041 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2148, allocations: 4 kB / 0.9041 GB, free: 60 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2148, allocations: 3.938 kB / 0.9041 GB, free: 60 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.2148, allocations: 0 / 0.9041 GB, free: 60 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003524/0.2152, allocations: 370.6 kB / 0.9045 GB, free: 59.58 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2152, allocations: 4 kB / 0.9045 GB, free: 59.58 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.919e-05/0.2152, allocations: 15.98 kB / 0.9045 GB, free: 59.56 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.2153, allocations: 0 / 0.9045 GB, free: 59.56 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.804e-06/0.2153, allocations: 4 kB / 0.9045 GB, free: 59.56 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.2153, allocations: 0 / 0.9045 GB, free: 59.56 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2153, allocations: 4 kB / 0.9045 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000238/0.2155, allocations: 211.4 kB / 0.9047 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.118e-05/0.2156, allocations: 84.98 kB / 0.9048 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.531e-05/0.2156, allocations: 0 / 0.9048 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.746e-05/0.2157, allocations: 11.98 kB / 0.9048 GB, free: 59.22 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.688e-05/0.2157, allocations: 7.953 kB / 0.9048 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.2157, allocations: 4 kB / 0.9048 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.444e-05/0.2158, allocations: 91.27 kB / 0.9049 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2158, allocations: 0 / 0.9049 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002005/0.216, allocations: 8 kB / 0.9049 GB, free: 59.11 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 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0004291/0.2164, allocations: 0.7358 MB / 0.9056 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.000226/0.2167, allocations: 71.89 kB / 0.9057 GB, free: 58.28 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2167, allocations: 0 / 0.9057 GB, free: 58.28 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.2168, allocations: 44.28 kB / 0.9057 GB, free: 58.23 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002436/0.217, allocations: 7.938 kB / 0.9057 GB, free: 58.23 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008129/0.2179, allocations: 497.8 kB / 0.9062 GB, free: 57.68 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001515/0.218, allocations: 0.6848 MB / 0.9069 GB, free: 56.97 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.323e-05/0.2181, allocations: 3.938 kB / 0.9069 GB, free: 56.96 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.538e-05/0.2181, allocations: 15.44 kB / 0.9069 GB, free: 56.95 MB / 0.6042 GB Notification: Performance of SimCode: time 3.1e-07/0.2181, allocations: 3.938 kB / 0.9069 GB, free: 56.95 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01316/0.2313, allocations: 1.341 MB / 0.9082 GB, free: 55.76 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001689/0.2315, allocations: 200.2 kB / 0.9084 GB, free: 55.52 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.582/1.814, allocations: 0 / 0.9084 GB, free: 55.52 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)