Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Utilities.IO.Python_3_8.Functions.Examples.Exchange,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange",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.008075/0.008075, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001828/0.001828, allocations: 193.8 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.409/2.409, allocations: 390.2 MB / 0.6648 GB, free: 168 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 70.7 kB / 0.9504 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2819, allocations: 140.4 MB / 1.087 GB, free: 2.012 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange): time 0.002012/0.284, allocations: 0.5398 MB / 1.088 GB, free: 1.473 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001824/0.2858, allocations: 1.196 MB / 1.089 GB, free: 276 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.798e-05/0.2859, allocations: 0 / 1.089 GB, free: 276 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 9.174e-05/0.286, allocations: 3.984 kB / 1.089 GB, free: 272 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.885e-05/0.2861, allocations: 0 / 1.089 GB, free: 272 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007996/0.2869, allocations: 284.6 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001559/0.287, allocations: 75.83 kB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.3e-05/0.2871, allocations: 11.89 kB / 1.09 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.714e-05/0.2872, allocations: 35.86 kB / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.075e-05/0.2873, allocations: 43.83 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.979e-05/0.2873, allocations: 8 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004247/0.2877, allocations: 207.7 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.677e-05/0.2878, allocations: 7.938 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.698e-05/0.2878, allocations: 35.84 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003969/0.2882, allocations: 255.5 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2882, allocations: 0 / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.342e-06/0.2883, allocations: 4 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.2883, allocations: 0 / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0005438/0.2888, allocations: 444.5 kB / 1.091 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.2889, allocations: 16.03 kB / 1.091 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.142e-05/0.2889, allocations: 110 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.536e-05/0.289, allocations: 84.17 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001571/0.2892, allocations: 251.6 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.074e-05/0.2892, allocations: 154.9 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.951e-05/0.2893, allocations: 158.9 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.516e-05/0.2894, allocations: 112.9 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.663e-05/0.2894, allocations: 79.22 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.249e-05/0.2895, allocations: 154.6 kB / 1.092 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-05/0.2895, allocations: 150.6 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.304e-05/0.2896, allocations: 150.6 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003299/0.2899, allocations: 477.8 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.232e-05/0.29, allocations: 165.1 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.523e-05/0.2901, allocations: 84.08 kB / 1.093 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.035e-05/0.2901, allocations: 79.22 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.445e-05/0.2902, allocations: 113.8 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=0): time 1.102e-06/0.2902, allocations: 4 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of matching and sorting (n=0): time 9.939e-05/0.2903, allocations: 33.66 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.2904, allocations: 130.7 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001806/0.2906, allocations: 145.7 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.593e-05/0.2906, allocations: 25.7 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.993e-05/0.2907, allocations: 100.1 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.515e-06/0.2907, allocations: 0 / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.634e-05/0.2908, allocations: 37.7 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001365/0.2909, allocations: 326.8 kB / 1.094 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.2911, allocations: 59.89 kB / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/0.2912, allocations: 59.94 kB / 1.094 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002464/0.2914, allocations: 98.58 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2914, allocations: 0 / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000394/0.2918, allocations: 231.2 kB / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.491e-05/0.2919, allocations: 45.69 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.2919, allocations: 0 / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.2919, allocations: 3.938 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.2919, allocations: 4.062 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.692e-06/0.2919, allocations: 3.984 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000332/0.2923, allocations: 23.92 kB / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.017e-05/0.2923, allocations: 19.98 kB / 1.094 GB, free: 11 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (yI2[2],yI2[1],yI1[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 0.0001236/0.2925, allocations: 197 kB / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.344e-05/0.2925, allocations: 116.9 kB / 1.094 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001069/0.2927, allocations: 116.6 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-05/0.2927, allocations: 184.2 kB / 1.095 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.328e-05/0.2928, allocations: 176.3 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-05/0.2929, allocations: 184.2 kB / 1.095 GB, free: 9.992 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002539/0.2931, allocations: 413.2 kB / 1.095 GB, free: 9.531 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.175e-05/0.2932, allocations: 108.9 kB / 1.095 GB, free: 9.418 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.397e-05/0.2932, allocations: 108.9 kB / 1.096 GB, free: 9.305 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.379e-05/0.2933, allocations: 176.3 kB / 1.096 GB, free: 9.125 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.685e-05/0.2934, allocations: 184.2 kB / 1.096 GB, free: 8.938 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.737e-05/0.2934, allocations: 184.2 kB / 1.096 GB, free: 8.75 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.962e-05/0.2935, allocations: 176.3 kB / 1.096 GB, free: 8.57 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001612/0.2937, allocations: 311.7 kB / 1.097 GB, free: 8.242 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.949e-05/0.2937, allocations: 194 kB / 1.097 GB, free: 8.027 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.591e-05/0.2938, allocations: 176.3 kB / 1.097 GB, free: 7.848 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.157e-05/0.2939, allocations: 105 kB / 1.097 GB, free: 7.738 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.41e-05/0.294, allocations: 180.2 kB / 1.097 GB, free: 7.555 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.826e-05/0.294, allocations: 109 kB / 1.097 GB, free: 7.441 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.125e-05/0.2941, allocations: 109.2 kB / 1.097 GB, free: 7.336 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2941, allocations: 0 / 1.097 GB, free: 7.336 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003997/0.2945, allocations: 71.73 kB / 1.097 GB, free: 7.266 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.003227/0.2978, allocations: 1.044 MB / 1.098 GB, free: 6.27 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003131/0.2981, allocations: 215.3 kB / 1.099 GB, free: 6.047 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2981, allocations: 0 / 1.099 GB, free: 6.047 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 3.106e-06/0.2981, allocations: 0 / 1.099 GB, free: 6.047 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000442/0.2986, allocations: 459.6 kB / 1.099 GB, free: 5.594 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002123/0.3007, allocations: 1.846 MB / 1.101 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004562/0.3012, allocations: 0.6845 MB / 1.102 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 9.177e-05/0.3013, allocations: 51.98 kB / 1.102 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.884e-05/0.3013, allocations: 15.44 kB / 1.102 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of SimCode: time 7.91e-07/0.3013, allocations: 3.938 kB / 1.102 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02305/0.3244, allocations: 3.724 MB / 1.105 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.943/8.268, allocations: 9.344 kB / 1.105 GB, free: 15.2 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange.fmu > Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe 2>&1)