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: translateModel(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource") [: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.001921/0.001921, allocations: 178.9 kB / 7.457 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.6027/0.6027, allocations: 133.5 MB / 141.4 MB, free: 15.68 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.117/1.117, 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.0008824/0.0008824, allocations: 94.98 kB / 477.8 MB, free: 10.85 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 5.761e-06/5.781e-06, allocations: 2.844 kB / 0.5528 GB, free: 89.11 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.109, allocations: 82.29 MB / 0.6332 GB, free: 14.11 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.59/2.699, allocations: 1.942 GB / 2.575 GB, free: 18.33 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002143/2.699, allocations: 91.89 kB / 2.575 GB, free: 18.25 MB / 0.6823 GB Notification: Performance of FrontEnd: time 5.698/8.397, allocations: 2.065 GB / 4.64 GB, free: 44.43 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 0.0002085/8.398, allocations: 99.27 kB / 4.64 GB, free: 44.42 MB / 0.7448 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 0.007097/8.405, allocations: 3.482 MB / 4.643 GB, free: 42.95 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/8.405, allocations: 9.312 kB / 4.643 GB, free: 42.95 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005529/8.41, allocations: 0.9818 MB / 4.644 GB, free: 42.75 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005992/8.416, allocations: 2.936 MB / 4.647 GB, free: 42.17 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00014/8.417, allocations: 178.8 kB / 4.647 GB, free: 42.1 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003294/8.417, allocations: 179.7 kB / 4.647 GB, free: 42.09 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003643/8.421, allocations: 2.498 MB / 4.65 GB, free: 42.08 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003799/8.424, allocations: 2.808 MB / 4.653 GB, free: 41.84 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.773e-05/8.424, allocations: 0 / 4.653 GB, free: 41.84 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002192/8.425, allocations: 3.688 kB / 4.653 GB, free: 41.84 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.961e-05/8.425, allocations: 103.7 kB / 4.653 GB, free: 41.83 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01352/8.438, allocations: 13.14 MB / 4.666 GB, free: 34.51 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001989/8.44, allocations: 1.669 MB / 4.667 GB, free: 34.46 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001098/8.441, allocations: 1.043 MB / 4.668 GB, free: 34.44 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004159/8.442, allocations: 329.4 kB / 4.669 GB, free: 34.15 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/8.442, allocations: 55.62 kB / 4.669 GB, free: 34.11 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=182): time 4.268e-06/8.442, allocations: 0 / 4.669 GB, free: 34.11 MB / 0.7448 GB Notification: Performance of matching and sorting (n=182): time 0.003519/8.445, allocations: 1.956 MB / 4.671 GB, free: 33.91 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.557e-05/8.445, allocations: 74.19 kB / 4.671 GB, free: 33.84 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00148/8.447, allocations: 1.441 MB / 4.672 GB, free: 33.63 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0001222/8.447, allocations: 29.64 kB / 4.672 GB, free: 33.6 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004009/8.447, allocations: 0.9985 MB / 4.673 GB, free: 33.04 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005387/8.448, allocations: 0.6199 MB / 4.674 GB, free: 32.62 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.252e-05/8.448, allocations: 0 / 4.674 GB, free: 32.62 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 9.91e-05/8.448, allocations: 385.1 kB / 4.674 GB, free: 32.32 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008912/8.449, allocations: 0.7454 MB / 4.675 GB, free: 32.31 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001177/8.45, allocations: 1.406 MB / 4.676 GB, free: 31.54 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/8.451, allocations: 1.021 MB / 4.677 GB, free: 31.52 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/8.451, allocations: 3.688 kB / 4.677 GB, free: 31.52 MB / 0.7448 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.002746/8.454, allocations: 2.28 MB / 4.679 GB, free: 31.32 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008121/8.455, allocations: 5.476 MB / 4.685 GB, free: 25.47 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/8.455, allocations: 19.61 kB / 4.685 GB, free: 25.47 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.564e-05/8.455, allocations: 22.31 kB / 4.685 GB, free: 25.47 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002252/8.457, allocations: 0.5137 MB / 4.685 GB, free: 25.47 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001959/8.459, allocations: 4.199 MB / 4.689 GB, free: 37.38 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003103/8.462, allocations: 310.6 kB / 4.69 GB, free: 37.28 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001555/8.463, allocations: 94.14 kB / 4.69 GB, free: 37.28 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 7.634e-06/8.463, allocations: 6.469 kB / 4.69 GB, free: 37.28 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002476/8.465, allocations: 1.965 MB / 4.692 GB, free: 37.24 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/8.465, allocations: 12.09 kB / 4.692 GB, free: 37.24 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/8.465, allocations: 23.16 kB / 4.692 GB, free: 37.24 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001655/8.467, allocations: 478.3 kB / 4.692 GB, free: 37.24 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.88e-05/8.467, allocations: 30.78 kB / 4.692 GB, free: 37.24 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002636/8.469, allocations: 288.4 kB / 4.692 GB, free: 37.16 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001386/8.47, allocations: 97.5 kB / 4.692 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.0004255/8.47, allocations: 166.6 kB / 4.693 GB, free: 37.04 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003259/8.47, allocations: 254.9 kB / 4.693 GB, free: 36.91 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002634/8.473, allocations: 1.945 MB / 4.695 GB, free: 36.8 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/8.473, allocations: 17.75 kB / 4.695 GB, free: 36.8 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/8.473, allocations: 0 / 4.695 GB, free: 36.8 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001865/8.475, allocations: 1.775 MB / 4.697 GB, free: 36.51 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00604/8.481, allocations: 4.718 MB / 4.701 GB, free: 36.01 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/8.481, allocations: 9.5 kB / 4.701 GB, free: 36 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002216/8.483, allocations: 0.5075 MB / 4.702 GB, free: 36 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-05/8.483, allocations: 10.06 kB / 4.702 GB, free: 36 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001032/8.483, allocations: 31.8 kB / 4.702 GB, free: 36 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001782/8.485, allocations: 4.148 MB / 4.706 GB, free: 31.91 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/8.485, allocations: 3.156 kB / 4.706 GB, free: 31.91 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003294/8.488, allocations: 3.453 MB / 4.709 GB, free: 31.17 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009815/8.489, allocations: 0.5545 MB / 4.71 GB, free: 30.93 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003343/8.49, allocations: 16.36 kB / 4.71 GB, free: 30.92 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00197/8.492, allocations: 224 kB / 4.71 GB, free: 30.9 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001686/8.492, allocations: 101.2 kB / 4.71 GB, free: 30.89 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001224/8.492, allocations: 77.44 kB / 4.71 GB, free: 30.89 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.00116/8.493, allocations: 1.07 MB / 4.711 GB, free: 30.75 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.00382/8.497, allocations: 1.936 MB / 4.713 GB, free: 30.48 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.00521/8.502, allocations: 5.225 MB / 4.718 GB, free: 28.21 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.004581/8.507, allocations: 3.166 MB / 4.721 GB, free: 28.06 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/8.507, allocations: 0 / 4.721 GB, free: 28.06 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.001268/8.508, allocations: 0.993 MB / 4.722 GB, free: 28.02 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005748/8.514, allocations: 1.405 MB / 4.724 GB, free: 27.98 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009055/8.523, allocations: 5.478 MB / 4.729 GB, free: 26.81 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002617/8.526, allocations: 2.488 MB / 4.731 GB, free: 26.04 MB / 0.7605 GB Notification: Performance of SimCode: time 5.81e-07/8.526, allocations: 0 / 4.731 GB, free: 26.04 MB / 0.7605 GB Notification: Performance of Templates: time 0.4174/8.943, allocations: 81.42 MB / 4.811 GB, free: 129.8 MB / 0.7761 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (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 & ./IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)