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.677/1.677, allocations: 288.2 MB / 303.2 MB, free: 8.102 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.001071/0.001071, allocations: 183.6 kB / 371.8 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.654/1.654, allocations: 205.4 MB / 0.6305 GB, free: 10.05 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.001025/0.001025, allocations: 93.27 kB / 0.7439 GB, free: 5.973 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004468/0.0004469, allocations: 12.16 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2581, allocations: 115.3 MB / 0.9795 GB, free: 27.62 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0009267/0.2591, allocations: 390.1 kB / 0.9799 GB, free: 27.24 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001377/0.2605, allocations: 1.029 MB / 0.9809 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.976e-05/0.2605, allocations: 0 / 0.9809 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.443e-05/0.2606, allocations: 0 / 0.9809 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.853e-05/0.2606, allocations: 11.98 kB / 0.9809 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002434/0.2609, allocations: 35.83 kB / 0.9809 GB, free: 26.15 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 6.269e-05/0.261, allocations: 27.97 kB / 0.9809 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.2611, allocations: 4 kB / 0.9809 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.289e-05/0.2612, allocations: 15.92 kB / 0.9809 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.421e-05/0.2612, allocations: 27.89 kB / 0.981 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.408e-05/0.2613, allocations: 0 / 0.981 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.612e-05/0.2613, allocations: 11.94 kB / 0.981 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.719e-05/0.2613, allocations: 11.98 kB / 0.981 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.478e-05/0.2614, allocations: 37.64 kB / 0.981 GB, free: 26.01 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 9.604e-05/0.2615, allocations: 39.91 kB / 0.9811 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.2615, allocations: 0 / 0.9811 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.823e-06/0.2615, allocations: 0 / 0.9811 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.59e-06/0.2615, allocations: 0 / 0.9811 GB, free: 25.97 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.0005555/0.2621, allocations: 363.5 kB / 0.9814 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.2621, allocations: 16.02 kB / 0.9814 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.899e-05/0.2622, allocations: 34.56 kB / 0.9815 GB, free: 25.51 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.973e-05/0.2622, allocations: 3.906 kB / 0.9815 GB, free: 25.51 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.809e-05/0.2623, allocations: 179 kB / 0.9816 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.2623, allocations: 0 / 0.9816 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.74e-05/0.2624, allocations: 4 kB / 0.9816 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001991/0.2626, allocations: 69.67 kB / 0.9817 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.2626, allocations: 0 / 0.9817 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.2626, allocations: 3.984 kB / 0.9817 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.2626, allocations: 7.922 kB / 0.9817 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001814/0.2628, allocations: 47.97 kB / 0.9818 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004063/0.2632, allocations: 280.8 kB / 0.982 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001737/0.2634, allocations: 54.55 kB / 0.9821 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.742e-05/0.2634, allocations: 8.062 kB / 0.9821 GB, free: 24.76 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002199/0.2637, allocations: 87.38 kB / 0.9822 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 1.532e-06/0.2637, allocations: 0 / 0.9822 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0004173/0.2641, allocations: 137.5 kB / 0.9823 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.233e-05/0.2642, allocations: 55.41 kB / 0.9824 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.839e-05/0.2642, allocations: 105.8 kB / 0.9825 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.2643, allocations: 25.7 kB / 0.9825 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.609e-05/0.2643, allocations: 84.14 kB / 0.9826 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.08e-05/0.2643, allocations: 11.81 kB / 0.9826 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.753e-06/0.2643, allocations: 4 kB / 0.9826 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.603e-05/0.2644, allocations: 326.8 kB / 0.9829 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.127e-05/0.2645, allocations: 31.86 kB / 0.9829 GB, free: 23.85 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.804e-05/0.2646, allocations: 59.39 kB / 0.983 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.933e-05/0.2647, allocations: 35.98 kB / 0.983 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.2647, allocations: 0 / 0.983 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002326/0.265, allocations: 113.5 kB / 0.9831 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.265, allocations: 8 kB / 0.9831 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.265, allocations: 0 / 0.9831 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.265, allocations: 4 kB / 0.9831 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.2652, allocations: 19.92 kB / 0.9832 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.2652, allocations: 0 / 0.9832 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.713e-05/0.2652, allocations: 24.02 kB / 0.9832 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.2653, allocations: 0 / 0.9832 GB, free: 23.57 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.472e-05/0.2653, allocations: 117.8 kB / 0.9833 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.247e-06/0.2653, allocations: 4 kB / 0.9833 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002687/0.2656, allocations: 118 kB / 0.9834 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.2656, allocations: 3.984 kB / 0.9834 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.2656, allocations: 0.5625 kB / 0.9834 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.2657, allocations: 0 / 0.9834 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003832/0.266, allocations: 370.4 kB / 0.9838 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2661, allocations: 0 / 0.9838 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.595e-05/0.2661, allocations: 15.94 kB / 0.9838 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.2661, allocations: 0 / 0.9838 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.2661, allocations: 3.984 kB / 0.9838 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2662, allocations: 0 / 0.9838 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2662, allocations: 0 / 0.9838 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002465/0.2664, allocations: 203.5 kB / 0.984 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.491e-05/0.2664, allocations: 81.02 kB / 0.9841 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.838e-05/0.2665, allocations: 3.984 kB / 0.9841 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.96e-05/0.2666, allocations: 12 kB / 0.9841 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.065e-05/0.2666, allocations: 7.984 kB / 0.9841 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.446e-05/0.2666, allocations: 8 kB / 0.9841 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.951e-05/0.2667, allocations: 83.27 kB / 0.9842 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2667, allocations: 3.938 kB / 0.9842 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002299/0.2669, allocations: 15.95 kB / 0.9842 GB, free: 22.44 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.0005075/0.2674, allocations: 0.7437 MB / 0.9849 GB, free: 21.67 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002514/0.2677, allocations: 79.88 kB / 0.985 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2677, allocations: 0 / 0.985 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.2678, allocations: 35.97 kB / 0.985 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002039/0.268, allocations: 4.094 kB / 0.985 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006421/0.2687, allocations: 0.8212 MB / 0.9858 GB, free: 20.67 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001297/0.2688, allocations: 0.6848 MB / 0.9865 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.574e-05/0.2689, allocations: 8.422 kB / 0.9865 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.634e-05/0.2689, allocations: 15.44 kB / 0.9865 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of SimCode: time 2.11e-07/0.2689, allocations: 0 / 0.9865 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01339/0.2823, allocations: 1.454 MB / 0.9879 GB, free: 18.62 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001613/0.2825, allocations: 203 kB / 0.9881 GB, free: 18.38 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.574/1.857, allocations: 0 / 0.9881 GB, free: 18.38 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)