Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.Product.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.Integers.Validation.Product,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Integers_Validation_Product",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Product,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Integers_Validation_Product",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.001118/0.001118, 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.001578/0.001578, allocations: 198 kB / 16.54 MB, free: 6.672 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.508/1.508, allocations: 205.1 MB / 222.4 MB, free: 4.617 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.752/1.752, allocations: 292.3 MB / 0.5489 GB, free: 12.84 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.00157/0.00157, allocations: 74.08 kB / 0.6716 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2658, allocations: 114.5 MB / 0.7835 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Product): time 0.003289/0.2691, allocations: 1.994 MB / 0.7854 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001775/0.2709, allocations: 1.094 MB / 0.7865 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000118/0.271, allocations: 7.938 kB / 0.7865 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0004369/0.2715, allocations: 163.5 kB / 0.7867 GB, free: 10.08 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003769/0.2719, allocations: 163.3 kB / 0.7868 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004544/0.2723, allocations: 184.5 kB / 0.787 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003604/0.2727, allocations: 303.3 kB / 0.7873 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.2729, allocations: 60.56 kB / 0.7873 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001794/0.2731, allocations: 139.5 kB / 0.7875 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002034/0.2733, allocations: 147.4 kB / 0.7876 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.554e-05/0.2733, allocations: 12 kB / 0.7876 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001482/0.2735, allocations: 63.91 kB / 0.7877 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.2736, allocations: 87.73 kB / 0.7878 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001394/0.2737, allocations: 123.2 kB / 0.7879 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005331/0.2743, allocations: 362.7 kB / 0.7882 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2743, allocations: 0 / 0.7882 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2743, allocations: 0 / 0.7882 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.121e-05/0.2743, allocations: 0 / 0.7882 GB, free: 8.469 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.001082/0.2754, allocations: 0.6224 MB / 0.7888 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.2755, allocations: 12.03 kB / 0.7889 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.866e-05/0.2755, allocations: 34.75 kB / 0.7889 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.257e-05/0.2756, allocations: 40.47 kB / 0.7889 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005034/0.2761, allocations: 370.5 kB / 0.7893 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.2761, allocations: 16.06 kB / 0.7893 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.248e-05/0.2762, allocations: 15.98 kB / 0.7893 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002539/0.2764, allocations: 104.2 kB / 0.7894 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.2765, allocations: 0 / 0.7894 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.878e-05/0.2765, allocations: 8 kB / 0.7894 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.331e-06/0.2765, allocations: 0 / 0.7894 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001741/0.2767, allocations: 59.95 kB / 0.7895 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008491/0.2775, allocations: 0.4925 MB / 0.79 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003443/0.2779, allocations: 138.7 kB / 0.7901 GB, free: 6.41 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001454/0.278, allocations: 48.83 kB / 0.7901 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.83e-05/0.2781, allocations: 0 / 0.7901 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002394/0.2783, allocations: 114.1 kB / 0.7902 GB, free: 6.238 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=13): time 3.256e-06/0.2783, allocations: 3.984 kB / 0.7903 GB, free: 6.234 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13): time 0.0005455/0.2789, allocations: 233.2 kB / 0.7905 GB, free: 6 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.2789, allocations: 51.41 kB / 0.7905 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005629/0.2795, allocations: 0.5055 MB / 0.791 GB, free: 5.426 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.275e-05/0.2795, allocations: 29.7 kB / 0.791 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/0.2797, allocations: 164.3 kB / 0.7912 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.26e-05/0.2798, allocations: 39.59 kB / 0.7912 GB, free: 5.188 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.2799, allocations: 73.89 kB / 0.7913 GB, free: 5.109 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001865/0.2801, allocations: 346.8 kB / 0.7916 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001867/0.2803, allocations: 100.5 kB / 0.7917 GB, free: 4.664 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002167/0.2805, allocations: 135.6 kB / 0.7919 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000322/0.2808, allocations: 190.4 kB / 0.792 GB, free: 4.328 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2808, allocations: 0 / 0.792 GB, free: 4.328 MB / 0.6075 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005417/0.2814, allocations: 321.1 kB / 0.7924 GB, free: 4.008 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.2814, allocations: 4 kB / 0.7924 GB, free: 4.004 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.2814, allocations: 0 / 0.7924 GB, free: 4.004 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.2814, allocations: 7.938 kB / 0.7924 GB, free: 3.996 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002298/0.2817, allocations: 55.91 kB / 0.7924 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.2817, allocations: 0 / 0.7924 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.2818, allocations: 19.83 kB / 0.7924 GB, free: 3.922 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.781e-05/0.2819, allocations: 12 kB / 0.7924 GB, free: 3.91 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.timTabLin1.tab.nextTimeEvent,$whenCondition2,$PRE.timTabLin.tab.nextTimeEvent,$whenCondition1,timTabLin1.tab.nextTimeEventScaled,$PRE.timTabLin1.tab.nextTimeEventScaled,timTabLin1.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,reaToInt2.y,reaToInt1.y,product.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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.0001869/0.2821, allocations: 189.8 kB / 0.7926 GB, free: 3.715 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.943e-05/0.2821, allocations: 31.62 kB / 0.7927 GB, free: 3.684 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.755e-05/0.2822, allocations: 35.12 kB / 0.7927 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.2822, allocations: 3.938 kB / 0.7927 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.2822, allocations: 0 / 0.7927 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.2822, allocations: 4 kB / 0.7927 GB, free: 3.641 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002633/0.2825, allocations: 293.4 kB / 0.793 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2825, allocations: 0 / 0.793 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.463e-05/0.2826, allocations: 19.98 kB / 0.793 GB, free: 3.285 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.2826, allocations: 0 / 0.793 GB, free: 3.285 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.2826, allocations: 12 kB / 0.793 GB, free: 3.273 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.2826, allocations: 3.938 kB / 0.793 GB, free: 3.27 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2826, allocations: 0 / 0.793 GB, free: 3.27 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003628/0.283, allocations: 212.5 kB / 0.7932 GB, free: 3.043 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.89e-05/0.2831, allocations: 108.7 kB / 0.7933 GB, free: 2.918 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.297e-05/0.2831, allocations: 4 kB / 0.7933 GB, free: 2.914 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.537e-05/0.2832, allocations: 11.92 kB / 0.7933 GB, free: 2.902 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.216e-05/0.2833, allocations: 23.98 kB / 0.7934 GB, free: 2.879 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/0.2833, allocations: 7.984 kB / 0.7934 GB, free: 2.871 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0003361/0.2837, allocations: 311.1 kB / 0.7937 GB, free: 2.566 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2837, allocations: 0 / 0.7937 GB, free: 2.566 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002817/0.284, allocations: 55.98 kB / 0.7937 GB, free: 2.512 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: 9 ($whenCondition2,$whenCondition1,product.y,reaToInt1.y,reaToInt2.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,timTabLin1.tab.nextTimeEvent,timTabLin1.tab.nextTimeEventScaled) * Number of discrete states: 4 (timTabLin1.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,timTabLin1.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001654/0.2856, allocations: 1.076 MB / 0.7948 GB, free: 1.57 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004302/0.2861, allocations: 196.1 kB / 0.795 GB, free: 1.379 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2861, allocations: 0 / 0.795 GB, free: 1.379 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001426/0.2862, allocations: 64.41 kB / 0.795 GB, free: 1.316 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004757/0.2867, allocations: 92.14 kB / 0.7951 GB, free: 1.238 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004104/0.2908, allocations: 3.13 MB / 0.7982 GB, free: 14.02 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005166/0.2914, allocations: 0.7986 MB / 0.7989 GB, free: 13.19 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002011/0.2916, allocations: 46.95 kB / 0.799 GB, free: 13.14 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002271/0.2918, allocations: 115.3 kB / 0.7991 GB, free: 13.03 MB / 0.6231 GB Notification: Performance of SimCode: time 1.623e-06/0.2919, allocations: 0 / 0.7991 GB, free: 13.03 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02642/0.3183, allocations: 7.046 MB / 0.806 GB, free: 6.109 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.291/8.609, allocations: 4.594 kB / 0.806 GB, free: 6.105 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.Product.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.Product.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.Product.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.Product.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.Product_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Integers_Validation_Product.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.Product.pipe 2>&1)