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.395/1.395, allocations: 251.9 MB / 266.9 MB, free: 11.01 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.001203/0.001203, allocations: 180.6 kB / 326.5 MB, free: 2.227 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.124/2.124, allocations: 205.4 MB / 0.5775 GB, free: 20.27 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.000865/0.0008649, allocations: 93.16 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004676/0.0004677, allocations: 10.97 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.3157, allocations: 106.4 MB / 0.9002 GB, free: 63.81 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002591/0.3184, allocations: 1.088 MB / 0.9012 GB, free: 62.71 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006908/0.3191, allocations: 221.5 kB / 0.9014 GB, free: 62.49 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.904e-05/0.3192, allocations: 4 kB / 0.9014 GB, free: 62.49 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.54e-05/0.3193, allocations: 0 / 0.9014 GB, free: 62.49 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001098/0.3194, allocations: 3.938 kB / 0.9014 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002311/0.3196, allocations: 15.97 kB / 0.9015 GB, free: 62.47 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.836e-05/0.3197, allocations: 23.97 kB / 0.9015 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/0.3199, allocations: 15.98 kB / 0.9015 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.259e-05/0.32, allocations: 11.94 kB / 0.9015 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.097e-05/0.32, allocations: 19.91 kB / 0.9015 GB, free: 62.4 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.3201, allocations: 4 kB / 0.9015 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.382e-05/0.3201, allocations: 0 / 0.9015 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.408e-05/0.3201, allocations: 11.98 kB / 0.9015 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.755e-05/0.3202, allocations: 29.64 kB / 0.9016 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.714e-05/0.3203, allocations: 31.88 kB / 0.9016 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.3203, allocations: 0 / 0.9016 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.595e-06/0.3203, allocations: 4 kB / 0.9016 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.3203, allocations: 0 / 0.9016 GB, free: 62.31 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.0005763/0.3209, allocations: 359.5 kB / 0.902 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.321, allocations: 8.031 kB / 0.902 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.242e-05/0.321, allocations: 34.56 kB / 0.902 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.798e-05/0.3211, allocations: 7.984 kB / 0.902 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.937e-05/0.3212, allocations: 171 kB / 0.9022 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.3212, allocations: 0 / 0.9022 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.589e-05/0.3212, allocations: 4 kB / 0.9022 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002695/0.3215, allocations: 69.64 kB / 0.9022 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.3215, allocations: 3.938 kB / 0.9022 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.3215, allocations: 0 / 0.9022 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.3216, allocations: 8 kB / 0.9022 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002376/0.3218, allocations: 51.95 kB / 0.9023 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004699/0.3223, allocations: 276.8 kB / 0.9026 GB, free: 61.19 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000195/0.3225, allocations: 62.55 kB / 0.9026 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.3225, allocations: 0 / 0.9026 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002391/0.3228, allocations: 87.44 kB / 0.9027 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 1.774e-06/0.3228, allocations: 0 / 0.9027 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0004989/0.3233, allocations: 129.8 kB / 0.9028 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.869e-05/0.3234, allocations: 55.41 kB / 0.9029 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.099e-05/0.3234, allocations: 113.9 kB / 0.903 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.063e-05/0.3235, allocations: 25.7 kB / 0.903 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.525e-05/0.3235, allocations: 91.98 kB / 0.9031 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.344e-05/0.3235, allocations: 20.56 kB / 0.9031 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-06/0.3235, allocations: 0 / 0.9031 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.294e-05/0.3236, allocations: 322.8 kB / 0.9034 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.3237, allocations: 27.98 kB / 0.9035 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.3239, allocations: 59.47 kB / 0.9035 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001262/0.324, allocations: 31.98 kB / 0.9035 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.324, allocations: 0 / 0.9035 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003131/0.3243, allocations: 113.7 kB / 0.9036 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.3244, allocations: 4 kB / 0.9037 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.3244, allocations: 0 / 0.9037 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.3244, allocations: 7.938 kB / 0.9037 GB, free: 59.97 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.3245, allocations: 19.92 kB / 0.9037 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.3246, allocations: 0 / 0.9037 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.297e-05/0.3246, allocations: 19.94 kB / 0.9037 GB, free: 59.93 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.738e-06/0.3247, allocations: 4 kB / 0.9037 GB, free: 59.93 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 7.821e-05/0.3248, allocations: 117.8 kB / 0.9038 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.496e-05/0.3248, allocations: 3.953 kB / 0.9038 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003307/0.3251, allocations: 117.9 kB / 0.9039 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.3251, allocations: 0 / 0.9039 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.3251, allocations: 4 kB / 0.9039 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.3252, allocations: 4 kB / 0.9039 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004539/0.3256, allocations: 358.5 kB / 0.9043 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3256, allocations: 0 / 0.9043 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.262e-05/0.3257, allocations: 23.92 kB / 0.9043 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.3257, allocations: 0 / 0.9043 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.3257, allocations: 0 / 0.9043 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3258, allocations: 0 / 0.9043 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.3258, allocations: 3.953 kB / 0.9043 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003148/0.3261, allocations: 207.8 kB / 0.9045 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.171e-05/0.3261, allocations: 77.11 kB / 0.9046 GB, free: 58.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.034e-05/0.3261, allocations: 4.062 kB / 0.9046 GB, free: 58.92 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001362/0.3263, allocations: 15.98 kB / 0.9046 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.561e-05/0.3263, allocations: 7.984 kB / 0.9046 GB, free: 58.9 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-05/0.3264, allocations: 7.953 kB / 0.9046 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.741e-05/0.3264, allocations: 83.28 kB / 0.9047 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3264, allocations: 0 / 0.9047 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003723/0.3268, allocations: 12 kB / 0.9047 GB, free: 58.8 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.0005795/0.3274, allocations: 0.7396 MB / 0.9054 GB, free: 58.03 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002956/0.3277, allocations: 75.89 kB / 0.9055 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3277, allocations: 0 / 0.9055 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.3279, allocations: 35.97 kB / 0.9055 GB, free: 57.92 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.3281, allocations: 4 kB / 0.9055 GB, free: 57.92 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007488/0.3289, allocations: 0.8095 MB / 0.9063 GB, free: 57.04 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001458/0.3291, allocations: 0.6913 MB / 0.907 GB, free: 56.33 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.974e-05/0.3291, allocations: 7.922 kB / 0.907 GB, free: 56.32 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.198e-05/0.3292, allocations: 15.44 kB / 0.907 GB, free: 56.3 MB / 0.6042 GB Notification: Performance of SimCode: time 2.61e-07/0.3292, allocations: 0 / 0.907 GB, free: 56.3 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0141/0.3433, allocations: 1.309 MB / 0.9083 GB, free: 55.14 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002086/0.3436, allocations: 200.2 kB / 0.9085 GB, free: 54.89 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.399/1.743, allocations: 0 / 0.9085 GB, free: 54.89 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)