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.637/1.637, allocations: 252 MB / 267.3 MB, free: 10.83 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.001076/0.001076, allocations: 166.3 kB / 327 MB, free: 2.082 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.062/2.062, allocations: 205.4 MB / 0.578 GB, free: 20.11 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.001017/0.001017, allocations: 85.61 kB / 0.6826 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004261/0.0004262, allocations: 8.531 kB / 0.7971 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2598, allocations: 106.3 MB / 0.9009 GB, free: 63.37 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002077/0.262, allocations: 1.109 MB / 0.902 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005503/0.2626, allocations: 220.2 kB / 0.9022 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.52e-05/0.2627, allocations: 0 / 0.9022 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.724e-05/0.2627, allocations: 3.984 kB / 0.9022 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.098e-05/0.2628, allocations: 7.938 kB / 0.9022 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002343/0.263, allocations: 23.97 kB / 0.9022 GB, free: 61.99 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.517e-05/0.2631, allocations: 39.86 kB / 0.9023 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.2633, allocations: 11.98 kB / 0.9023 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.541e-05/0.2634, allocations: 15.88 kB / 0.9023 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.343e-05/0.2634, allocations: 19.92 kB / 0.9023 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.315e-05/0.2634, allocations: 4 kB / 0.9023 GB, free: 61.9 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.392e-05/0.2635, allocations: 0 / 0.9023 GB, free: 61.9 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.773e-05/0.2635, allocations: 7.984 kB / 0.9023 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 6.137e-05/0.2636, allocations: 49.56 kB / 0.9024 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001061/0.2637, allocations: 35.86 kB / 0.9024 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2637, allocations: 0 / 0.9024 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.595e-06/0.2637, allocations: 0 / 0.9024 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.2637, allocations: 0 / 0.9024 GB, free: 61.8 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.0005882/0.2643, allocations: 368.6 kB / 0.9028 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.646e-05/0.2644, allocations: 8.031 kB / 0.9028 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.931e-05/0.2644, allocations: 38.75 kB / 0.9028 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.188e-05/0.2645, allocations: 0.9375 kB / 0.9028 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.2646, allocations: 172.4 kB / 0.903 GB, free: 61.13 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.2646, allocations: 384 / 0.903 GB, free: 61.13 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.662e-05/0.2646, allocations: 4.375 kB / 0.903 GB, free: 61.13 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002243/0.2649, allocations: 78.14 kB / 0.9031 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.2649, allocations: 3.938 kB / 0.9031 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.2649, allocations: 4 kB / 0.9031 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.2649, allocations: 0 / 0.9031 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001834/0.2651, allocations: 51.97 kB / 0.9031 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003999/0.2655, allocations: 272.7 kB / 0.9034 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001672/0.2657, allocations: 74.47 kB / 0.9035 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001259/0.2658, allocations: 32.97 kB / 0.9035 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.2659, allocations: 3.938 kB / 0.9035 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000203/0.2661, allocations: 83.38 kB / 0.9036 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 1.362e-06/0.2661, allocations: 0 / 0.9036 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0004119/0.2665, allocations: 129.6 kB / 0.9037 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.021e-05/0.2666, allocations: 59.34 kB / 0.9037 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.367e-05/0.2666, allocations: 113.8 kB / 0.9039 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.2667, allocations: 25.7 kB / 0.9039 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.48e-05/0.2667, allocations: 88.08 kB / 0.904 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.023e-05/0.2667, allocations: 15.8 kB / 0.904 GB, free: 60 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.04e-06/0.2667, allocations: 0 / 0.904 GB, free: 60 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.782e-05/0.2668, allocations: 322.8 kB / 0.9043 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.71e-05/0.2669, allocations: 35.91 kB / 0.9043 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001011/0.267, allocations: 47.5 kB / 0.9044 GB, free: 59.58 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.2672, allocations: 91.33 kB / 0.9045 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2672, allocations: 0 / 0.9045 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002369/0.2675, allocations: 113.6 kB / 0.9046 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.2675, allocations: 8 kB / 0.9046 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.2675, allocations: 0 / 0.9046 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.2676, allocations: 0 / 0.9046 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.2677, allocations: 19.92 kB / 0.9046 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.938e-06/0.2677, allocations: 8.094 kB / 0.9046 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.236e-05/0.2678, allocations: 8 kB / 0.9046 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-06/0.2678, allocations: 4 kB / 0.9046 GB, free: 59.31 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.679e-05/0.2679, allocations: 121.8 kB / 0.9047 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.497e-05/0.2679, allocations: 7.906 kB / 0.9047 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002799/0.2682, allocations: 122.4 kB / 0.9048 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.2682, allocations: 0 / 0.9048 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2682, allocations: 0 / 0.9048 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.2682, allocations: 0 / 0.9048 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003796/0.2686, allocations: 370.5 kB / 0.9052 GB, free: 58.63 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2686, allocations: 0 / 0.9052 GB, free: 58.63 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.063e-05/0.2687, allocations: 15.92 kB / 0.9052 GB, free: 58.62 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.2687, allocations: 0 / 0.9052 GB, free: 58.62 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.2687, allocations: 4 kB / 0.9052 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.2687, allocations: 0 / 0.9052 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.2687, allocations: 0 / 0.9052 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002743/0.269, allocations: 211.3 kB / 0.9054 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.74e-05/0.269, allocations: 77.11 kB / 0.9055 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.773e-05/0.2691, allocations: 0 / 0.9055 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.295e-05/0.2692, allocations: 15.98 kB / 0.9055 GB, free: 58.28 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.139e-05/0.2692, allocations: 11.94 kB / 0.9055 GB, free: 58.27 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.2692, allocations: 0 / 0.9055 GB, free: 58.27 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.382e-05/0.2693, allocations: 91.2 kB / 0.9056 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2693, allocations: 0 / 0.9056 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002205/0.2695, allocations: 12 kB / 0.9056 GB, free: 58.17 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 (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.0005329/0.27, allocations: 0.7358 MB / 0.9063 GB, free: 57.41 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002368/0.2703, allocations: 75.89 kB / 0.9064 GB, free: 57.33 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2703, allocations: 3.938 kB / 0.9064 GB, free: 57.33 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.2704, allocations: 36.34 kB / 0.9064 GB, free: 57.29 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/0.2707, allocations: 16.12 kB / 0.9065 GB, free: 57.28 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001322/0.272, allocations: 1.4 MB / 0.9078 GB, free: 55.78 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001607/0.2722, allocations: 0.6809 MB / 0.9085 GB, free: 55.07 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.754e-05/0.2722, allocations: 7.734 kB / 0.9085 GB, free: 55.06 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.612e-05/0.2723, allocations: 11.44 kB / 0.9085 GB, free: 55.05 MB / 0.6042 GB Notification: Performance of SimCode: time 3.71e-07/0.2723, allocations: 0 / 0.9085 GB, free: 55.05 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01207/0.2844, allocations: 1.354 MB / 0.9098 GB, free: 53.84 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001578/0.2846, allocations: 208.1 kB / 0.91 GB, free: 53.59 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.686/1.971, allocations: 4 kB / 0.91 GB, free: 53.59 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)