Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7031/0.7031, allocations: 141.8 MB / 149.1 MB, free: 12.85 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 174.3 kB / 181.9 MB, free: 9.594 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.242/1.242, allocations: 221.3 MB / 436 MB, free: 2.023 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009048/0.0009049, allocations: 91.58 kB / 0.507 GB, free: 10.84 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001898/0.001898, allocations: 295.4 kB / 0.5885 GB, free: 7.676 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1725/0.1744, allocations: 89.63 MB / 0.676 GB, free: 13.95 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3574/0.5318, allocations: 82.77 MB / 0.7568 GB, free: 138.8 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.403/3.935, allocations: 1.861 GB / 2.617 GB, free: 174.8 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001905/3.935, allocations: 100.6 kB / 2.618 GB, free: 174.7 MB / 0.6982 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.366/13.3, allocations: 2.843 GB / 5.461 GB, free: 52.75 MB / 0.8075 GB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/13.3, allocations: 9.969 kB / 5.461 GB, free: 52.75 MB / 0.8075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01194/13.31, allocations: 1.547 MB / 5.463 GB, free: 52.59 MB / 0.8075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008902/13.32, allocations: 2.606 MB / 5.465 GB, free: 52.05 MB / 0.8075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001339/13.32, allocations: 381.2 kB / 5.465 GB, free: 52.04 MB / 0.8075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009244/13.32, allocations: 133 kB / 5.466 GB, free: 52.04 MB / 0.8075 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006055/13.33, allocations: 2.55 MB / 5.468 GB, free: 52.03 MB / 0.8075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00579/13.34, allocations: 2.418 MB / 5.47 GB, free: 51.63 MB / 0.8075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.169e-05/13.34, allocations: 0.6562 kB / 5.47 GB, free: 51.63 MB / 0.8075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005488/13.34, allocations: 5.531 kB / 5.47 GB, free: 51.63 MB / 0.8075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000101/13.34, allocations: 95.02 kB / 5.471 GB, free: 51.62 MB / 0.8075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02426/13.36, allocations: 13.83 MB / 5.484 GB, free: 44.25 MB / 0.8075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002146/13.36, allocations: 1.41 MB / 5.485 GB, free: 44.03 MB / 0.8075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009525/13.36, allocations: 0.6261 MB / 5.486 GB, free: 44.02 MB / 0.8075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007557/13.37, allocations: 0.6549 MB / 5.487 GB, free: 43.36 MB / 0.8075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.6e-05/13.37, allocations: 47.88 kB / 5.487 GB, free: 43.32 MB / 0.8075 GB Notification: Performance of pre-optimization done (n=110): time 3.566e-06/13.37, allocations: 1.062 kB / 5.487 GB, free: 43.32 MB / 0.8075 GB Notification: Performance of matching and sorting (n=110): time 0.003899/13.37, allocations: 1.65 MB / 5.488 GB, free: 43.16 MB / 0.8075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.425e-05/13.37, allocations: 65 kB / 5.488 GB, free: 43.09 MB / 0.8075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003093/13.37, allocations: 1.562 MB / 5.49 GB, free: 42.87 MB / 0.8075 GB Notification: Performance of collectPreVariables (initialization): time 0.0002968/13.37, allocations: 35.17 kB / 5.49 GB, free: 42.84 MB / 0.8075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006196/13.37, allocations: 0.9539 MB / 5.491 GB, free: 42.27 MB / 0.8075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003133/13.37, allocations: 376.4 kB / 5.491 GB, free: 42.02 MB / 0.8075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001644/13.37, allocations: 5.938 kB / 5.491 GB, free: 42.02 MB / 0.8075 GB Notification: Performance of setup shared object (initialization): time 9.836e-05/13.37, allocations: 369.4 kB / 5.492 GB, free: 41.72 MB / 0.8075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001103/13.37, allocations: 0.6944 MB / 5.492 GB, free: 41.71 MB / 0.8075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001414/13.38, allocations: 1.338 MB / 5.494 GB, free: 40.95 MB / 0.8075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002579/13.38, allocations: 1.228 MB / 5.495 GB, free: 40.92 MB / 0.8075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.37e-05/13.38, allocations: 2.969 kB / 5.495 GB, free: 40.92 MB / 0.8075 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004837/13.38, allocations: 2.439 MB / 5.497 GB, free: 40.76 MB / 0.8075 GB Notification: Performance of prepare postOptimizeDAE: time 0.001034/13.38, allocations: 5.567 MB / 5.503 GB, free: 34.96 MB / 0.8075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.358e-05/13.38, allocations: 13.09 kB / 5.503 GB, free: 34.96 MB / 0.8075 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.91e-05/13.38, allocations: 24.47 kB / 5.503 GB, free: 34.96 MB / 0.8075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003159/13.39, allocations: 0.5819 MB / 5.503 GB, free: 34.96 MB / 0.8075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001036/13.39, allocations: 2.412 MB / 5.506 GB, free: 32.62 MB / 0.8075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004113/13.39, allocations: 0.5022 MB / 5.506 GB, free: 32.53 MB / 0.8075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002947/13.39, allocations: 98.73 kB / 5.506 GB, free: 32.53 MB / 0.8075 GB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/13.39, allocations: 3.312 kB / 5.506 GB, free: 32.53 MB / 0.8075 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004946/13.4, allocations: 2.175 MB / 5.508 GB, free: 32.5 MB / 0.8075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.447e-05/13.4, allocations: 15.78 kB / 5.508 GB, free: 32.5 MB / 0.8075 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.299e-05/13.4, allocations: 28.59 kB / 5.508 GB, free: 32.5 MB / 0.8075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002978/13.4, allocations: 0.5538 MB / 5.509 GB, free: 32.5 MB / 0.8075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.57e-05/13.4, allocations: 27.09 kB / 5.509 GB, free: 32.5 MB / 0.8075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003842/13.41, allocations: 401.3 kB / 5.509 GB, free: 32.44 MB / 0.8075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002751/13.41, allocations: 94.2 kB / 5.509 GB, free: 32.44 MB / 0.8075 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.0006154/13.41, allocations: 156.7 kB / 5.509 GB, free: 32.32 MB / 0.8075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007782/13.41, allocations: 223.7 kB / 5.51 GB, free: 32.21 MB / 0.8075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003344/13.41, allocations: 1.695 MB / 5.511 GB, free: 32.11 MB / 0.8075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/13.41, allocations: 10.38 kB / 5.511 GB, free: 32.11 MB / 0.8075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/13.41, allocations: 0 / 5.511 GB, free: 32.11 MB / 0.8075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/13.41, allocations: 8.844 kB / 5.511 GB, free: 32.11 MB / 0.8075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007083/13.42, allocations: 4.049 MB / 5.515 GB, free: 31.53 MB / 0.8075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/13.42, allocations: 5.812 kB / 5.515 GB, free: 31.53 MB / 0.8075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001786/13.42, allocations: 339.4 kB / 5.516 GB, free: 31.5 MB / 0.8075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.699e-05/13.42, allocations: 10.19 kB / 5.516 GB, free: 31.5 MB / 0.8075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.304e-05/13.42, allocations: 17.27 kB / 5.516 GB, free: 31.5 MB / 0.8075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007941/13.42, allocations: 2.377 MB / 5.518 GB, free: 29.16 MB / 0.8075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.755e-06/13.42, allocations: 9.469 kB / 5.518 GB, free: 29.16 MB / 0.8075 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003/13.42, allocations: 2.239 MB / 5.52 GB, free: 28.09 MB / 0.8075 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004211/13.43, allocations: 3.086 MB / 5.523 GB, free: 26.64 MB / 0.8075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001224/13.43, allocations: 0.5054 MB / 5.524 GB, free: 26.42 MB / 0.8075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005892/13.43, allocations: 10.62 kB / 5.524 GB, free: 26.42 MB / 0.8075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002719/13.43, allocations: 263.4 kB / 5.524 GB, free: 26.41 MB / 0.8075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/13.43, allocations: 75.98 kB / 5.524 GB, free: 26.4 MB / 0.8075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001532/13.43, allocations: 61.36 kB / 5.524 GB, free: 26.4 MB / 0.8075 GB Notification: Performance of sort global known variables: time 0.00191/13.43, allocations: 1.161 MB / 5.525 GB, free: 26.25 MB / 0.8075 GB Notification: Performance of remove unused functions: time 0.01017/13.44, allocations: 3.585 MB / 5.529 GB, free: 26.08 MB / 0.8075 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.01072/13.46, allocations: 8.293 MB / 5.537 GB, free: 21.82 MB / 0.8075 GB Notification: Performance of simCode: created initialization part: time 0.006552/13.46, allocations: 2.822 MB / 5.54 GB, free: 21.57 MB / 0.8075 GB Notification: Performance of simCode: created event and clocks part: time 1.184e-05/13.46, allocations: 10.27 kB / 5.54 GB, free: 21.57 MB / 0.8075 GB Notification: Performance of simCode: created simulation system equations: time 0.001432/13.46, allocations: 0.6591 MB / 5.54 GB, free: 21.54 MB / 0.8075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004101/13.47, allocations: 0.7011 MB / 5.541 GB, free: 21.51 MB / 0.8075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008202/13.48, allocations: 3.256 MB / 5.544 GB, free: 20.49 MB / 0.8075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001992/13.48, allocations: 1.974 MB / 5.546 GB, free: 19.74 MB / 0.8075 GB Notification: Performance of SimCode: time 8.22e-07/13.48, allocations: 0 / 5.546 GB, free: 19.74 MB / 0.8075 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)