Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.215/2.215, allocations: 387.2 MB / 394.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 173.3 kB / 487 MB, free: 5.379 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.499/1.499, allocations: 221.3 MB / 0.7819 GB, free: 1.359 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 91.08 kB / 0.9213 GB, free: 2.617 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.586/0.5871, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.8673, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.657/5.525, allocations: 1.9 GB / 3.106 GB, free: 407.5 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002452/5.525, allocations: 87.7 kB / 3.106 GB, free: 407.4 MB / 1.151 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 9.809/15.33, allocations: 2.843 GB / 5.948 GB, free: 111.3 MB / 1.245 GB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/15.33, allocations: 9.125 kB / 5.948 GB, free: 111.3 MB / 1.245 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01166/15.35, allocations: 1.55 MB / 5.95 GB, free: 111.1 MB / 1.245 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008421/15.35, allocations: 2.599 MB / 5.952 GB, free: 110.7 MB / 1.245 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001286/15.36, allocations: 381 kB / 5.953 GB, free: 110.7 MB / 1.245 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001089/15.36, allocations: 140.2 kB / 5.953 GB, free: 110.7 MB / 1.245 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005576/15.36, allocations: 2.552 MB / 5.955 GB, free: 110.7 MB / 1.245 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004197/15.37, allocations: 2.413 MB / 5.958 GB, free: 110.3 MB / 1.245 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.238e-05/15.37, allocations: 6.781 kB / 5.958 GB, free: 110.3 MB / 1.245 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002509/15.37, allocations: 3.156 kB / 5.958 GB, free: 110.3 MB / 1.245 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001034/15.37, allocations: 94.52 kB / 5.958 GB, free: 110.3 MB / 1.245 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02469/15.39, allocations: 13.86 MB / 5.971 GB, free: 103 MB / 1.245 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002001/15.39, allocations: 1.408 MB / 5.973 GB, free: 102.8 MB / 1.245 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008493/15.39, allocations: 0.6284 MB / 5.973 GB, free: 102.7 MB / 1.245 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007383/15.4, allocations: 0.6485 MB / 5.974 GB, free: 102.1 MB / 1.245 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.925e-05/15.4, allocations: 50.72 kB / 5.974 GB, free: 102 MB / 1.245 GB Notification: Performance of pre-optimization done (n=110): time 4.258e-06/15.4, allocations: 0 / 5.974 GB, free: 102 MB / 1.245 GB Notification: Performance of matching and sorting (n=110): time 0.003859/15.4, allocations: 1.647 MB / 5.976 GB, free: 101.9 MB / 1.245 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.898e-05/15.4, allocations: 65.59 kB / 5.976 GB, free: 101.8 MB / 1.245 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00258/15.4, allocations: 1.559 MB / 5.977 GB, free: 101.6 MB / 1.245 GB Notification: Performance of collectPreVariables (initialization): time 0.0002696/15.4, allocations: 32.05 kB / 5.977 GB, free: 101.6 MB / 1.245 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005314/15.4, allocations: 0.9507 MB / 5.978 GB, free: 101 MB / 1.245 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002996/15.4, allocations: 369.9 kB / 5.978 GB, free: 100.8 MB / 1.245 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/15.4, allocations: 3.281 kB / 5.978 GB, free: 100.8 MB / 1.245 GB Notification: Performance of setup shared object (initialization): time 0.0001189/15.4, allocations: 370.9 kB / 5.979 GB, free: 100.4 MB / 1.245 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001029/15.4, allocations: 0.6947 MB / 5.98 GB, free: 100.4 MB / 1.245 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001383/15.41, allocations: 1.346 MB / 5.981 GB, free: 99.68 MB / 1.245 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002343/15.41, allocations: 1.23 MB / 5.982 GB, free: 99.66 MB / 1.245 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.138e-05/15.41, allocations: 3.906 kB / 5.982 GB, free: 99.66 MB / 1.245 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004762/15.41, allocations: 2.441 MB / 5.984 GB, free: 99.48 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 0.001235/15.41, allocations: 5.562 MB / 5.99 GB, free: 93.69 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.24e-05/15.41, allocations: 13.34 kB / 5.99 GB, free: 93.69 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.208e-05/15.41, allocations: 22.97 kB / 5.99 GB, free: 93.69 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003145/15.42, allocations: 0.5865 MB / 5.99 GB, free: 93.69 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001189/15.42, allocations: 2.405 MB / 5.993 GB, free: 91.36 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004502/15.42, allocations: 0.5052 MB / 5.993 GB, free: 91.26 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003425/15.42, allocations: 91.2 kB / 5.993 GB, free: 91.26 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/15.42, allocations: 5.625 kB / 5.993 GB, free: 91.26 MB / 1.245 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004387/15.43, allocations: 2.178 MB / 5.996 GB, free: 91.23 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.464e-05/15.43, allocations: 16.53 kB / 5.996 GB, free: 91.23 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.234e-05/15.43, allocations: 27.81 kB / 5.996 GB, free: 91.23 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002686/15.43, allocations: 0.5538 MB / 5.996 GB, free: 91.23 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.799e-05/15.43, allocations: 30.16 kB / 5.996 GB, free: 91.23 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003692/15.43, allocations: 404 kB / 5.997 GB, free: 91.17 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002274/15.43, allocations: 94.42 kB / 5.997 GB, free: 91.17 MB / 1.245 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.0006527/15.44, allocations: 158.7 kB / 5.997 GB, free: 91.05 MB / 1.245 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005941/15.44, allocations: 224.4 kB / 5.997 GB, free: 90.94 MB / 1.245 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003322/15.44, allocations: 1.685 MB / 5.999 GB, free: 90.85 MB / 1.245 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-05/15.44, allocations: 17.16 kB / 5.999 GB, free: 90.85 MB / 1.245 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/15.44, allocations: 0 / 5.999 GB, free: 90.85 MB / 1.245 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.502e-05/15.44, allocations: 7.484 kB / 5.999 GB, free: 90.85 MB / 1.245 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008006/15.45, allocations: 4.047 MB / 6.003 GB, free: 90.3 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/15.45, allocations: 6.281 kB / 6.003 GB, free: 90.3 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001818/15.45, allocations: 328.6 kB / 6.003 GB, free: 90.29 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.689e-05/15.45, allocations: 10.91 kB / 6.003 GB, free: 90.29 MB / 1.245 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-05/15.45, allocations: 15.27 kB / 6.003 GB, free: 90.29 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008754/15.45, allocations: 2.39 MB / 6.005 GB, free: 87.95 MB / 1.245 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.739e-06/15.45, allocations: 10.5 kB / 6.005 GB, free: 87.95 MB / 1.245 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00329/15.45, allocations: 2.237 MB / 6.007 GB, free: 86.88 MB / 1.245 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005114/15.46, allocations: 3.088 MB / 6.01 GB, free: 85.45 MB / 1.245 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002136/15.46, allocations: 0.51 MB / 6.011 GB, free: 85.22 MB / 1.245 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001188/15.46, allocations: 10.03 kB / 6.011 GB, free: 85.22 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003644/15.47, allocations: 262.4 kB / 6.011 GB, free: 85.21 MB / 1.245 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000189/15.47, allocations: 71.03 kB / 6.011 GB, free: 85.21 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002682/15.47, allocations: 68.42 kB / 6.011 GB, free: 85.21 MB / 1.245 GB Notification: Performance of sort global known variables: time 0.002925/15.47, allocations: 1.153 MB / 6.013 GB, free: 85.06 MB / 1.245 GB Notification: Performance of remove unused functions: time 0.01583/15.48, allocations: 3.59 MB / 6.016 GB, free: 84.89 MB / 1.245 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.01502/15.5, allocations: 8.27 MB / 6.024 GB, free: 80.62 MB / 1.245 GB Notification: Performance of simCode: created initialization part: time 0.007872/15.51, allocations: 2.822 MB / 6.027 GB, free: 80.47 MB / 1.245 GB Notification: Performance of simCode: created event and clocks part: time 2.302e-05/15.51, allocations: 3.469 kB / 6.027 GB, free: 80.47 MB / 1.245 GB Notification: Performance of simCode: created simulation system equations: time 0.001775/15.51, allocations: 0.6625 MB / 6.027 GB, free: 80.46 MB / 1.245 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005319/15.52, allocations: 0.7064 MB / 6.028 GB, free: 80.43 MB / 1.245 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009781/15.52, allocations: 3.25 MB / 6.031 GB, free: 79.44 MB / 1.245 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002192/15.53, allocations: 1.972 MB / 6.033 GB, free: 78.68 MB / 1.245 GB Notification: Performance of SimCode: time 1.413e-06/15.53, allocations: 1.938 kB / 6.033 GB, free: 78.68 MB / 1.245 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)