Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.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.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="IDEAS_IDEAS_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="IDEAS_IDEAS_Fluid_Sources_Examples_TraceSubstancesFlowSource",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.003864/0.003864, allocations: 183.3 kB / 7.456 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7032/0.7032, allocations: 133.5 MB / 141.4 MB, free: 15.63 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.563/1.563, allocations: 221.3 MB / 395 MB, free: 10.2 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.001195/0.001196, allocations: 103.2 kB / 477.8 MB, free: 10.84 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4958/0.497, allocations: 88.43 MB / 0.5529 GB, free: 88.98 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.7297, allocations: 82.3 MB / 0.6333 GB, free: 13.96 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.592/5.322, allocations: 1.942 GB / 2.575 GB, free: 17.97 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/5.322, allocations: 83.95 kB / 2.575 GB, free: 17.89 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: 693 * Number of variables: 693 Notification: Performance of Generate backend data structure: time 8.287/13.61, allocations: 2.068 GB / 4.643 GB, free: 42.74 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.374e-05/13.61, allocations: 11.28 kB / 4.643 GB, free: 42.74 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008859/13.62, allocations: 0.9853 MB / 4.644 GB, free: 42.54 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01253/13.63, allocations: 2.937 MB / 4.647 GB, free: 41.96 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004414/13.63, allocations: 177.2 kB / 4.647 GB, free: 41.89 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001701/13.63, allocations: 177.8 kB / 4.647 GB, free: 41.88 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007502/13.64, allocations: 2.498 MB / 4.65 GB, free: 41.87 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01024/13.65, allocations: 2.803 MB / 4.653 GB, free: 41.62 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001995/13.65, allocations: 2.969 kB / 4.653 GB, free: 41.62 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001219/13.65, allocations: 6.359 kB / 4.653 GB, free: 41.62 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001555/13.65, allocations: 110.3 kB / 4.653 GB, free: 41.62 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02305/13.68, allocations: 13.13 MB / 4.666 GB, free: 34.3 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002487/13.68, allocations: 1.678 MB / 4.667 GB, free: 34.25 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001491/13.68, allocations: 1.04 MB / 4.668 GB, free: 34.22 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000561/13.68, allocations: 334 kB / 4.669 GB, free: 33.94 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.907e-05/13.68, allocations: 68.31 kB / 4.669 GB, free: 33.9 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=182): time 4.148e-06/13.68, allocations: 0 / 4.669 GB, free: 33.9 MB / 0.7448 GB Notification: Performance of matching and sorting (n=182): time 0.004776/13.68, allocations: 1.953 MB / 4.671 GB, free: 33.7 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.6e-05/13.68, allocations: 72.53 kB / 4.671 GB, free: 33.63 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002526/13.69, allocations: 1.44 MB / 4.672 GB, free: 33.42 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.000364/13.69, allocations: 31.64 kB / 4.672 GB, free: 33.39 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.000634/13.69, allocations: 0.9971 MB / 4.673 GB, free: 32.82 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009822/13.69, allocations: 0.6164 MB / 4.674 GB, free: 32.41 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.597e-05/13.69, allocations: 0 / 4.674 GB, free: 32.41 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001622/13.69, allocations: 388.5 kB / 4.674 GB, free: 32.1 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001251/13.69, allocations: 0.7434 MB / 4.675 GB, free: 32.09 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001533/13.69, allocations: 1.408 MB / 4.676 GB, free: 31.33 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00153/13.69, allocations: 1.015 MB / 4.677 GB, free: 31.3 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.177e-05/13.69, allocations: 6.453 kB / 4.677 GB, free: 31.3 MB / 0.7448 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.00419/13.7, allocations: 2.28 MB / 4.679 GB, free: 31.1 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.001564/13.7, allocations: 5.472 MB / 4.685 GB, free: 25.26 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.829e-05/13.7, allocations: 17.84 kB / 4.685 GB, free: 25.26 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.65e-05/13.7, allocations: 23.16 kB / 4.685 GB, free: 25.26 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002704/13.7, allocations: 0.5115 MB / 4.685 GB, free: 25.26 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003129/13.71, allocations: 4.201 MB / 4.689 GB, free: 37.16 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005078/13.71, allocations: 312.5 kB / 4.69 GB, free: 37.07 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006528/13.71, allocations: 88.56 kB / 4.69 GB, free: 37.07 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/13.71, allocations: 6.875 kB / 4.69 GB, free: 37.07 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004734/13.72, allocations: 1.966 MB / 4.692 GB, free: 37.02 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.994e-05/13.72, allocations: 12.53 kB / 4.692 GB, free: 37.02 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.082e-05/13.72, allocations: 35.06 kB / 4.692 GB, free: 37.02 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002137/13.72, allocations: 474.3 kB / 4.692 GB, free: 37.02 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.775e-05/13.72, allocations: 31.91 kB / 4.692 GB, free: 37.02 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004841/13.72, allocations: 291.5 kB / 4.692 GB, free: 36.95 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000397/13.72, allocations: 92.3 kB / 4.693 GB, free: 36.94 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (257): * Single equations (assignments): 250 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * 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: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001135/13.72, allocations: 158.2 kB / 4.693 GB, free: 36.83 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001519/13.73, allocations: 257.5 kB / 4.693 GB, free: 36.7 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004685/13.73, allocations: 1.952 MB / 4.695 GB, free: 36.59 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.057e-05/13.73, allocations: 19.16 kB / 4.695 GB, free: 36.59 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.325e-05/13.73, allocations: 0 / 4.695 GB, free: 36.59 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002711/13.73, allocations: 1.771 MB / 4.697 GB, free: 36.29 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01205/13.75, allocations: 4.714 MB / 4.701 GB, free: 35.79 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.127e-05/13.75, allocations: 6.156 kB / 4.701 GB, free: 35.79 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002651/13.75, allocations: 0.5086 MB / 4.702 GB, free: 35.79 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.263e-05/13.75, allocations: 7.656 kB / 4.702 GB, free: 35.79 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002021/13.75, allocations: 29.47 kB / 4.702 GB, free: 35.79 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003392/13.75, allocations: 4.148 MB / 4.706 GB, free: 31.7 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.297e-05/13.75, allocations: 6.25 kB / 4.706 GB, free: 31.7 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007026/13.76, allocations: 3.454 MB / 4.709 GB, free: 30.95 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00845/13.77, allocations: 5.284 MB / 4.714 GB, free: 29.82 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003279/13.77, allocations: 0.5514 MB / 4.715 GB, free: 29.58 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001374/13.77, allocations: 18.19 kB / 4.715 GB, free: 29.58 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003836/13.78, allocations: 219.5 kB / 4.715 GB, free: 29.56 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003342/13.78, allocations: 103.2 kB / 4.715 GB, free: 29.56 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002354/13.78, allocations: 73.53 kB / 4.715 GB, free: 29.56 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.002698/13.78, allocations: 1.078 MB / 4.716 GB, free: 29.41 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.01304/13.79, allocations: 3.15 MB / 4.719 GB, free: 29.14 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],vol.dynBal.mC[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mXi[1],vol1.dynBal.mC[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mXi[1],vol2.dynBal.mC[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mXi[1],vol3.dynBal.mC[1],vol4.dynBal.U,vol4.dynBal.m,vol4.dynBal.mXi[1],vol4.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * 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: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009067/13.8, allocations: 5.214 MB / 4.724 GB, free: 26.89 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.01126/13.81, allocations: 3.178 MB / 4.728 GB, free: 26.74 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.325e-05/13.81, allocations: 2.219 kB / 4.728 GB, free: 26.74 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.002725/13.82, allocations: 0.9951 MB / 4.729 GB, free: 26.7 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01082/13.83, allocations: 1.39 MB / 4.73 GB, free: 26.66 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01568/13.84, allocations: 5.509 MB / 4.735 GB, free: 25.48 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004256/13.85, allocations: 2.533 MB / 4.738 GB, free: 24.7 MB / 0.7605 GB Notification: Performance of SimCode: time 1.613e-06/13.85, allocations: 1.641 kB / 4.738 GB, free: 24.7 MB / 0.7605 GB (rm -f IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)