Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.418/2.418, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.001619/0.001619, allocations: 185.2 kB / 490.8 MB, free: 1.953 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.69/1.69, allocations: 221.3 MB / 0.7863 GB, free: 13.68 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 87.91 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7779/0.779, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/1.075, allocations: 143 MB / 1.212 GB, free: 40.04 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.278/6.353, allocations: 1.901 GB / 3.113 GB, free: 428.2 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/6.353, allocations: 90.44 kB / 3.113 GB, free: 428.2 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 11.23/17.59, allocations: 2.843 GB / 5.955 GB, free: 111.5 MB / 1.245 GB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/17.59, allocations: 13.3 kB / 5.955 GB, free: 111.5 MB / 1.245 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01225/17.6, allocations: 1.542 MB / 5.957 GB, free: 111.3 MB / 1.245 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01038/17.61, allocations: 2.608 MB / 5.959 GB, free: 110.9 MB / 1.245 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001377/17.61, allocations: 379.9 kB / 5.96 GB, free: 110.9 MB / 1.245 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001086/17.61, allocations: 135.8 kB / 5.96 GB, free: 110.9 MB / 1.245 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00609/17.62, allocations: 2.545 MB / 5.962 GB, free: 110.9 MB / 1.245 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004402/17.62, allocations: 2.423 MB / 5.965 GB, free: 110.5 MB / 1.245 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.939e-05/17.62, allocations: 5.812 kB / 5.965 GB, free: 110.5 MB / 1.245 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002549/17.62, allocations: 3.25 kB / 5.965 GB, free: 110.5 MB / 1.245 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001046/17.62, allocations: 91.78 kB / 5.965 GB, free: 110.5 MB / 1.245 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02386/17.65, allocations: 13.85 MB / 5.978 GB, free: 103.2 MB / 1.245 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001919/17.65, allocations: 1.407 MB / 5.98 GB, free: 102.9 MB / 1.245 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009042/17.65, allocations: 0.6314 MB / 5.98 GB, free: 102.9 MB / 1.245 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007929/17.65, allocations: 0.6438 MB / 5.981 GB, free: 102.3 MB / 1.245 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.719e-05/17.65, allocations: 51.91 kB / 5.981 GB, free: 102.2 MB / 1.245 GB Notification: Performance of pre-optimization done (n=110): time 3.166e-06/17.65, allocations: 0 / 5.981 GB, free: 102.2 MB / 1.245 GB Notification: Performance of matching and sorting (n=110): time 0.003814/17.65, allocations: 1.644 MB / 5.983 GB, free: 102.1 MB / 1.245 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.767e-05/17.65, allocations: 67.72 kB / 5.983 GB, free: 102 MB / 1.245 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002251/17.66, allocations: 1.565 MB / 5.984 GB, free: 101.8 MB / 1.245 GB Notification: Performance of collectPreVariables (initialization): time 0.0002341/17.66, allocations: 29.27 kB / 5.984 GB, free: 101.8 MB / 1.245 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006831/17.66, allocations: 0.9572 MB / 5.985 GB, free: 101.3 MB / 1.245 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003285/17.66, allocations: 374 kB / 5.986 GB, free: 101 MB / 1.245 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/17.66, allocations: 0 / 5.986 GB, free: 101 MB / 1.245 GB Notification: Performance of setup shared object (initialization): time 0.0001461/17.66, allocations: 371.5 kB / 5.986 GB, free: 100.7 MB / 1.245 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0011/17.66, allocations: 0.6906 MB / 5.987 GB, free: 100.7 MB / 1.245 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001509/17.66, allocations: 1.341 MB / 5.988 GB, free: 99.96 MB / 1.245 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002361/17.66, allocations: 1.231 MB / 5.989 GB, free: 99.94 MB / 1.245 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.041e-05/17.66, allocations: 3.906 kB / 5.989 GB, free: 99.94 MB / 1.245 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004533/17.67, allocations: 2.441 MB / 5.992 GB, free: 99.77 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 0.001077/17.67, allocations: 5.564 MB / 5.997 GB, free: 93.97 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.355e-05/17.67, allocations: 12.25 kB / 5.997 GB, free: 93.97 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.659e-05/17.67, allocations: 26.88 kB / 5.997 GB, free: 93.97 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003126/17.67, allocations: 0.5862 MB / 5.998 GB, free: 93.97 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001084/17.67, allocations: 2.41 MB / 6 GB, free: 91.63 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00436/17.68, allocations: 0.499 MB / 6 GB, free: 91.54 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003455/17.68, allocations: 93.58 kB / 6.001 GB, free: 91.54 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/17.68, allocations: 7.031 kB / 6.001 GB, free: 91.54 MB / 1.245 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004496/17.68, allocations: 2.178 MB / 6.003 GB, free: 91.52 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.715e-05/17.68, allocations: 13.59 kB / 6.003 GB, free: 91.52 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.871e-05/17.68, allocations: 26.44 kB / 6.003 GB, free: 91.52 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002672/17.69, allocations: 0.5525 MB / 6.003 GB, free: 91.52 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.589e-05/17.69, allocations: 32.64 kB / 6.003 GB, free: 91.52 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003877/17.69, allocations: 400.7 kB / 6.004 GB, free: 91.45 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000365/17.69, allocations: 91.77 kB / 6.004 GB, free: 91.45 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.0008383/17.69, allocations: 167.5 kB / 6.004 GB, free: 91.34 MB / 1.245 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001127/17.69, allocations: 226.5 kB / 6.004 GB, free: 91.22 MB / 1.245 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004117/17.7, allocations: 1.686 MB / 6.006 GB, free: 91.12 MB / 1.245 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.434e-05/17.7, allocations: 11.16 kB / 6.006 GB, free: 91.12 MB / 1.245 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/17.7, allocations: 0 / 6.006 GB, free: 91.12 MB / 1.245 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.508e-05/17.7, allocations: 10.48 kB / 6.006 GB, free: 91.12 MB / 1.245 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009127/17.7, allocations: 4.046 MB / 6.01 GB, free: 90.57 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.405e-05/17.7, allocations: 11.81 kB / 6.01 GB, free: 90.57 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001845/17.71, allocations: 326.1 kB / 6.01 GB, free: 90.57 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.862e-05/17.71, allocations: 10.91 kB / 6.01 GB, free: 90.57 MB / 1.245 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001059/17.71, allocations: 18.02 kB / 6.01 GB, free: 90.57 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009001/17.71, allocations: 2.378 MB / 6.012 GB, free: 88.23 MB / 1.245 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.167e-05/17.71, allocations: 10.5 kB / 6.012 GB, free: 88.23 MB / 1.245 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003604/17.71, allocations: 2.25 MB / 6.015 GB, free: 87.16 MB / 1.245 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004681/17.72, allocations: 3.075 MB / 6.018 GB, free: 85.73 MB / 1.245 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001652/17.72, allocations: 0.5131 MB / 6.018 GB, free: 85.5 MB / 1.245 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005119/17.72, allocations: 11.81 kB / 6.018 GB, free: 85.5 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002653/17.72, allocations: 264.7 kB / 6.018 GB, free: 85.49 MB / 1.245 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/17.72, allocations: 68.25 kB / 6.018 GB, free: 85.48 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000177/17.72, allocations: 63.84 kB / 6.018 GB, free: 85.48 MB / 1.245 GB Notification: Performance of sort global known variables: time 0.00197/17.72, allocations: 1.161 MB / 6.02 GB, free: 85.34 MB / 1.245 GB Notification: Performance of remove unused functions: time 0.01121/17.73, allocations: 3.588 MB / 6.023 GB, free: 85.16 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.01137/17.75, allocations: 8.277 MB / 6.031 GB, free: 80.9 MB / 1.245 GB Notification: Performance of simCode: created initialization part: time 0.006531/17.75, allocations: 2.826 MB / 6.034 GB, free: 80.75 MB / 1.245 GB Notification: Performance of simCode: created event and clocks part: time 1.467e-05/17.75, allocations: 3.719 kB / 6.034 GB, free: 80.75 MB / 1.245 GB Notification: Performance of simCode: created simulation system equations: time 0.001392/17.75, allocations: 0.6531 MB / 6.035 GB, free: 80.75 MB / 1.245 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004345/17.76, allocations: 0.7099 MB / 6.035 GB, free: 80.72 MB / 1.245 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008144/17.77, allocations: 3.244 MB / 6.038 GB, free: 79.73 MB / 1.245 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002108/17.77, allocations: 1.972 MB / 6.04 GB, free: 78.97 MB / 1.245 GB Notification: Performance of SimCode: time 1.122e-06/17.77, allocations: 0 / 6.04 GB, free: 78.97 MB / 1.245 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)