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.001301/0.001301, allocations: 105.4 kB / 15.7 MB, free: 28 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.001139/0.001139, allocations: 192.8 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.363/1.363, allocations: 205.1 MB / 222.5 MB, free: 4.543 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.691/1.691, allocations: 292.3 MB / 0.549 GB, free: 12.7 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.001522/0.001522, allocations: 72.23 kB / 0.6718 GB, free: 26.36 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2757, allocations: 114.5 MB / 0.7837 GB, free: 13.2 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001949/0.2777, allocations: 0.7515 MB / 0.7844 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001248/0.2789, allocations: 1.071 MB / 0.7854 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.364e-05/0.279, allocations: 7.938 kB / 0.7855 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.842e-05/0.279, allocations: 3.938 kB / 0.7855 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.755e-05/0.2791, allocations: 7.875 kB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002712/0.2794, allocations: 55.88 kB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001141/0.2795, allocations: 71.72 kB / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.2796, allocations: 24.14 kB / 0.7856 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.351e-05/0.2797, allocations: 23.92 kB / 0.7856 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.9e-05/0.2797, allocations: 39.84 kB / 0.7857 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.465e-05/0.2798, allocations: 8 kB / 0.7857 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.396e-05/0.2798, allocations: 12 kB / 0.7857 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.645e-05/0.2799, allocations: 23.91 kB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.263e-05/0.2799, allocations: 27.86 kB / 0.7857 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001303/0.28, allocations: 83.97 kB / 0.7858 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2801, allocations: 0 / 0.7858 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.655e-06/0.2801, allocations: 3.938 kB / 0.7858 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.2801, allocations: 3.938 kB / 0.7858 GB, free: 10.96 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.0005342/0.2806, allocations: 379.3 kB / 0.7862 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.2807, allocations: 12.03 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.227e-05/0.2807, allocations: 30.75 kB / 0.7862 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.258e-05/0.2807, allocations: 8.844 kB / 0.7862 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.2809, allocations: 180.2 kB / 0.7864 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.31e-05/0.2809, allocations: 8.375 kB / 0.7864 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.605e-05/0.2809, allocations: 4.375 kB / 0.7864 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001856/0.2811, allocations: 73.84 kB / 0.7865 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.2811, allocations: 0 / 0.7865 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.839e-06/0.2811, allocations: 8 kB / 0.7865 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.2811, allocations: 0 / 0.7865 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001741/0.2813, allocations: 43.95 kB / 0.7865 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005795/0.2819, allocations: 325.7 kB / 0.7869 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001598/0.2821, allocations: 58.55 kB / 0.7869 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.237e-05/0.2822, allocations: 28.97 kB / 0.7869 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.2822, allocations: 3.984 kB / 0.7869 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001851/0.2824, allocations: 75.39 kB / 0.787 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.2824, allocations: 0 / 0.787 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0003961/0.2828, allocations: 137.6 kB / 0.7871 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.966e-05/0.2828, allocations: 51.41 kB / 0.7872 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.961e-05/0.2829, allocations: 121.8 kB / 0.7873 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.586e-05/0.283, allocations: 29.7 kB / 0.7873 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.748e-05/0.283, allocations: 92.12 kB / 0.7874 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.934e-05/0.283, allocations: 19.73 kB / 0.7874 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-05/0.2831, allocations: 29.7 kB / 0.7875 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.2832, allocations: 322.8 kB / 0.7878 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.2833, allocations: 27.97 kB / 0.7878 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001263/0.2835, allocations: 74.3 kB / 0.7879 GB, free: 8.617 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002359/0.2837, allocations: 113.8 kB / 0.788 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.2837, allocations: 4 kB / 0.788 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002889/0.284, allocations: 125.4 kB / 0.7881 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.284, allocations: 4 kB / 0.7881 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.284, allocations: 4 kB / 0.7881 GB, free: 8.344 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.2841, allocations: 3.938 kB / 0.7881 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001212/0.2842, allocations: 32.06 kB / 0.7882 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.2842, allocations: 7.984 kB / 0.7882 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.2843, allocations: 15.91 kB / 0.7882 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.433e-05/0.2843, allocations: 7.984 kB / 0.7882 GB, free: 8.277 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.405e-05/0.2844, allocations: 120.4 kB / 0.7883 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.534e-05/0.2845, allocations: 4 kB / 0.7883 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.477e-05/0.2845, allocations: 12.31 kB / 0.7883 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.2845, allocations: 0 / 0.7883 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2845, allocations: 0 / 0.7883 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.2845, allocations: 11.98 kB / 0.7883 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004481/0.285, allocations: 374.3 kB / 0.7887 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.285, allocations: 0 / 0.7887 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.432e-05/0.285, allocations: 15.92 kB / 0.7887 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.285, allocations: 0 / 0.7887 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.154e-06/0.2851, allocations: 0 / 0.7887 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.2851, allocations: 3.938 kB / 0.7887 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2851, allocations: 0 / 0.7887 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002776/0.2853, allocations: 207.4 kB / 0.7889 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.573e-05/0.2854, allocations: 81.02 kB / 0.789 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.2854, allocations: 0 / 0.789 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.965e-05/0.2855, allocations: 11.92 kB / 0.789 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.668e-05/0.2856, allocations: 4 kB / 0.789 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.673e-06/0.2856, allocations: 8 kB / 0.789 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.999e-05/0.2856, allocations: 95.27 kB / 0.7891 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2856, allocations: 0 / 0.7891 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002452/0.2859, allocations: 12 kB / 0.7891 GB, free: 7.238 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.00058/0.2865, allocations: 0.7437 MB / 0.7898 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002592/0.2867, allocations: 75.88 kB / 0.7899 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.2867, allocations: 0 / 0.7899 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001111/0.2869, allocations: 39.91 kB / 0.7899 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002674/0.2871, allocations: 20.38 kB / 0.79 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001708/0.2888, allocations: 1.515 MB / 0.7914 GB, free: 4.699 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.2891, allocations: 0.6955 MB / 0.7921 GB, free: 3.98 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.527e-05/0.2892, allocations: 4 kB / 0.7921 GB, free: 3.977 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.73e-05/0.2892, allocations: 27.36 kB / 0.7921 GB, free: 3.953 MB / 0.6075 GB Notification: Performance of SimCode: time 2.6e-07/0.2892, allocations: 0 / 0.7921 GB, free: 3.953 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01761/0.3069, allocations: 2.07 MB / 0.7942 GB, free: 2.02 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.648/7.955, allocations: 8.594 kB / 0.7942 GB, free: 2.012 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)