Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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_dev_IDEAS_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="IDEAS_dev_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.00373/0.003731, allocations: 183.2 kB / 7.461 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6978/0.6978, allocations: 133.5 MB / 141.4 MB, free: 15.72 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.54/1.54, allocations: 221.3 MB / 395 MB, free: 10.22 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.001062/0.001062, allocations: 98.64 kB / 477.8 MB, free: 10.82 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5586/0.5597, allocations: 88.43 MB / 0.5529 GB, free: 89.19 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.7899, allocations: 82.3 MB / 0.6333 GB, free: 14.02 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.421/5.211, allocations: 1.942 GB / 2.575 GB, free: 18.46 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/5.212, allocations: 95.55 kB / 2.575 GB, free: 18.37 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.002/13.21, allocations: 2.068 GB / 4.643 GB, free: 42.95 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001043/13.21, allocations: 13.59 kB / 4.643 GB, free: 42.95 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008274/13.22, allocations: 0.9852 MB / 4.644 GB, free: 42.75 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01074/13.23, allocations: 2.948 MB / 4.647 GB, free: 42.16 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002673/13.23, allocations: 169.6 kB / 4.647 GB, free: 42.09 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001516/13.23, allocations: 185.2 kB / 4.648 GB, free: 42.09 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005635/13.24, allocations: 2.496 MB / 4.65 GB, free: 42.07 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00576/13.25, allocations: 2.805 MB / 4.653 GB, free: 41.83 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-05/13.25, allocations: 6.625 kB / 4.653 GB, free: 41.83 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002759/13.25, allocations: 0 / 4.653 GB, free: 41.83 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001382/13.25, allocations: 104.6 kB / 4.653 GB, free: 41.82 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02324/13.27, allocations: 13.13 MB / 4.666 GB, free: 34.51 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002428/13.27, allocations: 1.679 MB / 4.667 GB, free: 34.46 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001305/13.27, allocations: 1.038 MB / 4.668 GB, free: 34.44 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005149/13.27, allocations: 333.6 kB / 4.669 GB, free: 34.16 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.676e-05/13.27, allocations: 58.84 kB / 4.669 GB, free: 34.12 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=182): time 4.157e-06/13.27, allocations: 1.875 kB / 4.669 GB, free: 34.12 MB / 0.7448 GB Notification: Performance of matching and sorting (n=182): time 0.004524/13.28, allocations: 1.952 MB / 4.671 GB, free: 33.91 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/13.28, allocations: 70.38 kB / 4.671 GB, free: 33.85 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002717/13.28, allocations: 1.442 MB / 4.672 GB, free: 33.64 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0003387/13.28, allocations: 30.45 kB / 4.672 GB, free: 33.61 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.000674/13.28, allocations: 1.002 MB / 4.673 GB, free: 33.04 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008722/13.28, allocations: 0.6173 MB / 4.674 GB, free: 32.62 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.639e-05/13.28, allocations: 0 / 4.674 GB, free: 32.62 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001488/13.28, allocations: 389 kB / 4.674 GB, free: 32.32 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001123/13.29, allocations: 0.7425 MB / 4.675 GB, free: 32.31 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001343/13.29, allocations: 1.407 MB / 4.676 GB, free: 31.55 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001399/13.29, allocations: 1.018 MB / 4.677 GB, free: 31.52 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/13.29, allocations: 2.906 kB / 4.677 GB, free: 31.52 MB / 0.7448 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004066/13.29, allocations: 2.284 MB / 4.679 GB, free: 31.32 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.001298/13.29, allocations: 5.473 MB / 4.685 GB, free: 25.47 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.887e-05/13.29, allocations: 12.5 kB / 4.685 GB, free: 25.47 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.866e-05/13.29, allocations: 26.62 kB / 4.685 GB, free: 25.47 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002883/13.3, allocations: 0.5108 MB / 4.685 GB, free: 25.47 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002517/13.3, allocations: 4.198 MB / 4.689 GB, free: 37.38 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00504/13.3, allocations: 310.9 kB / 4.69 GB, free: 37.28 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002914/13.3, allocations: 88.75 kB / 4.69 GB, free: 37.28 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/13.3, allocations: 7.562 kB / 4.69 GB, free: 37.28 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003257/13.31, allocations: 1.975 MB / 4.692 GB, free: 37.24 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.781e-05/13.31, allocations: 20.89 kB / 4.692 GB, free: 37.24 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.519e-05/13.31, allocations: 23.44 kB / 4.692 GB, free: 37.24 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001771/13.31, allocations: 469.5 kB / 4.692 GB, free: 37.24 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.232e-05/13.31, allocations: 32.02 kB / 4.692 GB, free: 37.24 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004128/13.31, allocations: 285.1 kB / 4.692 GB, free: 37.16 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002848/13.31, allocations: 94.14 kB / 4.693 GB, free: 37.16 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.0008095/13.31, allocations: 159.2 kB / 4.693 GB, free: 37.05 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009462/13.32, allocations: 262.3 kB / 4.693 GB, free: 36.92 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003456/13.32, allocations: 1.95 MB / 4.695 GB, free: 36.81 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.756e-05/13.32, allocations: 16.12 kB / 4.695 GB, free: 36.81 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/13.32, allocations: 2.625 kB / 4.695 GB, free: 36.81 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002248/13.32, allocations: 1.77 MB / 4.697 GB, free: 36.51 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009351/13.33, allocations: 4.715 MB / 4.701 GB, free: 36.01 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/13.33, allocations: 7.875 kB / 4.701 GB, free: 36.01 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002496/13.33, allocations: 0.5011 MB / 4.702 GB, free: 36.01 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-05/13.33, allocations: 10.53 kB / 4.702 GB, free: 36.01 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000126/13.33, allocations: 32.06 kB / 4.702 GB, free: 36.01 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002279/13.34, allocations: 4.155 MB / 4.706 GB, free: 31.91 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/13.34, allocations: 3.594 kB / 4.706 GB, free: 31.91 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004312/13.34, allocations: 3.451 MB / 4.709 GB, free: 31.17 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006761/13.35, allocations: 5.282 MB / 4.714 GB, free: 30.05 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002676/13.35, allocations: 0.558 MB / 4.715 GB, free: 29.8 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006837/13.35, allocations: 11.5 kB / 4.715 GB, free: 29.8 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00302/13.35, allocations: 223.1 kB / 4.715 GB, free: 29.78 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001951/13.35, allocations: 101.8 kB / 4.715 GB, free: 29.78 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001399/13.35, allocations: 72.5 kB / 4.715 GB, free: 29.78 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.001712/13.36, allocations: 1.077 MB / 4.716 GB, free: 29.63 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.009576/13.36, allocations: 3.153 MB / 4.719 GB, free: 29.36 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.009022/13.37, allocations: 5.229 MB / 4.724 GB, free: 27.1 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.00791/13.38, allocations: 3.168 MB / 4.728 GB, free: 26.95 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.584e-05/13.38, allocations: 6.25 kB / 4.728 GB, free: 26.95 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.00213/13.38, allocations: 0.9876 MB / 4.729 GB, free: 26.9 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008978/13.39, allocations: 1.4 MB / 4.73 GB, free: 26.87 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01274/13.41, allocations: 5.504 MB / 4.735 GB, free: 25.69 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003364/13.41, allocations: 2.527 MB / 4.738 GB, free: 24.92 MB / 0.7605 GB Notification: Performance of SimCode: time 1.202e-06/13.41, allocations: 0.6562 kB / 4.738 GB, free: 24.92 MB / 0.7605 GB (rm -f IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)