Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeInitialValues.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+maint.om/package.mo", uses=false) Using package ModelicaTestOverdetermined with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTestOverdetermined 4.0.0+maint.om/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: "" <> buildModelFMU(ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeInitialValues,fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Fluid_DynamicPipeInitialValues",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeInitialValues,fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Fluid_DynamicPipeInitialValues",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.006981/0.006981, allocations: 174.1 kB / 7.456 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.26/2.26, allocations: 221.4 MB / 229.3 MB, free: 3.035 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.001345/0.001345, allocations: 97.39 kB / 280.1 MB, free: 1.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTestOverdetermined 4.0.0+maint.om/package.mo): time 0.006052/0.006052, allocations: 0.5605 MB / 331.5 MB, free: 13.91 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4379/0.444, allocations: 56.68 MB / 388.1 MB, free: 76.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1581/0.6022, allocations: 50.57 MB / 438.7 MB, free: 25.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.67/12.27, allocations: 2.828 GB / 3.256 GB, free: 81.89 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000461/12.27, allocations: 79.95 kB / 3.256 GB, free: 81.81 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 474 * Number of variables: 474 Notification: Performance of Generate backend data structure: time 3.347/15.62, allocations: 0.4933 GB / 3.749 GB, free: 41.32 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/15.62, allocations: 7.406 kB / 3.749 GB, free: 41.32 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006549/15.62, allocations: 0.6986 MB / 3.75 GB, free: 41.22 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006086/15.63, allocations: 1.53 MB / 3.752 GB, free: 40.85 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002778/15.63, allocations: 94.09 kB / 3.752 GB, free: 40.85 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001058/15.63, allocations: 99.75 kB / 3.752 GB, free: 40.85 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00676/15.64, allocations: 2.669 MB / 3.754 GB, free: 40.84 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007418/15.64, allocations: 2.726 MB / 3.757 GB, free: 40.4 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.71e-05/15.64, allocations: 12.81 kB / 3.757 GB, free: 40.4 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005941/15.64, allocations: 7.469 kB / 3.757 GB, free: 40.4 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001739/15.64, allocations: 160.3 kB / 3.757 GB, free: 40.39 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8798/16.52, allocations: 136.5 MB / 3.891 GB, free: 94.86 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003407/16.53, allocations: 1.069 MB / 3.892 GB, free: 94.83 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002779/16.53, allocations: 0.9471 MB / 3.892 GB, free: 94.82 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06096/16.59, allocations: 16.86 MB / 3.909 GB, free: 84.21 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004814/16.6, allocations: 1.086 MB / 3.91 GB, free: 84.11 MB / 490.7 MB Notification: Performance of pre-optimization done (n=129): time 1.345e-05/16.6, allocations: 0 / 3.91 GB, free: 84.11 MB / 490.7 MB Notification: Performance of matching and sorting (n=149): time 0.0376/16.63, allocations: 7.343 MB / 3.917 GB, free: 83.24 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/16.63, allocations: 197 kB / 3.917 GB, free: 83.02 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001509/16.64, allocations: 0.9192 MB / 3.918 GB, free: 82.86 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004167/16.64, allocations: 25.7 kB / 3.918 GB, free: 82.83 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007508/16.64, allocations: 0.7357 MB / 3.919 GB, free: 82.47 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006875/16.64, allocations: 0.5032 MB / 3.919 GB, free: 82.18 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/16.64, allocations: 0 / 3.919 GB, free: 82.18 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000237/16.64, allocations: 438.2 kB / 3.92 GB, free: 81.87 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001899/16.64, allocations: 1.144 MB / 3.921 GB, free: 81.86 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002054/16.64, allocations: 1.693 MB / 3.923 GB, free: 81.21 MB / 490.7 MB Notification: The following equation is consistent and got removed from the initialization problem: pipe.mediums[1].p = 10000000.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.02323/16.67, allocations: 3.709 MB / 3.926 GB, free: 80.98 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.841e-05/16.67, allocations: 3.969 kB / 3.926 GB, free: 80.98 MB / 490.7 MB Notification: Performance of matching and sorting (n=257) (initialization): time 0.0116/16.68, allocations: 4.132 MB / 3.93 GB, free: 80.79 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001399/16.68, allocations: 6.52 MB / 3.937 GB, free: 73.93 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.357e-05/16.68, allocations: 14.91 kB / 3.937 GB, free: 73.93 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001296/16.68, allocations: 446.9 kB / 3.937 GB, free: 73.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002754/16.68, allocations: 0.5106 MB / 3.938 GB, free: 73.88 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003619/16.69, allocations: 3.409 MB / 3.941 GB, free: 71.28 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004512/16.69, allocations: 230.4 kB / 3.941 GB, free: 71.24 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005982/16.69, allocations: 103.9 kB / 3.941 GB, free: 71.24 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/16.69, allocations: 5.156 kB / 3.941 GB, free: 71.24 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01333/16.71, allocations: 3.191 MB / 3.944 GB, free: 71.14 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.05e-05/16.71, allocations: 18.22 kB / 3.944 GB, free: 71.14 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001781/16.71, allocations: 440 kB / 3.945 GB, free: 71.09 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003848/16.71, allocations: 0.51 MB / 3.945 GB, free: 71.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002744/16.71, allocations: 3.411 MB / 3.949 GB, free: 68.48 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003118/16.72, allocations: 203.5 kB / 3.949 GB, free: 68.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005121/16.72, allocations: 104.4 kB / 3.949 GB, free: 68.45 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 1 initial equations: pipe.mediums[1].p = 10000000.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.m_flow_initial,m_flow_initial,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,source.medium.phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,pipe.state_a.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (244): * Single equations (assignments): 239 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 8,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001165/16.72, allocations: 177.4 kB / 3.949 GB, free: 68.33 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002234/16.72, allocations: 0.5091 MB / 3.95 GB, free: 68.26 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009424/16.73, allocations: 5.054 MB / 3.955 GB, free: 67.91 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.419e-05/16.73, allocations: 39.25 kB / 3.955 GB, free: 67.91 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.452e-05/16.73, allocations: 3.844 kB / 3.955 GB, free: 67.91 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00839/16.74, allocations: 4.551 MB / 3.959 GB, free: 67.23 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0222/16.76, allocations: 7.429 MB / 3.966 GB, free: 66.61 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.672e-05/16.76, allocations: 2 kB / 3.966 GB, free: 66.61 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002882/16.76, allocations: 331.4 kB / 3.967 GB, free: 66.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002696/16.77, allocations: 0.5209 MB / 3.967 GB, free: 66.54 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005057/16.77, allocations: 41.41 kB / 3.967 GB, free: 66.54 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004199/16.77, allocations: 3.614 MB / 3.971 GB, free: 63.92 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.057e-05/16.77, allocations: 3.812 kB / 3.971 GB, free: 63.92 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01621/16.79, allocations: 6.209 MB / 3.977 GB, free: 63.45 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02345/16.81, allocations: 8.598 MB / 3.985 GB, free: 62.61 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002109/16.81, allocations: 0.522 MB / 3.986 GB, free: 62.42 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007523/16.81, allocations: 14.12 kB / 3.986 GB, free: 62.42 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002323/16.82, allocations: 165.3 kB / 3.986 GB, free: 62.39 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004061/16.82, allocations: 142.2 kB / 3.986 GB, free: 62.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001695/16.82, allocations: 57.69 kB / 3.986 GB, free: 62.39 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001199/16.82, allocations: 0.6547 MB / 3.987 GB, free: 62.29 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0162/16.83, allocations: 2.464 MB / 3.989 GB, free: 62.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 23 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse21.phase,$cse21.region,$whenCondition1,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 142 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.01785/16.85, allocations: 2.148 MB / 3.991 GB, free: 61.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01381/16.87, allocations: 5.05 MB / 3.996 GB, free: 60.35 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.639e-05/16.87, allocations: 0 / 3.996 GB, free: 60.35 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003791/16.87, allocations: 2.278 MB / 3.998 GB, free: 59.43 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003827/16.87, allocations: 0.5125 MB / 3.999 GB, free: 59.32 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01232/16.89, allocations: 4.776 MB / 4.004 GB, free: 57.45 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003536/16.89, allocations: 1.957 MB / 4.005 GB, free: 56.57 MB / 490.7 MB Notification: Performance of SimCode: time 1.593e-06/16.89, allocations: 4 kB / 4.005 GB, free: 56.57 MB / 490.7 MB (rm -f ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeInitialValues.pipe ; mkfifo ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeInitialValues.pipe ; head -c 1048576 < ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeInitialValues.pipe >> ../files/ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeInitialValues.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Fluid_DynamicPipeInitialValues_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Fluid_DynamicPipeInitialValues.fmu > ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeInitialValues.pipe 2>&1)