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: translateModel(BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") translateModel(BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") [: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.8535/0.8535, allocations: 141.8 MB / 149.1 MB, free: 4.48 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 183.2 kB / 181.9 MB, free: 152 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.692/1.692, allocations: 221.4 MB / 436 MB, free: 9.285 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.001065/0.001065, allocations: 109.3 kB / 0.507 GB, free: 24.3 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001863/0.001863, allocations: 284.9 kB / 0.5884 GB, free: 12.32 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 9.828e-06/9.858e-06, allocations: 0 / 0.6759 GB, free: 2.703 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6022/0.6023, allocations: 82.76 MB / 0.7567 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.381/4.983, allocations: 1.861 GB / 2.617 GB, free: 217 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002847/4.983, allocations: 96.58 kB / 2.617 GB, free: 216.9 MB / 0.6982 GB Notification: Performance of FrontEnd: time 11.36/16.34, allocations: 2.84 GB / 5.457 GB, free: 58.39 MB / 0.8075 GB Notification: Performance of Transformations before backend: time 0.000478/16.35, allocations: 68.67 kB / 5.457 GB, free: 58.39 MB / 0.8075 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 0.01726/16.36, allocations: 3.561 MB / 5.461 GB, free: 56.98 MB / 0.8075 GB Notification: Performance of prepare preOptimizeDAE: time 6.246e-05/16.36, allocations: 11.19 kB / 5.461 GB, free: 56.98 MB / 0.8075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0125/16.38, allocations: 1.546 MB / 5.462 GB, free: 56.82 MB / 0.8075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01032/16.39, allocations: 2.606 MB / 5.465 GB, free: 56.33 MB / 0.8075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001444/16.39, allocations: 386.7 kB / 5.465 GB, free: 56.32 MB / 0.8075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001258/16.39, allocations: 133.8 kB / 5.466 GB, free: 56.32 MB / 0.8075 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006789/16.4, allocations: 2.547 MB / 5.468 GB, free: 56.31 MB / 0.8075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006995/16.4, allocations: 2.416 MB / 5.47 GB, free: 55.91 MB / 0.8075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.112e-05/16.4, allocations: 7.344 kB / 5.47 GB, free: 55.91 MB / 0.8075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005718/16.4, allocations: 2.594 kB / 5.47 GB, free: 55.91 MB / 0.8075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001071/16.4, allocations: 90.25 kB / 5.47 GB, free: 55.91 MB / 0.8075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02744/16.43, allocations: 13.84 MB / 5.484 GB, free: 48.52 MB / 0.8075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002302/16.43, allocations: 1.404 MB / 5.485 GB, free: 48.31 MB / 0.8075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009871/16.43, allocations: 0.6302 MB / 5.486 GB, free: 48.3 MB / 0.8075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007325/16.43, allocations: 0.6468 MB / 5.487 GB, free: 47.64 MB / 0.8075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.933e-05/16.43, allocations: 50.97 kB / 5.487 GB, free: 47.6 MB / 0.8075 GB Notification: Performance of pre-optimization done (n=110): time 3.596e-06/16.43, allocations: 3.469 kB / 5.487 GB, free: 47.6 MB / 0.8075 GB Notification: Performance of matching and sorting (n=110): time 0.004072/16.44, allocations: 1.648 MB / 5.488 GB, free: 47.44 MB / 0.8075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.701e-05/16.44, allocations: 62.84 kB / 5.488 GB, free: 47.38 MB / 0.8075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003409/16.44, allocations: 1.565 MB / 5.49 GB, free: 47.14 MB / 0.8075 GB Notification: Performance of collectPreVariables (initialization): time 0.0003098/16.44, allocations: 33.7 kB / 5.49 GB, free: 47.11 MB / 0.8075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007378/16.44, allocations: 0.9502 MB / 5.491 GB, free: 46.55 MB / 0.8075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003568/16.44, allocations: 368.2 kB / 5.491 GB, free: 46.31 MB / 0.8075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001638/16.44, allocations: 6.75 kB / 5.491 GB, free: 46.31 MB / 0.8075 GB Notification: Performance of setup shared object (initialization): time 0.000122/16.44, allocations: 377.2 kB / 5.492 GB, free: 46 MB / 0.8075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00126/16.45, allocations: 0.6912 MB / 5.492 GB, free: 46 MB / 0.8075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001508/16.45, allocations: 1.34 MB / 5.494 GB, free: 45.24 MB / 0.8075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00252/16.45, allocations: 1.229 MB / 5.495 GB, free: 45.21 MB / 0.8075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.85e-05/16.45, allocations: 3.531 kB / 5.495 GB, free: 45.21 MB / 0.8075 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.005023/16.45, allocations: 2.442 MB / 5.497 GB, free: 45.05 MB / 0.8075 GB Notification: Performance of prepare postOptimizeDAE: time 0.001226/16.46, allocations: 5.555 MB / 5.503 GB, free: 39.25 MB / 0.8075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.383e-05/16.46, allocations: 19.66 kB / 5.503 GB, free: 39.25 MB / 0.8075 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.602e-05/16.46, allocations: 25.97 kB / 5.503 GB, free: 39.25 MB / 0.8075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003057/16.46, allocations: 0.5795 MB / 5.503 GB, free: 39.25 MB / 0.8075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001067/16.46, allocations: 2.414 MB / 5.505 GB, free: 36.91 MB / 0.8075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004121/16.46, allocations: 0.5002 MB / 5.506 GB, free: 36.82 MB / 0.8075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002916/16.46, allocations: 96.64 kB / 5.506 GB, free: 36.82 MB / 0.8075 GB Notification: Performance of prepare postOptimizeDAE: time 9.668e-06/16.46, allocations: 6.078 kB / 5.506 GB, free: 36.82 MB / 0.8075 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004153/16.47, allocations: 2.184 MB / 5.508 GB, free: 36.79 MB / 0.8075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-05/16.47, allocations: 17.31 kB / 5.508 GB, free: 36.79 MB / 0.8075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.962e-05/16.47, allocations: 24 kB / 5.508 GB, free: 36.79 MB / 0.8075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002535/16.47, allocations: 0.5472 MB / 5.509 GB, free: 36.79 MB / 0.8075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.968e-05/16.47, allocations: 35.47 kB / 5.509 GB, free: 36.79 MB / 0.8075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003469/16.47, allocations: 398.5 kB / 5.509 GB, free: 36.73 MB / 0.8075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002569/16.47, allocations: 91.62 kB / 5.509 GB, free: 36.73 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.0005733/16.48, allocations: 160.1 kB / 5.509 GB, free: 36.62 MB / 0.8075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007946/16.48, allocations: 220.3 kB / 5.51 GB, free: 36.5 MB / 0.8075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00352/16.48, allocations: 1.692 MB / 5.511 GB, free: 36.4 MB / 0.8075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/16.48, allocations: 9.75 kB / 5.511 GB, free: 36.4 MB / 0.8075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/16.48, allocations: 0 / 5.511 GB, free: 36.4 MB / 0.8075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/16.48, allocations: 6.609 kB / 5.511 GB, free: 36.4 MB / 0.8075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008662/16.49, allocations: 4.051 MB / 5.515 GB, free: 35.86 MB / 0.8075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.427e-05/16.49, allocations: 9.344 kB / 5.515 GB, free: 35.86 MB / 0.8075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0018/16.49, allocations: 334.2 kB / 5.516 GB, free: 35.85 MB / 0.8075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-05/16.49, allocations: 11.66 kB / 5.516 GB, free: 35.85 MB / 0.8075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001397/16.49, allocations: 14.83 kB / 5.516 GB, free: 35.85 MB / 0.8075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000896/16.49, allocations: 2.379 MB / 5.518 GB, free: 33.52 MB / 0.8075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.948e-06/16.49, allocations: 8.938 kB / 5.518 GB, free: 33.52 MB / 0.8075 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003424/16.5, allocations: 2.243 MB / 5.52 GB, free: 32.45 MB / 0.8075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001796/16.5, allocations: 0.5118 MB / 5.521 GB, free: 32.22 MB / 0.8075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008645/16.5, allocations: 9.906 kB / 5.521 GB, free: 32.22 MB / 0.8075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003062/16.5, allocations: 262.7 kB / 5.521 GB, free: 32.21 MB / 0.8075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/16.5, allocations: 68.08 kB / 5.521 GB, free: 32.2 MB / 0.8075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002096/16.5, allocations: 67.2 kB / 5.521 GB, free: 32.2 MB / 0.8075 GB Notification: Performance of sort global known variables: time 0.002398/16.5, allocations: 1.156 MB / 5.522 GB, free: 32.06 MB / 0.8075 GB Notification: Performance of remove unused functions: time 0.008575/16.51, allocations: 1.743 MB / 5.524 GB, free: 31.89 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.01401/16.53, allocations: 8.291 MB / 5.532 GB, free: 27.7 MB / 0.8075 GB Notification: Performance of simCode: created initialization part: time 0.006403/16.53, allocations: 2.82 MB / 5.535 GB, free: 27.54 MB / 0.8075 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-05/16.53, allocations: 4.344 kB / 5.535 GB, free: 27.54 MB / 0.8075 GB Notification: Performance of simCode: created simulation system equations: time 0.001291/16.53, allocations: 0.6553 MB / 5.535 GB, free: 27.54 MB / 0.8075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004377/16.54, allocations: 0.7157 MB / 5.536 GB, free: 27.51 MB / 0.8075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008032/16.55, allocations: 3.253 MB / 5.539 GB, free: 26.52 MB / 0.8075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002097/16.55, allocations: 1.971 MB / 5.541 GB, free: 25.76 MB / 0.8075 GB Notification: Performance of SimCode: time 1.623e-06/16.55, allocations: 0 / 5.541 GB, free: 25.76 MB / 0.8075 GB Notification: Performance of Templates: time 0.1328/16.68, allocations: 81.7 MB / 5.621 GB, free: 18.8 MB / 0.8075 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)