Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_8_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.658/1.658, allocations: 289.8 MB / 297.1 MB, free: 6.629 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.001277/0.001277, allocations: 172.1 kB / 366.3 MB, free: 1.957 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.773/1.773, allocations: 205.1 MB / 0.6256 GB, free: 7.426 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.0009733/0.0009733, allocations: 98.38 kB / 0.7395 GB, free: 39.83 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3284/0.3294, allocations: 122.4 MB / 0.8591 GB, free: 13.45 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7631/1.093, allocations: 116.3 MB / 0.9726 GB, free: 76.41 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.398/5.491, allocations: 2.095 GB / 3.067 GB, free: 12.54 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/5.491, allocations: 93.17 kB / 3.068 GB, free: 12.45 MB / 0.948 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 11.1/16.59, allocations: 2.82 GB / 5.887 GB, free: 71.03 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/16.59, allocations: 10.84 kB / 5.887 GB, free: 71.03 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01183/16.6, allocations: 1.541 MB / 5.889 GB, free: 70.87 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008799/16.61, allocations: 2.611 MB / 5.891 GB, free: 70.33 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00128/16.61, allocations: 378.4 kB / 5.892 GB, free: 70.32 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009687/16.61, allocations: 135.2 kB / 5.892 GB, free: 70.32 MB / 1.042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005558/16.62, allocations: 2.545 MB / 5.894 GB, free: 70.31 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004309/16.62, allocations: 2.412 MB / 5.897 GB, free: 69.91 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.034e-05/16.62, allocations: 7.625 kB / 5.897 GB, free: 69.91 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002438/16.62, allocations: 7.438 kB / 5.897 GB, free: 69.91 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.045e-05/16.62, allocations: 86.91 kB / 5.897 GB, free: 69.9 MB / 1.042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02408/16.65, allocations: 13.86 MB / 5.91 GB, free: 62.51 MB / 1.042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002097/16.65, allocations: 1.41 MB / 5.912 GB, free: 62.29 MB / 1.042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008901/16.65, allocations: 0.6354 MB / 5.912 GB, free: 62.27 MB / 1.042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007961/16.65, allocations: 0.647 MB / 5.913 GB, free: 61.62 MB / 1.042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.239e-05/16.65, allocations: 49.47 kB / 5.913 GB, free: 61.58 MB / 1.042 GB Notification: Performance of pre-optimization done (n=110): time 4.008e-06/16.65, allocations: 0 / 5.913 GB, free: 61.58 MB / 1.042 GB Notification: Performance of matching and sorting (n=110): time 0.004125/16.66, allocations: 1.646 MB / 5.915 GB, free: 61.41 MB / 1.042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.611e-05/16.66, allocations: 63.53 kB / 5.915 GB, free: 61.34 MB / 1.042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002833/16.66, allocations: 1.566 MB / 5.916 GB, free: 61.12 MB / 1.042 GB Notification: Performance of collectPreVariables (initialization): time 0.0003454/16.66, allocations: 32.61 kB / 5.916 GB, free: 61.09 MB / 1.042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005734/16.66, allocations: 0.9478 MB / 5.917 GB, free: 60.53 MB / 1.042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003047/16.66, allocations: 376.7 kB / 5.918 GB, free: 60.29 MB / 1.042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/16.66, allocations: 3.875 kB / 5.918 GB, free: 60.29 MB / 1.042 GB Notification: Performance of setup shared object (initialization): time 0.0001095/16.66, allocations: 366.2 kB / 5.918 GB, free: 59.98 MB / 1.042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001069/16.66, allocations: 0.6914 MB / 5.919 GB, free: 59.98 MB / 1.042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001564/16.66, allocations: 1.345 MB / 5.92 GB, free: 59.2 MB / 1.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002399/16.66, allocations: 1.229 MB / 5.921 GB, free: 59.19 MB / 1.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-05/16.66, allocations: 9.75 kB / 5.921 GB, free: 59.19 MB / 1.042 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004935/16.67, allocations: 2.437 MB / 5.924 GB, free: 59.02 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001236/16.67, allocations: 5.558 MB / 5.929 GB, free: 53.21 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.271e-05/16.67, allocations: 15.06 kB / 5.929 GB, free: 53.21 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.385e-05/16.67, allocations: 28.48 kB / 5.929 GB, free: 53.21 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003173/16.67, allocations: 0.5863 MB / 5.93 GB, free: 53.21 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001128/16.68, allocations: 2.413 MB / 5.932 GB, free: 50.88 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004975/16.68, allocations: 0.4995 MB / 5.932 GB, free: 50.79 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005954/16.68, allocations: 97.55 kB / 5.933 GB, free: 50.79 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/16.68, allocations: 4.625 kB / 5.933 GB, free: 50.79 MB / 1.042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005576/16.69, allocations: 2.179 MB / 5.935 GB, free: 50.73 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.454e-05/16.69, allocations: 17.25 kB / 5.935 GB, free: 50.73 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.922e-05/16.69, allocations: 24.06 kB / 5.935 GB, free: 50.73 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003194/16.69, allocations: 0.5515 MB / 5.935 GB, free: 50.7 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.686e-05/16.69, allocations: 38.55 kB / 5.935 GB, free: 50.7 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004244/16.69, allocations: 397.1 kB / 5.936 GB, free: 50.64 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003919/16.69, allocations: 90.73 kB / 5.936 GB, free: 50.64 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.0008157/16.7, allocations: 162 kB / 5.936 GB, free: 50.5 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001007/16.7, allocations: 222.6 kB / 5.936 GB, free: 50.38 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00413/16.7, allocations: 1.688 MB / 5.938 GB, free: 50.29 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.889e-05/16.7, allocations: 9.938 kB / 5.938 GB, free: 50.29 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/16.7, allocations: 2.266 kB / 5.938 GB, free: 50.29 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.423e-05/16.7, allocations: 6.797 kB / 5.938 GB, free: 50.29 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01068/16.71, allocations: 4.042 MB / 5.942 GB, free: 49.7 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.879e-05/16.71, allocations: 9.562 kB / 5.942 GB, free: 49.7 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002086/16.71, allocations: 328.8 kB / 5.942 GB, free: 49.69 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.099e-05/16.71, allocations: 10.19 kB / 5.942 GB, free: 49.69 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000132/16.71, allocations: 25.34 kB / 5.942 GB, free: 49.68 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009097/16.71, allocations: 2.38 MB / 5.944 GB, free: 47.34 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.855e-06/16.71, allocations: 7.531 kB / 5.944 GB, free: 47.34 MB / 1.042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003543/16.72, allocations: 2.245 MB / 5.947 GB, free: 46.27 MB / 1.042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005343/16.72, allocations: 3.082 MB / 5.95 GB, free: 44.82 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002089/16.73, allocations: 0.5089 MB / 5.95 GB, free: 44.6 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009238/16.73, allocations: 9.469 kB / 5.95 GB, free: 44.6 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003551/16.73, allocations: 266.6 kB / 5.95 GB, free: 44.59 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/16.73, allocations: 71.06 kB / 5.95 GB, free: 44.58 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002294/16.73, allocations: 64.67 kB / 5.951 GB, free: 44.58 MB / 1.042 GB Notification: Performance of sort global known variables: time 0.003282/16.73, allocations: 1.158 MB / 5.952 GB, free: 44.44 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.01444/16.75, allocations: 3.584 MB / 5.955 GB, free: 44.26 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.01295/16.76, allocations: 8.28 MB / 5.963 GB, free: 40.01 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.006111/16.77, allocations: 2.822 MB / 5.966 GB, free: 39.76 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 1.728e-05/16.77, allocations: 3.594 kB / 5.966 GB, free: 39.76 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.001268/16.77, allocations: 0.6593 MB / 5.967 GB, free: 39.73 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004328/16.77, allocations: 0.7 MB / 5.967 GB, free: 39.7 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008425/16.78, allocations: 3.257 MB / 5.971 GB, free: 38.68 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00243/16.78, allocations: 1.966 MB / 5.972 GB, free: 37.93 MB / 1.042 GB Notification: Performance of SimCode: time 1.333e-06/16.78, allocations: 0 / 5.972 GB, free: 37.93 MB / 1.042 GB (rm -f Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)