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+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.DynamicPipeLumpedPressureInitialization,fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Fluid_DynamicPipeLumpedPressureInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeLumpedPressureInitialization,fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Fluid_DynamicPipeLumpedPressureInitialization",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.008559/0.008559, allocations: 179.3 kB / 7.457 MB, free: 2.5 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.03/2.03, allocations: 221.4 MB / 229.3 MB, free: 3.008 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.001432/0.001433, allocations: 93.53 kB / 280.1 MB, free: 1.258 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.005281/0.005281, allocations: 0.5566 MB / 331.4 MB, free: 13.89 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4484/0.4537, allocations: 56.69 MB / 388.1 MB, free: 76.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1752/0.629, allocations: 50.57 MB / 438.7 MB, free: 25.91 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.8/12.43, allocations: 2.828 GB / 3.256 GB, free: 94.48 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003521/12.43, allocations: 75.97 kB / 3.256 GB, free: 94.41 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: 369 * Number of variables: 369 Notification: Performance of Generate backend data structure: time 3.621/16.05, allocations: 0.4895 GB / 3.746 GB, free: 41.27 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.237e-05/16.05, allocations: 6.875 kB / 3.746 GB, free: 41.27 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009536/16.06, allocations: 0.6111 MB / 3.746 GB, free: 41.18 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008871/16.07, allocations: 1.471 MB / 3.748 GB, free: 40.84 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003358/16.07, allocations: 75.84 kB / 3.748 GB, free: 40.84 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001169/16.07, allocations: 83.34 kB / 3.748 GB, free: 40.84 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00786/16.08, allocations: 2.061 MB / 3.75 GB, free: 40.83 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009044/16.09, allocations: 2.079 MB / 3.752 GB, free: 40.43 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.981e-05/16.09, allocations: 7.031 kB / 3.752 GB, free: 40.43 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003938/16.09, allocations: 8.875 kB / 3.752 GB, free: 40.43 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002271/16.09, allocations: 119.2 kB / 3.752 GB, free: 40.42 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.008/17.1, allocations: 134.3 MB / 3.883 GB, free: 119.4 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00213/17.1, allocations: 0.8658 MB / 3.884 GB, free: 119.4 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001337/17.1, allocations: 0.7735 MB / 3.885 GB, free: 119.4 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03648/17.14, allocations: 16.71 MB / 3.901 GB, free: 109.2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002108/17.14, allocations: 0.8746 MB / 3.902 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=112): time 4.679e-06/17.14, allocations: 2.938 kB / 3.902 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=136): time 0.01866/17.16, allocations: 6.223 MB / 3.908 GB, free: 108.4 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.612e-05/17.16, allocations: 200.6 kB / 3.908 GB, free: 108.2 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001573/17.16, allocations: 0.8452 MB / 3.909 GB, free: 108 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003382/17.16, allocations: 29.02 kB / 3.909 GB, free: 108 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008747/17.16, allocations: 0.6022 MB / 3.91 GB, free: 107.7 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007834/17.16, allocations: 460.7 kB / 3.91 GB, free: 107.4 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/17.16, allocations: 0 / 3.91 GB, free: 107.4 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003215/17.16, allocations: 439.5 kB / 3.91 GB, free: 107.1 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002525/17.16, allocations: 0.9517 MB / 3.911 GB, free: 107.1 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002814/17.17, allocations: 1.432 MB / 3.913 GB, free: 106.6 MB / 0.4948 GB 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.02106/17.19, allocations: 3.649 MB / 3.916 GB, free: 106.1 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.13e-05/17.19, allocations: 3.75 kB / 3.916 GB, free: 106.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01089/17.2, allocations: 4.009 MB / 3.92 GB, free: 106 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001657/17.2, allocations: 5.65 MB / 3.926 GB, free: 100.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.201e-05/17.2, allocations: 17.41 kB / 3.926 GB, free: 100.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008963/17.21, allocations: 2.009 MB / 3.928 GB, free: 100.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001427/17.21, allocations: 276.8 kB / 3.928 GB, free: 100.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007344/17.22, allocations: 3.717 MB / 3.932 GB, free: 99.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003138/17.22, allocations: 195.2 kB / 3.932 GB, free: 99.52 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004861/17.22, allocations: 94.91 kB / 3.932 GB, free: 99.52 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/17.22, allocations: 5.75 kB / 3.932 GB, free: 99.52 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008822/17.23, allocations: 3.335 MB / 3.935 GB, free: 99.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-05/17.23, allocations: 13.66 kB / 3.935 GB, free: 99.47 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007754/17.24, allocations: 1.797 MB / 3.937 GB, free: 99.45 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00172/17.24, allocations: 299.1 kB / 3.937 GB, free: 99.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00651/17.25, allocations: 3.247 MB / 3.94 GB, free: 98.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003118/17.25, allocations: 179.2 kB / 3.941 GB, free: 98.88 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006545/17.25, allocations: 94.23 kB / 3.941 GB, free: 98.88 MB / 0.4948 GB 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.001311/17.25, allocations: 163.2 kB / 3.941 GB, free: 98.77 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002514/17.25, allocations: 0.4949 MB / 3.941 GB, free: 98.7 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01057/17.26, allocations: 4.747 MB / 3.946 GB, free: 98.41 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.973e-05/17.27, allocations: 42.81 kB / 3.946 GB, free: 98.41 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-05/17.27, allocations: 0 / 3.946 GB, free: 98.41 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007754/17.27, allocations: 4.321 MB / 3.95 GB, free: 97.78 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01608/17.29, allocations: 7.387 MB / 3.957 GB, free: 96.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.55e-05/17.29, allocations: 0 / 3.957 GB, free: 96.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001231/17.29, allocations: 227.9 kB / 3.958 GB, free: 96.89 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004402/17.29, allocations: 1.194 MB / 3.959 GB, free: 96.87 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002871/17.3, allocations: 38.17 kB / 3.959 GB, free: 96.87 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003409/17.3, allocations: 2.509 MB / 3.961 GB, free: 96.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.757e-06/17.3, allocations: 4.594 kB / 3.961 GB, free: 96.3 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01306/17.31, allocations: 5.903 MB / 3.967 GB, free: 95.79 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0187/17.33, allocations: 8.041 MB / 3.975 GB, free: 94.89 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002372/17.33, allocations: 479.3 kB / 3.975 GB, free: 94.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00111/17.33, allocations: 22.45 kB / 3.975 GB, free: 94.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002501/17.34, allocations: 126.7 kB / 3.976 GB, free: 94.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005233/17.34, allocations: 137.2 kB / 3.976 GB, free: 94.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002417/17.34, allocations: 57.28 kB / 3.976 GB, free: 94.7 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001653/17.34, allocations: 0.6022 MB / 3.976 GB, free: 94.59 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01831/17.36, allocations: 2.34 MB / 3.979 GB, free: 94.5 MB / 0.4948 GB 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.01632/17.37, allocations: 2.143 MB / 3.981 GB, free: 94.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01081/17.38, allocations: 4.411 MB / 3.985 GB, free: 93.88 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.366e-05/17.38, allocations: 6.562 kB / 3.985 GB, free: 93.88 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004043/17.39, allocations: 2.255 MB / 3.987 GB, free: 92.97 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003989/17.39, allocations: 0.4899 MB / 3.988 GB, free: 92.89 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01278/17.41, allocations: 4.158 MB / 3.992 GB, free: 91.44 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003048/17.41, allocations: 1.73 MB / 3.993 GB, free: 90.62 MB / 0.4948 GB Notification: Performance of SimCode: time 2.515e-06/17.41, allocations: 0 / 3.993 GB, free: 90.62 MB / 0.4948 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Fluid_DynamicPipeLumpedPressureInitialization_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Fluid_DynamicPipeLumpedPressureInitialization.fmu > ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeLumpedPressureInitialization.pipe 2>&1)