Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",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.001086/0.001086, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 194.2 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.53/1.53, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.827/1.827, allocations: 292.3 MB / 0.5489 GB, free: 13.53 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.003054/0.003054, allocations: 72.66 kB / 0.6716 GB, free: 25.96 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2964/0.2995, allocations: 114.5 MB / 0.7835 GB, free: 13.47 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002588/0.3022, allocations: 0.7596 MB / 0.7842 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001536/0.3037, allocations: 1.07 MB / 0.7853 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.303e-05/0.3038, allocations: 0 / 0.7853 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.907e-05/0.3039, allocations: 11.86 kB / 0.7853 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.581e-05/0.304, allocations: 15.88 kB / 0.7853 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003467/0.3043, allocations: 47.89 kB / 0.7854 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001171/0.3044, allocations: 71.72 kB / 0.7854 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.3046, allocations: 20.17 kB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.788e-05/0.3047, allocations: 31.91 kB / 0.7855 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.412e-05/0.3048, allocations: 31.84 kB / 0.7855 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.173e-05/0.3048, allocations: 8 kB / 0.7855 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.452e-05/0.3049, allocations: 19.98 kB / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.284e-05/0.3049, allocations: 11.98 kB / 0.7855 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.819e-05/0.305, allocations: 39.78 kB / 0.7856 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001876/0.3052, allocations: 79.97 kB / 0.7857 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.3052, allocations: 4 kB / 0.7857 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3052, allocations: 0 / 0.7857 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.61e-06/0.3052, allocations: 0 / 0.7857 GB, free: 11.23 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006118/0.3058, allocations: 371.3 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.3059, allocations: 8.031 kB / 0.786 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.227e-05/0.3059, allocations: 34.73 kB / 0.7861 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.186e-05/0.306, allocations: 16.84 kB / 0.7861 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001525/0.3062, allocations: 176.2 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.3062, allocations: 4.375 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.568e-05/0.3062, allocations: 4.375 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002272/0.3064, allocations: 77.95 kB / 0.7863 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.3065, allocations: 0 / 0.7863 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.3065, allocations: 0 / 0.7863 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.3065, allocations: 0 / 0.7863 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001885/0.3067, allocations: 51.89 kB / 0.7864 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006501/0.3073, allocations: 317.7 kB / 0.7867 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001641/0.3075, allocations: 58.59 kB / 0.7867 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.3076, allocations: 32.95 kB / 0.7868 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.603e-05/0.3077, allocations: 4 kB / 0.7868 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002447/0.3079, allocations: 79.36 kB / 0.7868 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.713e-06/0.3079, allocations: 4 kB / 0.7868 GB, free: 9.844 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004393/0.3084, allocations: 133.5 kB / 0.787 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.035e-05/0.3084, allocations: 59.34 kB / 0.787 GB, free: 9.637 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.3085, allocations: 117.8 kB / 0.7871 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.3086, allocations: 29.7 kB / 0.7872 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.448e-05/0.3086, allocations: 88.12 kB / 0.7873 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.301e-05/0.3087, allocations: 23.73 kB / 0.7873 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.143e-05/0.3087, allocations: 33.64 kB / 0.7873 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001372/0.3089, allocations: 326.8 kB / 0.7876 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/0.309, allocations: 27.98 kB / 0.7876 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.3091, allocations: 69.98 kB / 0.7877 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000242/0.3094, allocations: 109.8 kB / 0.7878 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3094, allocations: 0 / 0.7878 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003295/0.3097, allocations: 133.4 kB / 0.7879 GB, free: 8.613 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.3098, allocations: 8 kB / 0.788 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3098, allocations: 0 / 0.788 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.3098, allocations: 4 kB / 0.788 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.3099, allocations: 19.98 kB / 0.788 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.31, allocations: 8.156 kB / 0.788 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.606e-05/0.3101, allocations: 15.89 kB / 0.788 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.503e-05/0.3101, allocations: 4 kB / 0.788 GB, free: 8.555 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001007/0.3102, allocations: 123.6 kB / 0.7881 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.493e-05/0.3102, allocations: 4 kB / 0.7881 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.148e-05/0.3103, allocations: 8.375 kB / 0.7881 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.3103, allocations: 3.984 kB / 0.7881 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3103, allocations: 0 / 0.7881 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3103, allocations: 0 / 0.7881 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005016/0.3108, allocations: 382.6 kB / 0.7885 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3108, allocations: 0 / 0.7885 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.481e-05/0.3109, allocations: 7.984 kB / 0.7885 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.3109, allocations: 0 / 0.7885 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.3109, allocations: 4 kB / 0.7885 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.3109, allocations: 3.938 kB / 0.7885 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3109, allocations: 80 / 0.7885 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000337/0.3112, allocations: 211.3 kB / 0.7887 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.004e-05/0.3113, allocations: 85.02 kB / 0.7888 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.977e-05/0.3113, allocations: 0 / 0.7888 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.309e-05/0.3114, allocations: 15.86 kB / 0.7888 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.879e-05/0.3115, allocations: 11.98 kB / 0.7888 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-06/0.3115, allocations: 4 kB / 0.7888 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.936e-05/0.3116, allocations: 91.92 kB / 0.7889 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3116, allocations: 0 / 0.7889 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000269/0.3118, allocations: 20 kB / 0.7889 GB, free: 7.5 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: 6 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.00065/0.3125, allocations: 0.7439 MB / 0.7897 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002902/0.3128, allocations: 83.86 kB / 0.7897 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3128, allocations: 0 / 0.7897 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001104/0.3129, allocations: 31.92 kB / 0.7898 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/0.3132, allocations: 24.3 kB / 0.7898 GB, free: 6.594 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/0.3151, allocations: 1.519 MB / 0.7913 GB, free: 4.957 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002691/0.3153, allocations: 0.6923 MB / 0.792 GB, free: 4.238 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.91e-05/0.3154, allocations: 4 kB / 0.792 GB, free: 4.234 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.195e-05/0.3154, allocations: 23.42 kB / 0.792 GB, free: 4.215 MB / 0.6075 GB Notification: Performance of SimCode: time 7.22e-07/0.3154, allocations: 0 / 0.792 GB, free: 4.215 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01983/0.3353, allocations: 2.048 MB / 0.794 GB, free: 2.289 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.911/8.246, allocations: 9.156 kB / 0.794 GB, free: 2.281 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1)