Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.conf.json 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/IDEAS 3.0.0-master/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: translateModel(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") translateModel(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.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/Complex 4.0.0+maint.om/package.mo): time 0.002136/0.002136, allocations: 179.1 kB / 7.463 MB, free: 2.484 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.5992/0.5992, allocations: 133.5 MB / 141.4 MB, free: 15.66 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.106/1.106, allocations: 221.3 MB / 395 MB, free: 10.26 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008296/0.0008293, allocations: 102.2 kB / 477.8 MB, free: 10.85 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 6.662e-06/6.672e-06, allocations: 2.781 kB / 0.5528 GB, free: 89.06 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1032, allocations: 82.3 MB / 0.6332 GB, free: 14.12 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.607/2.71, allocations: 1.863 GB / 2.496 GB, free: 100.6 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/2.71, allocations: 91.94 kB / 2.497 GB, free: 100.5 MB / 0.6823 GB Notification: Performance of FrontEnd: time 7.828/10.54, allocations: 2.84 GB / 5.336 GB, free: 5.703 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 0.0002815/10.54, allocations: 63.98 kB / 5.336 GB, free: 5.641 MB / 0.7761 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.008483/10.55, allocations: 3.555 MB / 5.34 GB, free: 2.004 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 2.962e-05/10.55, allocations: 8.031 kB / 5.34 GB, free: 1.996 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009438/10.56, allocations: 1.546 MB / 5.341 GB, free: 456 kB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005759/10.56, allocations: 2.609 MB / 5.344 GB, free: 13.76 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001198/10.56, allocations: 379.9 kB / 5.344 GB, free: 13.39 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000313/10.56, allocations: 136 kB / 5.344 GB, free: 13.25 MB / 0.7917 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004162/10.57, allocations: 2.55 MB / 5.347 GB, free: 10.7 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003584/10.57, allocations: 2.406 MB / 5.349 GB, free: 8.133 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.216e-05/10.57, allocations: 7.938 kB / 5.349 GB, free: 8.125 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001985/10.57, allocations: 4 kB / 5.349 GB, free: 8.121 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.076e-05/10.57, allocations: 98.52 kB / 5.349 GB, free: 8.023 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0189/10.59, allocations: 13.85 MB / 5.363 GB, free: 9.113 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001834/10.59, allocations: 1.403 MB / 5.364 GB, free: 7.664 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008303/10.59, allocations: 0.6322 MB / 5.365 GB, free: 7.031 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006669/10.59, allocations: 0.6491 MB / 5.365 GB, free: 6.254 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/10.59, allocations: 47.56 kB / 5.365 GB, free: 6.195 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=110): time 2.705e-06/10.59, allocations: 0 / 5.365 GB, free: 6.195 MB / 0.8073 GB Notification: Performance of matching and sorting (n=110): time 0.003116/10.6, allocations: 1.652 MB / 5.367 GB, free: 4.531 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.645e-05/10.6, allocations: 60.41 kB / 5.367 GB, free: 4.461 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001866/10.6, allocations: 1.569 MB / 5.369 GB, free: 2.867 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 0.0001225/10.6, allocations: 29.7 kB / 5.369 GB, free: 2.832 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005173/10.6, allocations: 0.95 MB / 5.37 GB, free: 1.859 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002621/10.6, allocations: 378.4 kB / 5.37 GB, free: 1.484 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001051/10.6, allocations: 4 kB / 5.37 GB, free: 1.48 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001265/10.6, allocations: 369.9 kB / 5.37 GB, free: 1.113 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001079/10.6, allocations: 0.6951 MB / 5.371 GB, free: 428 kB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2872/10.89, allocations: 1.336 MB / 5.372 GB, free: 118 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002149/10.89, allocations: 1.232 MB / 5.374 GB, free: 118 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.164e-06/10.89, allocations: 3.531 kB / 5.374 GB, free: 118 MB / 0.8073 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003782/10.89, allocations: 2.434 MB / 5.376 GB, free: 117.9 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006681/10.9, allocations: 5.568 MB / 5.381 GB, free: 112.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/10.9, allocations: 17.84 kB / 5.381 GB, free: 112.2 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.156e-05/10.9, allocations: 21.28 kB / 5.381 GB, free: 112.2 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002771/10.9, allocations: 0.5808 MB / 5.382 GB, free: 112.2 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008297/10.9, allocations: 2.41 MB / 5.384 GB, free: 109.8 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003171/10.9, allocations: 0.504 MB / 5.385 GB, free: 109.8 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001745/10.9, allocations: 89.09 kB / 5.385 GB, free: 109.8 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 6.402e-06/10.9, allocations: 3.969 kB / 5.385 GB, free: 109.8 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003325/10.91, allocations: 2.18 MB / 5.387 GB, free: 109.8 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/10.91, allocations: 16.19 kB / 5.387 GB, free: 109.8 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/10.91, allocations: 23.84 kB / 5.387 GB, free: 109.8 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002323/10.91, allocations: 0.5502 MB / 5.388 GB, free: 109.8 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.623e-05/10.91, allocations: 33.23 kB / 5.388 GB, free: 109.8 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002425/10.91, allocations: 400.1 kB / 5.388 GB, free: 109.8 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001675/10.91, allocations: 92.81 kB / 5.388 GB, free: 109.8 MB / 0.8073 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.0003214/10.91, allocations: 162.8 kB / 5.388 GB, free: 109.7 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002858/10.91, allocations: 226 kB / 5.388 GB, free: 109.7 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002632/10.91, allocations: 1.695 MB / 5.39 GB, free: 109.6 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/10.91, allocations: 10.5 kB / 5.39 GB, free: 109.6 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/10.91, allocations: 0 / 5.39 GB, free: 109.6 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/10.91, allocations: 7.125 kB / 5.39 GB, free: 109.6 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005331/10.92, allocations: 4.047 MB / 5.394 GB, free: 109 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.241e-06/10.92, allocations: 8.438 kB / 5.394 GB, free: 109 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001613/10.92, allocations: 325.2 kB / 5.394 GB, free: 109 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.135e-05/10.92, allocations: 9.438 kB / 5.394 GB, free: 109 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.429e-05/10.92, allocations: 18.14 kB / 5.394 GB, free: 109 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000628/10.92, allocations: 2.382 MB / 5.397 GB, free: 106.7 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/10.92, allocations: 6.812 kB / 5.397 GB, free: 106.7 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002126/10.92, allocations: 2.238 MB / 5.399 GB, free: 105.6 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007813/10.92, allocations: 0.5183 MB / 5.399 GB, free: 105.4 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003264/10.92, allocations: 10.66 kB / 5.399 GB, free: 105.4 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002125/10.93, allocations: 260.8 kB / 5.4 GB, free: 105.4 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/10.93, allocations: 64.75 kB / 5.4 GB, free: 105.4 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001253/10.93, allocations: 69.3 kB / 5.4 GB, free: 105.4 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.001314/10.93, allocations: 1.152 MB / 5.401 GB, free: 105.3 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.004136/10.93, allocations: 1.755 MB / 5.403 GB, free: 105.2 MB / 0.8073 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.008318/10.94, allocations: 8.276 MB / 5.411 GB, free: 101 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.004621/10.95, allocations: 2.825 MB / 5.414 GB, free: 100.9 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/10.95, allocations: 3.875 kB / 5.414 GB, free: 100.9 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0009847/10.95, allocations: 0.6565 MB / 5.414 GB, free: 100.9 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003266/10.95, allocations: 0.6985 MB / 5.415 GB, free: 100.9 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005886/10.96, allocations: 3.247 MB / 5.418 GB, free: 99.88 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001695/10.96, allocations: 1.973 MB / 5.42 GB, free: 99.12 MB / 0.8073 GB Notification: Performance of SimCode: time 8.42e-07/10.96, allocations: 0 / 5.42 GB, free: 99.12 MB / 0.8073 GB Notification: Performance of Templates: time 0.1039/11.06, allocations: 81.63 MB / 5.5 GB, free: 95.36 MB / 0.8073 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & ./IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)