Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_8_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007431/0.0007432, allocations: 86.8 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007907/0.0007908, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.318/1.318, allocations: 205.4 MB / 222.1 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.57/1.57, allocations: 292.7 MB / 0.5499 GB, free: 14.55 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005197/0.0005199, allocations: 13.78 kB / 0.6738 GB, free: 26.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2247, allocations: 116.3 MB / 0.7874 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0008528/0.2256, allocations: 401.5 kB / 0.7878 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001323/0.2269, allocations: 1.029 MB / 0.7888 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.949e-05/0.227, allocations: 0 / 0.7888 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.254e-05/0.227, allocations: 7.922 kB / 0.7888 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.909e-05/0.2271, allocations: 0 / 0.7888 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002504/0.2274, allocations: 35.84 kB / 0.7888 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000102/0.2275, allocations: 43.84 kB / 0.7889 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.658e-05/0.2276, allocations: 4 kB / 0.7889 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.625e-05/0.2276, allocations: 23.92 kB / 0.7889 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.718e-05/0.2277, allocations: 15.98 kB / 0.7889 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.213e-05/0.2277, allocations: 3.938 kB / 0.7889 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.805e-05/0.2278, allocations: 19.97 kB / 0.7889 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.879e-05/0.2278, allocations: 7.984 kB / 0.789 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.808e-05/0.2279, allocations: 29.7 kB / 0.789 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.616e-05/0.228, allocations: 39.92 kB / 0.789 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.228, allocations: 0 / 0.789 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.603e-06/0.228, allocations: 0 / 0.789 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.9e-06/0.228, allocations: 0 / 0.789 GB, free: 10.17 MB / 0.6075 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.0005482/0.2285, allocations: 367.5 kB / 0.7894 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.2286, allocations: 11.97 kB / 0.7894 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.14e-05/0.2286, allocations: 34.56 kB / 0.7894 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.944e-05/0.2287, allocations: 3.906 kB / 0.7894 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00013/0.2288, allocations: 171 kB / 0.7896 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.2288, allocations: 0 / 0.7896 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.749e-05/0.2289, allocations: 15.98 kB / 0.7896 GB, free: 9.484 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001958/0.2291, allocations: 61.66 kB / 0.7897 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.2291, allocations: 0 / 0.7897 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.2291, allocations: 8 kB / 0.7897 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.2291, allocations: 0 / 0.7897 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001797/0.2293, allocations: 55.89 kB / 0.7897 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004298/0.2297, allocations: 272.8 kB / 0.79 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001534/0.2299, allocations: 66.48 kB / 0.79 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.23, allocations: 36.97 kB / 0.7901 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.23, allocations: 0 / 0.7901 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/0.2302, allocations: 87.31 kB / 0.7902 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 2.915e-06/0.2303, allocations: 3.984 kB / 0.7902 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0004075/0.2307, allocations: 137.5 kB / 0.7903 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.021e-05/0.2307, allocations: 51.41 kB / 0.7903 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.409e-05/0.2308, allocations: 114 kB / 0.7905 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.573e-05/0.2308, allocations: 33.64 kB / 0.7905 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.95e-05/0.2309, allocations: 80.14 kB / 0.7906 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.241e-05/0.2309, allocations: 19.88 kB / 0.7906 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-06/0.2309, allocations: 0 / 0.7906 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001125/0.231, allocations: 314.8 kB / 0.7909 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.567e-05/0.2311, allocations: 39.95 kB / 0.7909 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001095/0.2313, allocations: 51.36 kB / 0.791 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001033/0.2314, allocations: 39.97 kB / 0.791 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2314, allocations: 0 / 0.791 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002692/0.2317, allocations: 113.6 kB / 0.7911 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.2317, allocations: 14.8 kB / 0.7911 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.2317, allocations: 0 / 0.7911 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.2317, allocations: 0 / 0.7911 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000107/0.2318, allocations: 19.92 kB / 0.7911 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.709e-06/0.2318, allocations: 4 kB / 0.7912 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.255e-05/0.2319, allocations: 7.938 kB / 0.7912 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/0.2319, allocations: 11.95 kB / 0.7912 GB, free: 7.73 MB / 0.6075 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 8.396e-05/0.232, allocations: 117.8 kB / 0.7913 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.267e-05/0.232, allocations: 4 kB / 0.7913 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002749/0.2323, allocations: 114 kB / 0.7914 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-06/0.2323, allocations: 4 kB / 0.7914 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2323, allocations: 0 / 0.7914 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.2323, allocations: 0 / 0.7914 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004249/0.2328, allocations: 362.4 kB / 0.7917 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2328, allocations: 4 kB / 0.7917 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.65e-05/0.2329, allocations: 11.98 kB / 0.7918 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.2329, allocations: 0 / 0.7918 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.2329, allocations: 8 kB / 0.7918 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2329, allocations: 3.938 kB / 0.7918 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2329, allocations: 0 / 0.7918 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002815/0.2332, allocations: 203.5 kB / 0.792 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.983e-05/0.2333, allocations: 85.02 kB / 0.792 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.2333, allocations: 448 / 0.792 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.282e-05/0.2334, allocations: 11.98 kB / 0.7921 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.591e-05/0.2334, allocations: 7.938 kB / 0.7921 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.2334, allocations: 8 kB / 0.7921 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.65e-05/0.2335, allocations: 95.16 kB / 0.7922 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2335, allocations: 0 / 0.7922 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002321/0.2337, allocations: 12 kB / 0.7922 GB, free: 6.594 MB / 0.6075 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.0006136/0.2344, allocations: 0.7359 MB / 0.7929 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002335/0.2346, allocations: 75.89 kB / 0.793 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2346, allocations: 0 / 0.793 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.2347, allocations: 39.97 kB / 0.793 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002504/0.235, allocations: 4 kB / 0.793 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009422/0.2359, allocations: 0.4974 MB / 0.7935 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002644/0.2362, allocations: 0.6809 MB / 0.7942 GB, free: 4.449 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.478e-05/0.2363, allocations: 8.172 kB / 0.7942 GB, free: 4.438 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.897e-05/0.2363, allocations: 19.38 kB / 0.7942 GB, free: 4.418 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.2363, allocations: 0 / 0.7942 GB, free: 4.418 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01106/0.2474, allocations: 1.467 MB / 0.7956 GB, free: 3.082 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001757/0.2476, allocations: 193.2 kB / 0.7958 GB, free: 2.84 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.653/1.901, allocations: 0 / 0.7958 GB, free: 2.84 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) Environment - environmentSimulation: