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.001226/0.001226, allocations: 105.4 kB / 15.7 MB, free: 24 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.001894/0.001894, allocations: 199.9 kB / 16.64 MB, free: 6.453 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.663/1.663, allocations: 205.1 MB / 222.5 MB, free: 4.562 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.91/1.91, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.0021/0.002101, allocations: 70.25 kB / 0.6718 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2873, allocations: 114.5 MB / 0.7837 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.00311/0.2905, allocations: 0.7709 MB / 0.7844 GB, free: 12.46 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001902/0.2925, allocations: 1.067 MB / 0.7855 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.894e-05/0.2925, allocations: 0 / 0.7855 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.621e-05/0.2926, allocations: 7.875 kB / 0.7855 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.475e-05/0.2927, allocations: 7.938 kB / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004155/0.2931, allocations: 55.81 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001499/0.2933, allocations: 71.78 kB / 0.7856 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.2935, allocations: 16.17 kB / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.867e-05/0.2936, allocations: 35.84 kB / 0.7856 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.724e-05/0.2936, allocations: 31.84 kB / 0.7857 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.085e-05/0.2937, allocations: 8 kB / 0.7857 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.372e-05/0.2937, allocations: 19.98 kB / 0.7857 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.216e-05/0.2938, allocations: 15.92 kB / 0.7857 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.509e-05/0.2939, allocations: 27.86 kB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001741/0.294, allocations: 91.95 kB / 0.7858 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2941, allocations: 0 / 0.7858 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.713e-06/0.2941, allocations: 0 / 0.7858 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.77e-06/0.2941, allocations: 0 / 0.7858 GB, free: 10.99 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.0006178/0.2947, allocations: 371.3 kB / 0.7862 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.2947, allocations: 8.031 kB / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.407e-05/0.2948, allocations: 42.73 kB / 0.7862 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.749e-05/0.2948, allocations: 4.844 kB / 0.7862 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001385/0.295, allocations: 176.2 kB / 0.7864 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.295, allocations: 12.31 kB / 0.7864 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.571e-05/0.295, allocations: 8.375 kB / 0.7864 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002194/0.2953, allocations: 73.91 kB / 0.7865 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.2953, allocations: 0 / 0.7865 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.2953, allocations: 0 / 0.7865 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.2953, allocations: 0 / 0.7865 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001752/0.2955, allocations: 47.89 kB / 0.7865 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00071/0.2962, allocations: 329.7 kB / 0.7869 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001697/0.2964, allocations: 62.59 kB / 0.7869 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.684e-05/0.2965, allocations: 28.95 kB / 0.7869 GB, free: 9.688 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.2965, allocations: 4 kB / 0.7869 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002166/0.2967, allocations: 79.36 kB / 0.787 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.442e-06/0.2968, allocations: 0 / 0.787 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004227/0.2972, allocations: 133.5 kB / 0.7871 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.029e-05/0.2972, allocations: 59.34 kB / 0.7872 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.2974, allocations: 117.8 kB / 0.7873 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.306e-05/0.2974, allocations: 33.7 kB / 0.7873 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.105e-05/0.2974, allocations: 88.12 kB / 0.7874 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.168e-05/0.2975, allocations: 19.73 kB / 0.7874 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.637e-05/0.2975, allocations: 29.7 kB / 0.7875 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001375/0.2977, allocations: 326.8 kB / 0.7878 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001052/0.2978, allocations: 23.98 kB / 0.7878 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/0.2979, allocations: 73.98 kB / 0.7879 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002259/0.2982, allocations: 109.8 kB / 0.788 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.2982, allocations: 0 / 0.788 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003282/0.2985, allocations: 137.5 kB / 0.7881 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.2985, allocations: 11.94 kB / 0.7881 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.2986, allocations: 0 / 0.7881 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.2986, allocations: 4 kB / 0.7881 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.2987, allocations: 19.92 kB / 0.7882 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.2987, allocations: 4 kB / 0.7882 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.472e-05/0.2988, allocations: 15.89 kB / 0.7882 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.49e-05/0.2988, allocations: 4 kB / 0.7882 GB, free: 8.305 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.0001034/0.2989, allocations: 123.3 kB / 0.7883 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.51e-05/0.299, allocations: 4 kB / 0.7883 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.958e-05/0.299, allocations: 8.375 kB / 0.7883 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.299, allocations: 4 kB / 0.7883 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.299, allocations: 3.984 kB / 0.7883 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.299, allocations: 0 / 0.7883 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000462/0.2995, allocations: 378.2 kB / 0.7887 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2995, allocations: 4 kB / 0.7887 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.166e-05/0.2996, allocations: 7.984 kB / 0.7887 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.2996, allocations: 0 / 0.7887 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.2996, allocations: 0 / 0.7887 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.2e-05/0.2996, allocations: 7.938 kB / 0.7887 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2996, allocations: 0 / 0.7887 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003075/0.2999, allocations: 211.3 kB / 0.7889 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.726e-05/0.3, allocations: 85.02 kB / 0.789 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.575e-05/0.3, allocations: 0 / 0.789 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.246e-05/0.3001, allocations: 11.92 kB / 0.789 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.48e-05/0.3001, allocations: 3.984 kB / 0.789 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.667e-06/0.3002, allocations: 8 kB / 0.789 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.632e-05/0.3002, allocations: 95.27 kB / 0.7891 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3002, allocations: 0 / 0.7891 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002585/0.3005, allocations: 16 kB / 0.7891 GB, free: 7.254 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.0006456/0.3011, allocations: 0.7368 MB / 0.7898 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002986/0.3015, allocations: 87.98 kB / 0.7899 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.3015, allocations: 0 / 0.7899 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001115/0.3016, allocations: 35.86 kB / 0.7899 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002728/0.3019, allocations: 18.58 kB / 0.79 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.3037, allocations: 1.51 MB / 0.7914 GB, free: 4.727 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003219/0.304, allocations: 0.6924 MB / 0.7921 GB, free: 4.008 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.011e-05/0.3041, allocations: 4 kB / 0.7921 GB, free: 4.004 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.083e-05/0.3042, allocations: 27.47 kB / 0.7921 GB, free: 3.98 MB / 0.6075 GB Notification: Performance of SimCode: time 2.31e-07/0.3042, allocations: 0 / 0.7921 GB, free: 3.98 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0222/0.3264, allocations: 2.078 MB / 0.7942 GB, free: 2.039 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.287/7.614, allocations: 7.109 kB / 0.7942 GB, free: 2.035 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --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)