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.0009618/0.0009623, allocations: 98.27 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00662/0.00662, allocations: 169 kB / 16.26 MB, free: 6.652 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.358/1.358, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.631/1.631, allocations: 292.7 MB / 0.5502 GB, free: 14.46 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.0004701/0.0004701, allocations: 14.38 kB / 0.6744 GB, free: 25.9 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1993/0.1998, allocations: 116.3 MB / 0.788 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.0008104/0.2006, allocations: 493.2 kB / 0.7885 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001197/0.2018, allocations: 1.075 MB / 0.7895 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.524e-05/0.2019, allocations: 0 / 0.7895 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.834e-05/0.2019, allocations: 3.938 kB / 0.7895 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.212e-05/0.202, allocations: 3.938 kB / 0.7896 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002381/0.2022, allocations: 43.95 kB / 0.7896 GB, free: 9.844 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.674e-05/0.2023, allocations: 75.72 kB / 0.7897 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.794e-05/0.2024, allocations: 20.16 kB / 0.7897 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.537e-05/0.2025, allocations: 23.92 kB / 0.7897 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.843e-05/0.2025, allocations: 27.84 kB / 0.7897 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.476e-05/0.2026, allocations: 4 kB / 0.7897 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.795e-05/0.2026, allocations: 15.98 kB / 0.7898 GB, free: 9.676 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.667e-05/0.2027, allocations: 11.98 kB / 0.7898 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.788e-05/0.2027, allocations: 57.48 kB / 0.7898 GB, free: 9.602 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001149/0.2029, allocations: 75.95 kB / 0.7899 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.2029, allocations: 4 kB / 0.7899 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2029, allocations: 0 / 0.7899 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.958e-06/0.2029, allocations: 0 / 0.7899 GB, free: 9.523 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.0004582/0.2034, allocations: 367.3 kB / 0.7902 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.2034, allocations: 12.03 kB / 0.7903 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.39e-05/0.2034, allocations: 34.69 kB / 0.7903 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.688e-05/0.2035, allocations: 8.844 kB / 0.7903 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001014/0.2036, allocations: 176.2 kB / 0.7905 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.2036, allocations: 8.375 kB / 0.7905 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.572e-05/0.2036, allocations: 8.359 kB / 0.7905 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001839/0.2038, allocations: 69.98 kB / 0.7905 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.62e-06/0.2038, allocations: 0 / 0.7905 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.2038, allocations: 4 kB / 0.7906 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.848e-06/0.2038, allocations: 3.938 kB / 0.7906 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.204, allocations: 55.95 kB / 0.7906 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005748/0.2046, allocations: 328.8 kB / 0.7909 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001685/0.2048, allocations: 62.58 kB / 0.791 GB, free: 8.25 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.2049, allocations: 36.97 kB / 0.791 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.361e-05/0.2049, allocations: 0 / 0.791 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002195/0.2052, allocations: 83.36 kB / 0.7911 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.2052, allocations: 3.938 kB / 0.7911 GB, free: 8.113 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004254/0.2056, allocations: 153.5 kB / 0.7912 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/0.2057, allocations: 51.41 kB / 0.7913 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.921e-05/0.2058, allocations: 125.7 kB / 0.7914 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.2058, allocations: 33.7 kB / 0.7914 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.774e-05/0.2059, allocations: 88.14 kB / 0.7915 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.984e-05/0.2059, allocations: 15.75 kB / 0.7915 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.34e-05/0.2059, allocations: 21.7 kB / 0.7916 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.206, allocations: 326.7 kB / 0.7919 GB, free: 7.262 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.2062, allocations: 31.98 kB / 0.7919 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001354/0.2063, allocations: 86.41 kB / 0.792 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002383/0.2065, allocations: 117.8 kB / 0.7921 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2066, allocations: 4 kB / 0.7921 GB, free: 6.984 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002997/0.2069, allocations: 137.4 kB / 0.7922 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.2069, allocations: 8.203 kB / 0.7922 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.2069, allocations: 8 kB / 0.7923 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.2069, allocations: 0 / 0.7923 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.207, allocations: 27.92 kB / 0.7923 GB, free: 6.801 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.2071, allocations: 4 kB / 0.7923 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.281e-05/0.2071, allocations: 11.98 kB / 0.7923 GB, free: 6.785 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/0.2072, allocations: 4 kB / 0.7923 GB, free: 6.781 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 8.629e-05/0.2073, allocations: 124.6 kB / 0.7924 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.436e-05/0.2073, allocations: 11.91 kB / 0.7924 GB, free: 6.641 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.703e-05/0.2073, allocations: 4.375 kB / 0.7924 GB, free: 6.637 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.2073, allocations: 8 kB / 0.7924 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.2073, allocations: 0 / 0.7924 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.2073, allocations: 3.984 kB / 0.7924 GB, free: 6.625 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004774/0.2078, allocations: 386.3 kB / 0.7928 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.2078, allocations: 0 / 0.7928 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.652e-05/0.2079, allocations: 15.98 kB / 0.7928 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.2079, allocations: 0 / 0.7928 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.2079, allocations: 0 / 0.7928 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.135e-06/0.2079, allocations: 3.938 kB / 0.7928 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/0.2079, allocations: 7.938 kB / 0.7928 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002843/0.2082, allocations: 211.5 kB / 0.793 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.639e-05/0.2083, allocations: 85.02 kB / 0.7931 GB, free: 5.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.2083, allocations: 0 / 0.7931 GB, free: 5.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.828e-05/0.2084, allocations: 19.92 kB / 0.7931 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.081e-05/0.2084, allocations: 11.92 kB / 0.7932 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.635e-06/0.2084, allocations: 4 kB / 0.7932 GB, free: 5.805 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.093e-05/0.2085, allocations: 95.42 kB / 0.7932 GB, free: 5.711 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2085, allocations: 0 / 0.7932 GB, free: 5.711 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002473/0.2088, allocations: 15.94 kB / 0.7933 GB, free: 5.695 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.000636/0.2094, allocations: 0.7518 MB / 0.794 GB, free: 4.918 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002639/0.2097, allocations: 91.86 kB / 0.7941 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2097, allocations: 0 / 0.7941 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001175/0.2098, allocations: 48.42 kB / 0.7941 GB, free: 4.781 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002637/0.2101, allocations: 15.92 kB / 0.7941 GB, free: 4.766 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001732/0.2118, allocations: 1.548 MB / 0.7957 GB, free: 3.09 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002585/0.2121, allocations: 0.6962 MB / 0.7963 GB, free: 2.367 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.205e-05/0.2121, allocations: 4 kB / 0.7963 GB, free: 2.363 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.473e-05/0.2122, allocations: 23.42 kB / 0.7964 GB, free: 2.344 MB / 0.6075 GB Notification: Performance of SimCode: time 3.81e-07/0.2122, allocations: 0 / 0.7964 GB, free: 2.344 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01084/0.223, allocations: 1.79 MB / 0.7981 GB, free: 0.7305 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002107/0.2233, allocations: 224.7 kB / 0.7983 GB, free: 480 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.675/1.898, allocations: 2.672 kB / 0.7983 GB, free: 480 kB / 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)