Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.607/1.607, allocations: 288.4 MB / 303.3 MB, free: 8.082 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009269/0.0009269, allocations: 175.5 kB / 372 MB, free: 10.28 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.702/1.702, allocations: 205.4 MB / 0.6307 GB, free: 10.04 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001211/0.001211, allocations: 94.31 kB / 0.744 GB, free: 5.941 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006621/0.0006623, allocations: 11.78 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2518/0.2525, allocations: 115.3 MB / 0.9796 GB, free: 27.57 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0008175/0.2534, allocations: 390.1 kB / 0.98 GB, free: 27.19 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001122/0.2545, allocations: 1.029 MB / 0.981 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.826e-05/0.2545, allocations: 4 kB / 0.981 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.36e-05/0.2546, allocations: 3.938 kB / 0.981 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.546e-05/0.2546, allocations: 0 / 0.981 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002245/0.2549, allocations: 35.89 kB / 0.9811 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 6.518e-05/0.2549, allocations: 43.86 kB / 0.9811 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.488e-05/0.255, allocations: 7.984 kB / 0.9811 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.318e-05/0.2551, allocations: 12 kB / 0.9811 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.141e-05/0.2552, allocations: 23.89 kB / 0.9811 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.362e-05/0.2552, allocations: 4 kB / 0.9812 GB, free: 26.01 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.635e-05/0.2552, allocations: 15.92 kB / 0.9812 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.46e-05/0.2553, allocations: 4 kB / 0.9812 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.211e-05/0.2553, allocations: 33.64 kB / 0.9812 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 8.823e-05/0.2554, allocations: 43.91 kB / 0.9812 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.2554, allocations: 4 kB / 0.9812 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.413e-06/0.2554, allocations: 0 / 0.9812 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.2554, allocations: 0 / 0.9812 GB, free: 25.91 MB / 0.6198 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.0005063/0.2559, allocations: 359.5 kB / 0.9816 GB, free: 25.51 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.256, allocations: 12.02 kB / 0.9816 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.457e-05/0.256, allocations: 42.5 kB / 0.9816 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.628e-05/0.2561, allocations: 7.906 kB / 0.9817 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.746e-05/0.2562, allocations: 175 kB / 0.9818 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.2562, allocations: 0 / 0.9818 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.66e-05/0.2562, allocations: 7.984 kB / 0.9818 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000195/0.2564, allocations: 73.58 kB / 0.9819 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.2564, allocations: 0 / 0.9819 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.818e-06/0.2564, allocations: 0 / 0.9819 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.2565, allocations: 8 kB / 0.9819 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000187/0.2566, allocations: 47.97 kB / 0.9819 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003622/0.257, allocations: 280.8 kB / 0.9822 GB, free: 24.76 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001522/0.2572, allocations: 58.55 kB / 0.9823 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.5e-05/0.2573, allocations: 36.95 kB / 0.9823 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.2573, allocations: 4 kB / 0.9823 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001809/0.2575, allocations: 79.33 kB / 0.9824 GB, free: 24.56 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 1.332e-06/0.2575, allocations: 0 / 0.9824 GB, free: 24.56 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0003826/0.2579, allocations: 137.5 kB / 0.9825 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.174e-05/0.2579, allocations: 55.48 kB / 0.9826 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.517e-05/0.258, allocations: 118 kB / 0.9827 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.144e-05/0.258, allocations: 25.7 kB / 0.9827 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.129e-05/0.2581, allocations: 88.12 kB / 0.9828 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.601e-05/0.2581, allocations: 15.81 kB / 0.9828 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-06/0.2581, allocations: 4 kB / 0.9828 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.298e-05/0.2582, allocations: 310.8 kB / 0.9831 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.701e-05/0.2583, allocations: 31.97 kB / 0.9831 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001339/0.2584, allocations: 63.34 kB / 0.9832 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001018/0.2585, allocations: 27.98 kB / 0.9832 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2585, allocations: 0 / 0.9832 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002435/0.2588, allocations: 117.5 kB / 0.9833 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.2588, allocations: 4 kB / 0.9833 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.2588, allocations: 4 kB / 0.9833 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.2588, allocations: 0 / 0.9833 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.2589, allocations: 20.08 kB / 0.9834 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.259, allocations: 7.938 kB / 0.9834 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.702e-05/0.259, allocations: 15.92 kB / 0.9834 GB, free: 23.47 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.2591, allocations: 11.89 kB / 0.9834 GB, free: 23.46 MB / 0.6198 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.856e-05/0.2591, allocations: 113.8 kB / 0.9835 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.238e-06/0.2591, allocations: 0 / 0.9835 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002601/0.2594, allocations: 114 kB / 0.9836 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.2594, allocations: 4 kB / 0.9836 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.2594, allocations: 3.938 kB / 0.9836 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.2594, allocations: 3.938 kB / 0.9836 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003532/0.2598, allocations: 366.4 kB / 0.984 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.2598, allocations: 0 / 0.984 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.661e-05/0.2599, allocations: 11.98 kB / 0.984 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.2599, allocations: 0 / 0.984 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.2599, allocations: 0 / 0.984 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.2599, allocations: 0 / 0.984 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2599, allocations: 4 kB / 0.984 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002386/0.2602, allocations: 207.4 kB / 0.9842 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.968e-05/0.2602, allocations: 89.05 kB / 0.9843 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.451e-05/0.2602, allocations: 448 / 0.9843 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.454e-05/0.2603, allocations: 19.98 kB / 0.9843 GB, free: 22.44 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.666e-05/0.2603, allocations: 3.984 kB / 0.9843 GB, free: 22.44 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.2604, allocations: 8 kB / 0.9843 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.401e-05/0.2604, allocations: 87.23 kB / 0.9844 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2604, allocations: 0 / 0.9844 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002102/0.2606, allocations: 12 kB / 0.9844 GB, free: 22.33 MB / 0.6198 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.0004556/0.2611, allocations: 0.7397 MB / 0.9851 GB, free: 21.56 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002367/0.2613, allocations: 79.89 kB / 0.9852 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2613, allocations: 0 / 0.9852 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001021/0.2614, allocations: 31.98 kB / 0.9852 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002411/0.2617, allocations: 18.84 kB / 0.9852 GB, free: 21.44 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008133/0.2625, allocations: 0.4964 MB / 0.9857 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001329/0.2627, allocations: 0.6887 MB / 0.9864 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.214e-05/0.2627, allocations: 7.938 kB / 0.9864 GB, free: 20.16 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.741e-05/0.2627, allocations: 11.44 kB / 0.9864 GB, free: 20.15 MB / 0.6198 GB Notification: Performance of SimCode: time 2.21e-07/0.2627, allocations: 0 / 0.9864 GB, free: 20.15 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01178/0.2745, allocations: 1.478 MB / 0.9879 GB, free: 18.82 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000162/0.2747, allocations: 196 kB / 0.9881 GB, free: 18.59 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.575/1.85, allocations: 0 / 0.9881 GB, free: 18.59 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)