Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",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.001123/0.001123, allocations: 109.4 kB / 15.69 MB, free: 128 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.001383/0.001383, allocations: 188.9 kB / 16.62 MB, free: 6.613 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.548/1.548, allocations: 205.1 MB / 222.5 MB, free: 4.559 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.717/1.717, allocations: 292.3 MB / 0.549 GB, free: 12.76 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.002442/0.002442, allocations: 76.09 kB / 0.6718 GB, free: 26.33 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2824/0.2849, allocations: 114.5 MB / 0.7836 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002242/0.2872, allocations: 0.7593 MB / 0.7844 GB, free: 12.53 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001508/0.2887, allocations: 1.161 MB / 0.7855 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.498e-05/0.2888, allocations: 0 / 0.7855 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.396e-05/0.2889, allocations: 7.938 kB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.669e-05/0.289, allocations: 11.86 kB / 0.7855 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005217/0.2895, allocations: 130.8 kB / 0.7857 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001842/0.2897, allocations: 135.7 kB / 0.7858 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.2898, allocations: 20.17 kB / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.965e-05/0.2899, allocations: 47.91 kB / 0.7859 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001173/0.29, allocations: 55.8 kB / 0.7859 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.635e-05/0.2901, allocations: 12 kB / 0.7859 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.831e-05/0.2901, allocations: 19.98 kB / 0.7859 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.713e-05/0.2902, allocations: 15.98 kB / 0.786 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.226e-05/0.2903, allocations: 47.78 kB / 0.786 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002006/0.2905, allocations: 123.9 kB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2905, allocations: 0 / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.084e-06/0.2905, allocations: 0 / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.2905, allocations: 0 / 0.7861 GB, free: 10.73 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006859/0.2912, allocations: 424.9 kB / 0.7865 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.2912, allocations: 12.02 kB / 0.7865 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.768e-05/0.2913, allocations: 42.75 kB / 0.7866 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.294e-05/0.2913, allocations: 8.844 kB / 0.7866 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/0.2915, allocations: 172.2 kB / 0.7867 GB, free: 9.988 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.983e-05/0.2915, allocations: 16.34 kB / 0.7868 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.172e-05/0.2915, allocations: 8.375 kB / 0.7868 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002117/0.2917, allocations: 77.91 kB / 0.7868 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.333e-06/0.2918, allocations: 0 / 0.7868 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.2918, allocations: 8 kB / 0.7869 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.2918, allocations: 3.938 kB / 0.7869 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001834/0.292, allocations: 43.95 kB / 0.7869 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005096/0.2925, allocations: 344.6 kB / 0.7872 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001689/0.2927, allocations: 66.48 kB / 0.7873 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.2928, allocations: 28.97 kB / 0.7873 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.2928, allocations: 4 kB / 0.7873 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002409/0.2931, allocations: 91.38 kB / 0.7874 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.392e-06/0.2931, allocations: 4 kB / 0.7874 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.0004436/0.2935, allocations: 149.5 kB / 0.7876 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.99e-05/0.2936, allocations: 51.41 kB / 0.7876 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.512e-05/0.2937, allocations: 117.8 kB / 0.7877 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.2937, allocations: 29.7 kB / 0.7877 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.039e-05/0.2938, allocations: 96.03 kB / 0.7878 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.164e-05/0.2938, allocations: 19.75 kB / 0.7879 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.87e-05/0.2939, allocations: 45.69 kB / 0.7879 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001028/0.294, allocations: 322.8 kB / 0.7882 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/0.2942, allocations: 47.95 kB / 0.7883 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.2943, allocations: 96.86 kB / 0.7883 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003229/0.2947, allocations: 150.7 kB / 0.7885 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.2947, allocations: 0 / 0.7885 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004281/0.2951, allocations: 215.1 kB / 0.7887 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.941e-05/0.2952, allocations: 37.69 kB / 0.7887 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.2952, allocations: 4 kB / 0.7887 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.2952, allocations: 0 / 0.7887 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.2953, allocations: 23.92 kB / 0.7888 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.2953, allocations: 0 / 0.7888 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002017/0.2955, allocations: 32.12 kB / 0.7888 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.682e-05/0.2956, allocations: 15.92 kB / 0.7888 GB, free: 7.691 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$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): 10 * Array equations: 0 * Algorithm blocks: 1 * 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 9.854e-05/0.2957, allocations: 121.8 kB / 0.7889 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.448e-05/0.2957, allocations: 7.906 kB / 0.7889 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000299/0.296, allocations: 125.9 kB / 0.789 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.296, allocations: 8 kB / 0.7891 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.296, allocations: 3.938 kB / 0.7891 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.296, allocations: 0 / 0.7891 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004416/0.2965, allocations: 374.4 kB / 0.7894 GB, free: 6.992 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2965, allocations: 0 / 0.7894 GB, free: 6.992 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.593e-05/0.2966, allocations: 15.98 kB / 0.7894 GB, free: 6.977 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.2966, allocations: 3.938 kB / 0.7894 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-06/0.2966, allocations: 4 kB / 0.7894 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.2966, allocations: 3.938 kB / 0.7894 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2966, allocations: 0 / 0.7894 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003063/0.2969, allocations: 219.3 kB / 0.7897 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.373e-05/0.297, allocations: 81.02 kB / 0.7897 GB, free: 6.637 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.468e-05/0.297, allocations: 0 / 0.7897 GB, free: 6.637 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.796e-05/0.2971, allocations: 15.92 kB / 0.7897 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.579e-05/0.2971, allocations: 8 kB / 0.7898 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.428e-06/0.2971, allocations: 7.984 kB / 0.7898 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.887e-05/0.2972, allocations: 91.33 kB / 0.7898 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2972, allocations: 0 / 0.7898 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002738/0.2975, allocations: 20 kB / 0.7899 GB, free: 6.496 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 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0006935/0.2982, allocations: 0.7631 MB / 0.7906 GB, free: 5.707 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003867/0.2986, allocations: 175.9 kB / 0.7908 GB, free: 5.523 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.2986, allocations: 0 / 0.7908 GB, free: 5.523 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.2987, allocations: 44.22 kB / 0.7908 GB, free: 5.48 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002902/0.299, allocations: 24.08 kB / 0.7908 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002173/0.3012, allocations: 1.704 MB / 0.7925 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002859/0.3015, allocations: 0.6991 MB / 0.7932 GB, free: 2.91 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.085e-05/0.3015, allocations: 144 / 0.7932 GB, free: 2.91 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.328e-05/0.3016, allocations: 19.44 kB / 0.7932 GB, free: 2.895 MB / 0.6075 GB Notification: Performance of SimCode: time 3.21e-07/0.3016, allocations: 3.938 kB / 0.7932 GB, free: 2.891 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02015/0.3217, allocations: 2.538 MB / 0.7957 GB, free: 476 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.868/8.19, allocations: 0 / 0.7957 GB, free: 476 kB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)