Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.601/2.601, allocations: 284.8 MB / 292.1 MB, free: 10.81 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002694/0.002694, allocations: 173.3 kB / 360.3 MB, free: 7.527 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.936/1.936, allocations: 205.1 MB / 0.6187 GB, free: 13.17 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001648/0.001648, allocations: 91.22 kB / 0.7317 GB, free: 45.08 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3022/0.3039, allocations: 121.4 MB / 0.8502 GB, free: 3.902 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6465/0.9504, allocations: 115.2 MB / 0.9627 GB, free: 78.43 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.445/6.396, allocations: 2.094 GB / 3.056 GB, free: 266.6 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003159/6.396, allocations: 91.19 kB / 3.057 GB, free: 266.6 MB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 14/20.4, allocations: 2.82 GB / 5.876 GB, free: 70.73 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/20.4, allocations: 9.562 kB / 5.876 GB, free: 70.73 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02203/20.42, allocations: 1.549 MB / 5.878 GB, free: 70.57 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0122/20.43, allocations: 2.606 MB / 5.88 GB, free: 69.98 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002719/20.44, allocations: 379 kB / 5.881 GB, free: 69.97 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001199/20.44, allocations: 134.3 kB / 5.881 GB, free: 69.97 MB / 1.042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01015/20.45, allocations: 2.544 MB / 5.883 GB, free: 69.95 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009009/20.46, allocations: 2.413 MB / 5.886 GB, free: 69.54 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.204e-05/20.46, allocations: 6.062 kB / 5.886 GB, free: 69.54 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004524/20.46, allocations: 7.719 kB / 5.886 GB, free: 69.54 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001116/20.46, allocations: 90.03 kB / 5.886 GB, free: 69.53 MB / 1.042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04029/20.5, allocations: 13.86 MB / 5.899 GB, free: 62.01 MB / 1.042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003946/20.5, allocations: 1.416 MB / 5.901 GB, free: 61.79 MB / 1.042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001865/20.5, allocations: 0.6334 MB / 5.901 GB, free: 61.77 MB / 1.042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001139/20.5, allocations: 0.6459 MB / 5.902 GB, free: 61.11 MB / 1.042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.536e-05/20.5, allocations: 48.03 kB / 5.902 GB, free: 61.07 MB / 1.042 GB Notification: Performance of pre-optimization done (n=110): time 4.87e-06/20.5, allocations: 0 / 5.902 GB, free: 61.07 MB / 1.042 GB Notification: Performance of matching and sorting (n=110): time 0.008154/20.51, allocations: 1.646 MB / 5.904 GB, free: 60.91 MB / 1.042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.01e-05/20.51, allocations: 66.91 kB / 5.904 GB, free: 60.84 MB / 1.042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006581/20.52, allocations: 1.563 MB / 5.905 GB, free: 60.61 MB / 1.042 GB Notification: Performance of collectPreVariables (initialization): time 0.0005484/20.52, allocations: 35.83 kB / 5.905 GB, free: 60.58 MB / 1.042 GB Notification: Performance of collectInitialEqns (initialization): time 0.001025/20.52, allocations: 0.9475 MB / 5.906 GB, free: 60.02 MB / 1.042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007115/20.52, allocations: 382.5 kB / 5.907 GB, free: 59.78 MB / 1.042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002897/20.52, allocations: 1.75 kB / 5.907 GB, free: 59.78 MB / 1.042 GB Notification: Performance of setup shared object (initialization): time 0.0001582/20.52, allocations: 370.1 kB / 5.907 GB, free: 59.47 MB / 1.042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002624/20.52, allocations: 0.6921 MB / 5.908 GB, free: 59.46 MB / 1.042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003174/20.53, allocations: 1.334 MB / 5.909 GB, free: 58.7 MB / 1.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004852/20.53, allocations: 1.237 MB / 5.91 GB, free: 58.65 MB / 1.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.973e-05/20.53, allocations: 4.594 kB / 5.91 GB, free: 58.65 MB / 1.042 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.009318/20.54, allocations: 2.441 MB / 5.913 GB, free: 58.43 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001332/20.54, allocations: 5.565 MB / 5.918 GB, free: 52.62 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.589e-05/20.54, allocations: 12.47 kB / 5.918 GB, free: 52.62 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.912e-05/20.54, allocations: 24.28 kB / 5.918 GB, free: 52.62 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006531/20.55, allocations: 0.5819 MB / 5.919 GB, free: 52.59 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001613/20.55, allocations: 2.408 MB / 5.921 GB, free: 50.25 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007919/20.56, allocations: 0.5022 MB / 5.921 GB, free: 50.16 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006722/20.56, allocations: 100.8 kB / 5.922 GB, free: 50.15 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/20.56, allocations: 2.562 kB / 5.922 GB, free: 50.15 MB / 1.042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007945/20.57, allocations: 2.179 MB / 5.924 GB, free: 49.7 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.621e-05/20.57, allocations: 18.72 kB / 5.924 GB, free: 49.69 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.942e-05/20.57, allocations: 25.02 kB / 5.924 GB, free: 49.69 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005496/20.57, allocations: 0.552 MB / 5.924 GB, free: 49.65 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.527e-05/20.57, allocations: 31.14 kB / 5.924 GB, free: 49.65 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006567/20.58, allocations: 406.5 kB / 5.925 GB, free: 49.58 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006908/20.58, allocations: 92.59 kB / 5.925 GB, free: 49.57 MB / 1.042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 4 (masExcFor.i1_w,masExcFor.i2_w,masExcRev.i1_w,masExcRev.i2_w) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000789/20.58, allocations: 159.4 kB / 5.925 GB, free: 49.42 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000947/20.58, allocations: 219.7 kB / 5.925 GB, free: 49.31 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006059/20.59, allocations: 1.687 MB / 5.927 GB, free: 48.71 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.093e-05/20.59, allocations: 13.42 kB / 5.927 GB, free: 48.71 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/20.59, allocations: 1.422 kB / 5.927 GB, free: 48.71 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.031e-05/20.59, allocations: 8.375 kB / 5.927 GB, free: 48.71 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01321/20.6, allocations: 4.041 MB / 5.931 GB, free: 47 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.538e-05/20.6, allocations: 4.812 kB / 5.931 GB, free: 47 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003627/20.61, allocations: 328.4 kB / 5.931 GB, free: 46.98 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.312e-05/20.61, allocations: 9.281 kB / 5.931 GB, free: 46.98 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003222/20.61, allocations: 22.75 kB / 5.931 GB, free: 46.97 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001204/20.61, allocations: 2.378 MB / 5.933 GB, free: 44.6 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.181e-05/20.61, allocations: 5.812 kB / 5.933 GB, free: 44.6 MB / 1.042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005571/20.61, allocations: 2.246 MB / 5.936 GB, free: 43.1 MB / 1.042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007452/20.62, allocations: 3.085 MB / 5.939 GB, free: 40.8 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002381/20.62, allocations: 0.5137 MB / 5.939 GB, free: 40.46 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009704/20.62, allocations: 9.062 kB / 5.939 GB, free: 40.46 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005702/20.63, allocations: 261.5 kB / 5.939 GB, free: 40.46 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003919/20.63, allocations: 68.75 kB / 5.939 GB, free: 40.44 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000359/20.63, allocations: 67.92 kB / 5.94 GB, free: 40.43 MB / 1.042 GB Notification: Performance of sort global known variables: time 0.00409/20.64, allocations: 1.155 MB / 5.941 GB, free: 39.91 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.01852/20.65, allocations: 3.596 MB / 5.944 GB, free: 37.55 MB / 1.042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01491/20.67, allocations: 8.267 MB / 5.952 GB, free: 30.83 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.01563/20.68, allocations: 2.816 MB / 5.955 GB, free: 28.23 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 2.718e-05/20.68, allocations: 8.125 kB / 5.955 GB, free: 28.22 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.004511/20.69, allocations: 0.6574 MB / 5.956 GB, free: 27.63 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0074/20.7, allocations: 0.7127 MB / 5.956 GB, free: 27.09 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01251/20.71, allocations: 3.252 MB / 5.959 GB, free: 24.04 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003859/20.71, allocations: 1.969 MB / 5.961 GB, free: 22.45 MB / 1.042 GB Notification: Performance of SimCode: time 1.453e-06/20.71, allocations: 1.641 kB / 5.961 GB, free: 22.45 MB / 1.042 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)