Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",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 trunk/package.mo): time 0.001028/0.001028, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.154/1.154, allocations: 225.5 MB / 234.4 MB, free: 3.367 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008957/0.0008958, allocations: 94.86 kB / 286.3 MB, free: 5.223 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2344/0.2344, allocations: 45.15 MB / 383.3 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2065/0.4409, allocations: 69.36 MB / 452.7 MB, free: 76.06 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08646/0.5274, allocations: 63.24 MB / 0.5039 GB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.27/4.797, allocations: 2.838 GB / 3.342 GB, free: 78.76 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002066/4.797, allocations: 75.97 kB / 3.342 GB, free: 78.68 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 1.523/6.321, allocations: 0.4962 GB / 3.838 GB, free: 56.25 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/6.321, allocations: 11.81 kB / 3.838 GB, free: 56.25 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004626/6.326, allocations: 0.7373 MB / 3.839 GB, free: 56.14 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003076/6.329, allocations: 1.587 MB / 3.841 GB, free: 55.82 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001017/6.329, allocations: 99.2 kB / 3.841 GB, free: 55.82 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002533/6.329, allocations: 106.6 kB / 3.841 GB, free: 55.82 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003644/6.333, allocations: 2.922 MB / 3.844 GB, free: 55.81 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003481/6.336, allocations: 2.945 MB / 3.847 GB, free: 55.37 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.384e-05/6.336, allocations: 6.469 kB / 3.847 GB, free: 55.37 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001997/6.336, allocations: 3.938 kB / 3.847 GB, free: 55.37 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001067/6.337, allocations: 184.8 kB / 3.847 GB, free: 55.36 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2597/6.596, allocations: 158.3 MB / 4.001 GB, free: 32.45 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/6.598, allocations: 1.15 MB / 4.003 GB, free: 32.43 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001164/6.599, allocations: 1.017 MB / 4.004 GB, free: 32.41 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03375/6.633, allocations: 19.11 MB / 4.022 GB, free: 19.53 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001816/6.635, allocations: 1.172 MB / 4.023 GB, free: 19.43 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=139): time 3.116e-06/6.635, allocations: 0 / 4.023 GB, free: 19.43 MB / 0.6198 GB Notification: Performance of matching and sorting (n=159): time 0.019/6.654, allocations: 7.678 MB / 4.031 GB, free: 18.32 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/6.654, allocations: 223.8 kB / 4.031 GB, free: 34.07 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001128/6.655, allocations: 0.9574 MB / 4.032 GB, free: 33.89 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001246/6.655, allocations: 29.64 kB / 4.032 GB, free: 33.86 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.000449/6.655, allocations: 0.7668 MB / 4.033 GB, free: 33.38 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003307/6.656, allocations: 0.5337 MB / 4.033 GB, free: 33.04 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/6.656, allocations: 0 / 4.033 GB, free: 33.04 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001936/6.656, allocations: 445.2 kB / 4.034 GB, free: 32.72 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001512/6.658, allocations: 1.241 MB / 4.035 GB, free: 32.71 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001759/6.659, allocations: 1.782 MB / 4.037 GB, free: 32.08 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00449/6.664, allocations: 1.859 MB / 4.039 GB, free: 31.64 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.774e-06/6.664, allocations: 4 kB / 4.039 GB, free: 31.64 MB / 0.6355 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.009459/6.673, allocations: 5.002 MB / 4.043 GB, free: 28.87 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.00215/6.676, allocations: 6.267 MB / 4.05 GB, free: 22.25 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.973e-05/6.676, allocations: 17.78 kB / 4.05 GB, free: 22.24 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009365/6.685, allocations: 2.722 MB / 4.052 GB, free: 20.53 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/6.686, allocations: 333.3 kB / 4.053 GB, free: 20.29 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007453/6.694, allocations: 4.851 MB / 4.057 GB, free: 17.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002162/6.696, allocations: 246.8 kB / 4.057 GB, free: 17.32 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002266/6.696, allocations: 113.6 kB / 4.058 GB, free: 17.24 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 7.184e-06/6.696, allocations: 4 kB / 4.058 GB, free: 17.24 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007302/6.703, allocations: 3.883 MB / 4.061 GB, free: 15.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/6.703, allocations: 16.94 kB / 4.061 GB, free: 15.09 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008126/6.711, allocations: 2.186 MB / 4.064 GB, free: 13.74 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001241/6.713, allocations: 372.7 kB / 4.064 GB, free: 13.46 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004536/6.717, allocations: 3.637 MB / 4.067 GB, free: 11.3 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001798/6.719, allocations: 234.4 kB / 4.068 GB, free: 11.12 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002119/6.719, allocations: 100.2 kB / 4.068 GB, free: 11.05 MB / 0.6355 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * 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.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].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 (166): * Single equations (assignments): 165 * 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 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.0004877/6.72, allocations: 163.3 kB / 4.068 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001341/6.721, allocations: 0.5155 MB / 4.068 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007091/6.728, allocations: 5.202 MB / 4.074 GB, free: 7.68 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.521e-05/6.728, allocations: 45.23 kB / 4.074 GB, free: 7.656 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/6.728, allocations: 0 / 4.074 GB, free: 7.656 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00606/6.734, allocations: 4.666 MB / 4.078 GB, free: 4.758 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1858/6.92, allocations: 7.764 MB / 4.086 GB, free: 197.8 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.1e-05/6.92, allocations: 6.812 kB / 4.086 GB, free: 197.8 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00182/6.922, allocations: 363.6 kB / 4.086 GB, free: 197.8 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001124/6.923, allocations: 419.2 kB / 4.086 GB, free: 197.8 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001558/6.923, allocations: 52.06 kB / 4.086 GB, free: 197.8 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001589/6.925, allocations: 3.39 MB / 4.09 GB, free: 195.2 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/6.925, allocations: 4.812 kB / 4.09 GB, free: 195.2 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008457/6.933, allocations: 6.391 MB / 4.096 GB, free: 194.8 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01028/6.944, allocations: 8.888 MB / 4.105 GB, free: 194.1 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009069/6.945, allocations: 0.5414 MB / 4.105 GB, free: 194 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003208/6.945, allocations: 21.44 kB / 4.105 GB, free: 194 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001465/6.946, allocations: 164 kB / 4.105 GB, free: 194 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002925/6.947, allocations: 150.6 kB / 4.106 GB, free: 194 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001594/6.947, allocations: 71.08 kB / 4.106 GB, free: 194 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0008454/6.948, allocations: 0.6818 MB / 4.106 GB, free: 193.9 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.008629/6.956, allocations: 2.584 MB / 4.109 GB, free: 193.9 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 10 (pipe.mediums[1].p,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: 24 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 161 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005659/6.962, allocations: 2.166 MB / 4.111 GB, free: 193.8 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.007246/6.969, allocations: 5.367 MB / 4.116 GB, free: 193.7 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/6.969, allocations: 0 / 4.116 GB, free: 193.7 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.002963/6.972, allocations: 2.407 MB / 4.119 GB, free: 193.7 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002605/6.975, allocations: 0.517 MB / 4.119 GB, free: 193.7 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007631/6.983, allocations: 5.035 MB / 4.124 GB, free: 192.9 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001708/6.984, allocations: 1.993 MB / 4.126 GB, free: 192.2 MB / 0.6355 GB Notification: Performance of SimCode: time 5.21e-07/6.984, allocations: 3.156 kB / 4.126 GB, free: 192.2 MB / 0.6355 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1)