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: "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="IDEAS_dev_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.004517/0.004517, allocations: 187 kB / 7.46 MB, free: 2.52 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7036/0.7036, allocations: 133.5 MB / 141.4 MB, free: 15.7 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.564/1.564, allocations: 221.3 MB / 395 MB, free: 10.21 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.001031/0.001031, allocations: 106.7 kB / 477.8 MB, free: 10.84 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.45/0.4511, allocations: 88.43 MB / 0.5529 GB, free: 89.18 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1932/0.6443, allocations: 82.3 MB / 0.6333 GB, free: 14.01 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.801/4.445, allocations: 1.863 GB / 2.497 GB, free: 98.36 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/4.445, allocations: 95.94 kB / 2.497 GB, free: 98.27 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.73/15.17, allocations: 2.843 GB / 5.34 GB, free: 15.38 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/15.17, allocations: 8 kB / 5.34 GB, free: 15.37 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01271/15.18, allocations: 1.549 MB / 5.341 GB, free: 13.81 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01031/15.19, allocations: 2.606 MB / 5.344 GB, free: 11.13 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001442/15.2, allocations: 375.9 kB / 5.344 GB, free: 10.76 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001463/15.2, allocations: 144 kB / 5.344 GB, free: 10.62 MB / 0.7917 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005932/15.2, allocations: 2.546 MB / 5.347 GB, free: 8.062 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004649/15.21, allocations: 2.406 MB / 5.349 GB, free: 5.5 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.642e-05/15.21, allocations: 7.938 kB / 5.349 GB, free: 5.492 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002449/15.21, allocations: 4 kB / 5.349 GB, free: 5.488 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.78e-05/15.21, allocations: 88 kB / 5.349 GB, free: 5.398 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02811/15.24, allocations: 13.86 MB / 5.363 GB, free: 6.477 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00226/15.24, allocations: 1.407 MB / 5.364 GB, free: 5.023 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009492/15.24, allocations: 0.6284 MB / 5.365 GB, free: 4.395 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009099/15.24, allocations: 0.649 MB / 5.365 GB, free: 3.617 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.495e-05/15.24, allocations: 63.75 kB / 5.366 GB, free: 3.543 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=110): time 4.318e-06/15.24, allocations: 0 / 5.366 GB, free: 3.543 MB / 0.8073 GB Notification: Performance of matching and sorting (n=110): time 0.004198/15.24, allocations: 1.641 MB / 5.367 GB, free: 1.891 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/15.24, allocations: 64.41 kB / 5.367 GB, free: 1.816 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002907/15.25, allocations: 1.565 MB / 5.369 GB, free: 232 kB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 0.0003412/15.25, allocations: 29.7 kB / 5.369 GB, free: 196 kB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.5764/15.82, allocations: 0.9563 MB / 5.37 GB, free: 117.7 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005884/15.82, allocations: 370.7 kB / 5.37 GB, free: 117.5 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002143/15.83, allocations: 3.844 kB / 5.37 GB, free: 117.5 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001385/15.83, allocations: 371 kB / 5.37 GB, free: 117.2 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001208/15.83, allocations: 0.6868 MB / 5.371 GB, free: 117.2 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001294/15.83, allocations: 1.342 MB / 5.372 GB, free: 116.5 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002202/15.83, allocations: 1.232 MB / 5.374 GB, free: 116.5 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/15.83, allocations: 3.938 kB / 5.374 GB, free: 116.5 MB / 0.8073 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004357/15.83, allocations: 2.437 MB / 5.376 GB, free: 116.3 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.001007/15.84, allocations: 5.554 MB / 5.381 GB, free: 110.5 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.199e-05/15.84, allocations: 21.11 kB / 5.381 GB, free: 110.5 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.511e-05/15.84, allocations: 26.56 kB / 5.381 GB, free: 110.5 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003011/15.84, allocations: 0.5821 MB / 5.382 GB, free: 110.5 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001083/15.84, allocations: 2.413 MB / 5.384 GB, free: 108.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004143/15.84, allocations: 0.5038 MB / 5.385 GB, free: 108.1 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002534/15.84, allocations: 96.64 kB / 5.385 GB, free: 108.1 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.477e-06/15.84, allocations: 3.75 kB / 5.385 GB, free: 108.1 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004228/15.85, allocations: 2.18 MB / 5.387 GB, free: 108.1 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.257e-05/15.85, allocations: 14.16 kB / 5.387 GB, free: 108.1 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.841e-05/15.85, allocations: 24.12 kB / 5.387 GB, free: 108.1 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002542/15.85, allocations: 0.5544 MB / 5.388 GB, free: 108.1 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.526e-05/15.85, allocations: 31.45 kB / 5.388 GB, free: 108.1 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00352/15.85, allocations: 407.7 kB / 5.388 GB, free: 108.1 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002275/15.85, allocations: 90 kB / 5.388 GB, free: 108.1 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.0006286/15.86, allocations: 160.3 kB / 5.388 GB, free: 107.9 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006401/15.86, allocations: 220.8 kB / 5.388 GB, free: 107.8 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003351/15.86, allocations: 1.689 MB / 5.39 GB, free: 107.7 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/15.86, allocations: 11.69 kB / 5.39 GB, free: 107.7 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/15.86, allocations: 3.906 kB / 5.39 GB, free: 107.7 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/15.86, allocations: 7.359 kB / 5.39 GB, free: 107.7 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007359/15.87, allocations: 4.043 MB / 5.394 GB, free: 107.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.348e-06/15.87, allocations: 5.781 kB / 5.394 GB, free: 107.2 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001778/15.87, allocations: 319.4 kB / 5.394 GB, free: 107.2 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.528e-05/15.87, allocations: 11.16 kB / 5.394 GB, free: 107.2 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.611e-05/15.87, allocations: 20.48 kB / 5.394 GB, free: 107.2 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007906/15.87, allocations: 2.384 MB / 5.397 GB, free: 104.9 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/15.87, allocations: 11.38 kB / 5.397 GB, free: 104.9 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003108/15.87, allocations: 2.239 MB / 5.399 GB, free: 103.8 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004796/15.88, allocations: 3.077 MB / 5.402 GB, free: 102.4 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001549/15.88, allocations: 0.5096 MB / 5.402 GB, free: 102.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004174/15.88, allocations: 17.2 kB / 5.402 GB, free: 102.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002455/15.88, allocations: 261 kB / 5.403 GB, free: 102.2 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/15.88, allocations: 72.59 kB / 5.403 GB, free: 102.2 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000155/15.88, allocations: 66 kB / 5.403 GB, free: 102.2 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.00194/15.88, allocations: 1.155 MB / 5.404 GB, free: 102 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.01323/15.9, allocations: 3.59 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.01253/15.91, allocations: 8.278 MB / 5.416 GB, free: 97.79 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.006113/15.92, allocations: 2.82 MB / 5.418 GB, free: 97.63 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.306e-05/15.92, allocations: 3.438 kB / 5.418 GB, free: 97.63 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.001224/15.92, allocations: 0.6659 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.004132/15.92, allocations: 0.7086 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.007732/15.93, allocations: 3.25 MB / 5.423 GB, free: 96.62 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002077/15.93, allocations: 1.98 MB / 5.425 GB, free: 95.86 MB / 0.8073 GB Notification: Performance of SimCode: time 1.172e-06/15.93, allocations: 0 / 5.425 GB, free: 95.86 MB / 0.8073 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)