Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeLumpedPressureInitialization.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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTestOverdetermined 4.0.0-master/package.mo", uses=false) Using package ModelicaTestOverdetermined with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTestOverdetermined 4.0.0-master/package.mo) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeLumpedPressureInitialization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeLumpedPressureInitialization") translateModel(ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeLumpedPressureInitialization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeLumpedPressureInitialization") [: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.001875/0.001875, allocations: 178 kB / 7.457 MB, free: 2.238 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.01/1.01, allocations: 221.4 MB / 229.3 MB, free: 3.066 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008292/0.0008292, allocations: 104.4 kB / 280.1 MB, free: 1.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTestOverdetermined 4.0.0-master/package.mo): time 0.002038/0.002039, allocations: 0.5489 MB / 331.4 MB, free: 13.91 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.4e-06/5.43e-06, allocations: 4 kB / 388 MB, free: 76.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06276/0.06278, allocations: 50.57 MB / 438.6 MB, free: 26.03 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.62/3.683, allocations: 2.828 GB / 3.256 GB, free: 81.41 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001978/3.683, allocations: 78.69 kB / 3.256 GB, free: 81.34 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.213/4.896, allocations: 498.3 MB / 3.743 GB, free: 43.39 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.528e-05/4.896, allocations: 41.2 kB / 3.743 GB, free: 43.39 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 369 * Number of variables: 369 Notification: Performance of Generate backend data structure: time 0.007398/4.903, allocations: 2.861 MB / 3.746 GB, free: 42.25 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.99e-05/4.904, allocations: 10.34 kB / 3.746 GB, free: 42.25 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004003/4.908, allocations: 0.6097 MB / 3.746 GB, free: 42.16 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003018/4.911, allocations: 1.468 MB / 3.748 GB, free: 41.81 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.475e-05/4.911, allocations: 78.31 kB / 3.748 GB, free: 41.81 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000264/4.911, allocations: 87.47 kB / 3.748 GB, free: 41.81 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002603/4.914, allocations: 2.065 MB / 3.75 GB, free: 41.8 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002444/4.916, allocations: 2.075 MB / 3.752 GB, free: 41.4 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.655e-05/4.916, allocations: 10.44 kB / 3.752 GB, free: 41.4 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001507/4.916, allocations: 6.25 kB / 3.752 GB, free: 41.4 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.128e-05/4.916, allocations: 113.5 kB / 3.752 GB, free: 41.39 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3573/5.274, allocations: 134.3 MB / 3.883 GB, free: 98 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/5.275, allocations: 0.8674 MB / 3.884 GB, free: 97.98 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007365/5.275, allocations: 0.779 MB / 3.885 GB, free: 97.98 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02599/5.301, allocations: 16.72 MB / 3.901 GB, free: 87.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00118/5.303, allocations: 0.8808 MB / 3.902 GB, free: 87.41 MB / 490.7 MB Notification: Performance of pre-optimization done (n=112): time 2.504e-06/5.303, allocations: 0 / 3.902 GB, free: 87.41 MB / 490.7 MB Notification: Performance of matching and sorting (n=136): time 0.01237/5.315, allocations: 6.217 MB / 3.908 GB, free: 86.67 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.343e-05/5.315, allocations: 197.4 kB / 3.908 GB, free: 86.45 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008582/5.316, allocations: 0.8443 MB / 3.909 GB, free: 86.3 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 8.903e-05/5.316, allocations: 25.7 kB / 3.909 GB, free: 86.27 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002903/5.316, allocations: 0.6123 MB / 3.91 GB, free: 85.96 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002529/5.317, allocations: 460 kB / 3.91 GB, free: 85.73 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.125e-05/5.317, allocations: 64 / 3.91 GB, free: 85.73 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001103/5.317, allocations: 440 kB / 3.91 GB, free: 85.41 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001002/5.318, allocations: 0.9479 MB / 3.911 GB, free: 85.41 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001171/5.319, allocations: 1.433 MB / 3.913 GB, free: 84.86 MB / 490.7 MB Notification: The following equation is consistent and got removed from the initialization problem: $DER.pipe.mediums[2].p = 0.0 Notification: The following equation is consistent and got removed from the initialization problem: $DER.pipe.mediums[3].p = 0.0 Notification: The following equation is consistent and got removed from the initialization problem: $DER.pipe.mediums[4].p = 0.0 Notification: The following equation is consistent and got removed from the initialization problem: $DER.pipe.mediums[1].p = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.01038/5.329, allocations: 3.65 MB / 3.916 GB, free: 84.34 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/5.329, allocations: 3.969 kB / 3.916 GB, free: 84.34 MB / 490.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.00709/5.337, allocations: 3.999 MB / 3.92 GB, free: 84.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007901/5.337, allocations: 5.659 MB / 3.926 GB, free: 78.26 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.76e-05/5.337, allocations: 20.53 kB / 3.926 GB, free: 78.26 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006547/5.344, allocations: 2.007 MB / 3.928 GB, free: 78.18 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008777/5.345, allocations: 275.8 kB / 3.928 GB, free: 78.18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00485/5.35, allocations: 3.721 MB / 3.932 GB, free: 77.61 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001786/5.351, allocations: 191.6 kB / 3.932 GB, free: 77.59 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001516/5.352, allocations: 94.83 kB / 3.932 GB, free: 77.59 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.918e-06/5.352, allocations: 9.25 kB / 3.932 GB, free: 77.59 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005858/5.358, allocations: 3.328 MB / 3.935 GB, free: 77.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/5.358, allocations: 14.06 kB / 3.935 GB, free: 77.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005654/5.363, allocations: 1.792 MB / 3.937 GB, free: 77.46 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008657/5.364, allocations: 304.2 kB / 3.937 GB, free: 77.45 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00352/5.368, allocations: 3.249 MB / 3.94 GB, free: 76.89 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001427/5.369, allocations: 178.1 kB / 3.941 GB, free: 76.86 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001427/5.369, allocations: 88.3 kB / 3.941 GB, free: 76.86 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Warning: Assuming redundant initial conditions for the following 4 initial equations: $DER.pipe.mediums[2].p = 0.0 $DER.pipe.mediums[3].p = 0.0 $DER.pipe.mediums[4].p = 0.0 $DER.pipe.mediums[1].p = 0.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.mediums[1].phase,pipe.mediums[2].phase,pipe.mediums[4].phase,pipe.mediums[5].phase,pipe.statesFM[2].phase,source.medium.phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 79} Notification: Performance of prepare postOptimizeDAE: time 0.0003969/5.37, allocations: 174.1 kB / 3.941 GB, free: 76.75 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001234/5.371, allocations: 0.4983 MB / 3.941 GB, free: 76.69 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005206/5.376, allocations: 4.734 MB / 3.946 GB, free: 76.39 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.802e-05/5.376, allocations: 41.17 kB / 3.946 GB, free: 76.39 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/5.376, allocations: 3.938 kB / 3.946 GB, free: 76.39 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003904/5.38, allocations: 4.314 MB / 3.95 GB, free: 75.75 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008696/5.389, allocations: 7.397 MB / 3.957 GB, free: 74.86 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/5.389, allocations: 9.094 kB / 3.957 GB, free: 74.85 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008059/5.39, allocations: 221 kB / 3.958 GB, free: 74.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003576/5.393, allocations: 1.189 MB / 3.959 GB, free: 74.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001063/5.393, allocations: 41.09 kB / 3.959 GB, free: 74.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002215/5.395, allocations: 2.514 MB / 3.961 GB, free: 74.22 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/5.396, allocations: 0 / 3.961 GB, free: 74.22 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007175/5.403, allocations: 5.908 MB / 3.967 GB, free: 73.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007621/5.403, allocations: 477.2 kB / 3.967 GB, free: 73.52 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002522/5.404, allocations: 21.52 kB / 3.968 GB, free: 73.52 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001096/5.405, allocations: 129.9 kB / 3.968 GB, free: 73.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002189/5.405, allocations: 132 kB / 3.968 GB, free: 73.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/5.405, allocations: 58.39 kB / 3.968 GB, free: 73.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0006384/5.406, allocations: 0.6066 MB / 3.968 GB, free: 73.39 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005831/5.412, allocations: 2.016 MB / 3.97 GB, free: 73.34 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (pipe.mediums[1].h,pipe.mediums[2].h,pipe.mediums[3].h,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 24 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse14.phase,$cse14.region,$cse18.phase,$cse18.region,$whenCondition2,$whenCondition1,pipe.mediums[1].phase,pipe.mediums[2].phase,pipe.mediums[4].phase,pipe.mediums[5].phase,pipe.statesFM[2].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 39} Notification: Performance of Backend phase and start with SimCode phase: time 0.005601/5.417, allocations: 2.14 MB / 3.972 GB, free: 73.04 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00509/5.422, allocations: 4.414 MB / 3.977 GB, free: 72.95 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/5.422, allocations: 4.062 kB / 3.977 GB, free: 72.95 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002123/5.425, allocations: 2.251 MB / 3.979 GB, free: 72.92 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002227/5.427, allocations: 495.2 kB / 3.979 GB, free: 72.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005089/5.432, allocations: 4.15 MB / 3.983 GB, free: 71.34 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001069/5.433, allocations: 1.716 MB / 3.985 GB, free: 70.5 MB / 490.7 MB Notification: Performance of SimCode: time 4.01e-07/5.433, allocations: 0 / 3.985 GB, free: 70.5 MB / 490.7 MB Notification: Performance of Templates: time 0.2075/5.64, allocations: 76.11 MB / 4.059 GB, free: 111.5 MB / 490.7 MB make -j1 -f ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeLumpedPressureInitialization.makefile (rm -f ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeLumpedPressureInitialization.pipe ; mkfifo ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeLumpedPressureInitialization.pipe ; head -c 1048576 < ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeLumpedPressureInitialization.pipe >> ../files/ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeLumpedPressureInitialization.sim & ./ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeLumpedPressureInitialization -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeLumpedPressureInitialization.pipe 2>&1)