Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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: "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="IDEAS_IDEAS_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/Complex 4.0.0+maint.om/package.mo): time 0.004395/0.004395, allocations: 179.5 kB / 7.454 MB, free: 2.523 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7603/0.7603, allocations: 133.5 MB / 141.4 MB, free: 15.77 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.001/2.001, allocations: 221.3 MB / 395 MB, free: 10.25 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.001354/0.001354, allocations: 93.7 kB / 477.8 MB, free: 10.82 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5611/0.5625, allocations: 88.42 MB / 0.5529 GB, free: 88.92 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2021/0.7646, allocations: 82.31 MB / 0.6333 GB, free: 14.02 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.132/4.896, allocations: 1.863 GB / 2.497 GB, free: 96.88 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003663/4.897, allocations: 91.89 kB / 2.497 GB, free: 96.79 MB / 0.6823 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 10.92/15.81, allocations: 2.843 GB / 5.34 GB, free: 2.199 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 5.768e-05/15.81, allocations: 8 kB / 5.34 GB, free: 2.191 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01264/15.82, allocations: 1.546 MB / 5.341 GB, free: 0.6406 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009196/15.83, allocations: 2.606 MB / 5.344 GB, free: 13.96 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001384/15.84, allocations: 379.8 kB / 5.344 GB, free: 13.58 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001124/15.84, allocations: 140 kB / 5.344 GB, free: 13.45 MB / 0.7917 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006108/15.84, allocations: 2.546 MB / 5.347 GB, free: 10.89 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005334/15.85, allocations: 2.414 MB / 5.349 GB, free: 8.32 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.81e-05/15.85, allocations: 3.938 kB / 5.349 GB, free: 8.316 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003123/15.85, allocations: 8 kB / 5.349 GB, free: 8.309 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001095/15.85, allocations: 88 kB / 5.349 GB, free: 8.219 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02758/15.88, allocations: 13.85 MB / 5.363 GB, free: 9.324 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002382/15.88, allocations: 1.407 MB / 5.364 GB, free: 7.871 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00104/15.88, allocations: 0.6323 MB / 5.365 GB, free: 7.238 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008392/15.88, allocations: 0.6413 MB / 5.365 GB, free: 6.469 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.911e-05/15.88, allocations: 59.5 kB / 5.365 GB, free: 6.398 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=110): time 3.817e-06/15.88, allocations: 0 / 5.365 GB, free: 6.398 MB / 0.8073 GB Notification: Performance of matching and sorting (n=110): time 0.004162/15.88, allocations: 1.645 MB / 5.367 GB, free: 4.742 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/15.88, allocations: 68.41 kB / 5.367 GB, free: 4.664 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002946/15.89, allocations: 1.561 MB / 5.369 GB, free: 3.078 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 0.0003354/15.89, allocations: 33.7 kB / 5.369 GB, free: 3.039 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007178/15.89, allocations: 0.9539 MB / 5.37 GB, free: 2.062 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003871/15.89, allocations: 374.4 kB / 5.37 GB, free: 1.691 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001166/15.89, allocations: 8 kB / 5.37 GB, free: 1.684 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001709/15.89, allocations: 369.9 kB / 5.37 GB, free: 1.316 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001162/15.89, allocations: 0.6873 MB / 5.371 GB, free: 0.625 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.6551/16.55, allocations: 1.338 MB / 5.372 GB, free: 116.2 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002876/16.55, allocations: 1.229 MB / 5.374 GB, free: 116.2 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-05/16.55, allocations: 7.375 kB / 5.374 GB, free: 116.2 MB / 0.8073 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.005437/16.55, allocations: 2.439 MB / 5.376 GB, free: 116.1 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.001783/16.56, allocations: 5.563 MB / 5.381 GB, free: 110.4 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.69e-05/16.56, allocations: 14.12 kB / 5.381 GB, free: 110.4 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.204e-05/16.56, allocations: 23.78 kB / 5.381 GB, free: 110.4 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003138/16.56, allocations: 0.5936 MB / 5.382 GB, free: 110.4 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/16.56, allocations: 2.406 MB / 5.384 GB, free: 108 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004449/16.57, allocations: 0.5 MB / 5.385 GB, free: 108 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000282/16.57, allocations: 90.78 kB / 5.385 GB, free: 108 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/16.57, allocations: 3.906 kB / 5.385 GB, free: 108 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004263/16.57, allocations: 2.184 MB / 5.387 GB, free: 108 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.626e-05/16.57, allocations: 13.72 kB / 5.387 GB, free: 108 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.355e-05/16.57, allocations: 23.47 kB / 5.387 GB, free: 108 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00253/16.57, allocations: 0.556 MB / 5.388 GB, free: 108 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.701e-05/16.57, allocations: 30.19 kB / 5.388 GB, free: 108 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003747/16.58, allocations: 398.9 kB / 5.388 GB, free: 108 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002435/16.58, allocations: 92.09 kB / 5.388 GB, free: 108 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.0007148/16.58, allocations: 163.9 kB / 5.388 GB, free: 107.9 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005781/16.58, allocations: 218.5 kB / 5.388 GB, free: 107.8 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003645/16.58, allocations: 1.7 MB / 5.39 GB, free: 107.7 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.609e-05/16.58, allocations: 10.25 kB / 5.39 GB, free: 107.7 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/16.58, allocations: 3.5 kB / 5.39 GB, free: 107.7 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/16.58, allocations: 3.844 kB / 5.39 GB, free: 107.7 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007994/16.59, allocations: 4.041 MB / 5.394 GB, free: 107.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/16.59, allocations: 3.938 kB / 5.394 GB, free: 107.2 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001774/16.59, allocations: 331.3 kB / 5.394 GB, free: 107.2 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.656e-05/16.59, allocations: 11.06 kB / 5.394 GB, free: 107.2 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.529e-05/16.59, allocations: 17.47 kB / 5.394 GB, free: 107.2 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008839/16.59, allocations: 2.383 MB / 5.397 GB, free: 104.9 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.161e-05/16.59, allocations: 11.03 kB / 5.397 GB, free: 104.9 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003699/16.6, allocations: 2.234 MB / 5.399 GB, free: 103.8 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006409/16.6, allocations: 3.088 MB / 5.402 GB, free: 102.4 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002426/16.6, allocations: 0.5117 MB / 5.402 GB, free: 102.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001119/16.61, allocations: 10.36 kB / 5.402 GB, free: 102.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003556/16.61, allocations: 268.9 kB / 5.403 GB, free: 102.2 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001763/16.61, allocations: 66.86 kB / 5.403 GB, free: 102.2 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002553/16.61, allocations: 67.03 kB / 5.403 GB, free: 102.2 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.003171/16.61, allocations: 1.159 MB / 5.404 GB, free: 102 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.01777/16.63, allocations: 3.583 MB / 5.408 GB, free: 101.9 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.01527/16.65, allocations: 8.28 MB / 5.416 GB, free: 97.78 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.008257/16.65, allocations: 2.821 MB / 5.418 GB, free: 97.63 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.938e-05/16.65, allocations: 3.438 kB / 5.418 GB, free: 97.63 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.001622/16.66, allocations: 0.6585 MB / 5.419 GB, free: 97.62 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005017/16.66, allocations: 0.708 MB / 5.42 GB, free: 97.61 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01166/16.67, allocations: 3.249 MB / 5.423 GB, free: 96.62 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00413/16.68, allocations: 1.974 MB / 5.425 GB, free: 95.86 MB / 0.8073 GB Notification: Performance of SimCode: time 1.844e-06/16.68, allocations: 3.844 kB / 5.425 GB, free: 95.86 MB / 0.8073 GB (rm -f IDEAS_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo IDEAS_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/IDEAS_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > IDEAS_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)