Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.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.SeriesPipes1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",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.001133/0.001133, allocations: 201.6 kB / 8.54 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.203/1.203, allocations: 225.5 MB / 234.4 MB, free: 3.371 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008742/0.0008742, allocations: 91.39 kB / 286.3 MB, free: 5.215 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1713/0.1713, allocations: 45.14 MB / 383.3 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2128/0.3841, allocations: 69.37 MB / 452.7 MB, free: 76.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09303/0.4772, allocations: 63.24 MB / 0.5039 GB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.467/4.944, allocations: 2.833 GB / 3.336 GB, free: 85.55 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000188/4.944, allocations: 79.95 kB / 3.336 GB, free: 85.48 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "Mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 2.36/7.304, allocations: 0.81 GB / 4.147 GB, free: 41.42 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/7.304, allocations: 10.88 kB / 4.147 GB, free: 41.42 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007106/7.312, allocations: 0.8838 MB / 4.147 GB, free: 41.28 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006385/7.318, allocations: 2.104 MB / 4.149 GB, free: 40.82 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002013/7.318, allocations: 94.3 kB / 4.15 GB, free: 40.82 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007846/7.319, allocations: 118.8 kB / 4.15 GB, free: 40.82 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005109/7.324, allocations: 2.619 MB / 4.152 GB, free: 40.81 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003965/7.328, allocations: 2.863 MB / 4.155 GB, free: 40.26 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.044e-05/7.328, allocations: 13.02 kB / 4.155 GB, free: 40.26 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002201/7.328, allocations: 8.281 kB / 4.155 GB, free: 40.26 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001302/7.329, allocations: 165.7 kB / 4.155 GB, free: 40.25 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1796/7.508, allocations: 105.8 MB / 4.259 GB, free: 11.03 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001448/7.51, allocations: 1.139 MB / 4.26 GB, free: 10.39 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001122/7.511, allocations: 1.025 MB / 4.261 GB, free: 9.832 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2374/7.748, allocations: 19.33 MB / 4.28 GB, free: 130.7 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001755/7.75, allocations: 1.212 MB / 4.281 GB, free: 130.6 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=147): time 3.206e-06/7.75, allocations: 2.438 kB / 4.281 GB, free: 130.6 MB / 0.6042 GB Notification: Performance of matching and sorting (n=163): time 0.02064/7.771, allocations: 8.396 MB / 4.289 GB, free: 129.2 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.394e-05/7.771, allocations: 379.9 kB / 4.289 GB, free: 128.7 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00145/7.772, allocations: 1.154 MB / 4.29 GB, free: 128.6 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001465/7.772, allocations: 29.11 kB / 4.29 GB, free: 128.5 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.000454/7.773, allocations: 0.7699 MB / 4.291 GB, free: 128.2 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.000409/7.773, allocations: 0.539 MB / 4.292 GB, free: 127.9 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/7.773, allocations: 0 / 4.292 GB, free: 127.9 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.735e-05/7.774, allocations: 385.4 kB / 4.292 GB, free: 127.6 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001458/7.775, allocations: 1.159 MB / 4.293 GB, free: 127.6 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001603/7.777, allocations: 1.615 MB / 4.295 GB, free: 127.1 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00717/7.784, allocations: 2.324 MB / 4.297 GB, free: 127.1 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.297e-06/7.784, allocations: 4.906 kB / 4.297 GB, free: 127.1 MB / 0.6042 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01201/7.796, allocations: 4.736 MB / 4.302 GB, free: 126.9 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006956/7.797, allocations: 4.697 MB / 4.306 GB, free: 122.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.625e-05/7.797, allocations: 10.91 kB / 4.306 GB, free: 122.1 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006187/7.797, allocations: 252.4 kB / 4.307 GB, free: 122.1 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002161/7.799, allocations: 0.5214 MB / 4.307 GB, free: 122.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001278/7.801, allocations: 2.564 MB / 4.31 GB, free: 120 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002333/7.803, allocations: 263.5 kB / 4.31 GB, free: 120 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002371/7.803, allocations: 101.3 kB / 4.31 GB, free: 120 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.071e-06/7.803, allocations: 3.25 kB / 4.31 GB, free: 120 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008768/7.812, allocations: 3.693 MB / 4.314 GB, free: 119.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.313e-05/7.812, allocations: 15.78 kB / 4.314 GB, free: 119.9 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005747/7.813, allocations: 260.1 kB / 4.314 GB, free: 119.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002083/7.815, allocations: 0.507 MB / 4.314 GB, free: 119.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001224/7.816, allocations: 2.556 MB / 4.317 GB, free: 117.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002001/7.818, allocations: 242.3 kB / 4.317 GB, free: 117.8 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002157/7.818, allocations: 102 kB / 4.317 GB, free: 117.8 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (246): * Single equations (assignments): 239 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004561/7.819, allocations: 201.9 kB / 4.317 GB, free: 117.7 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001747/7.82, allocations: 0.6555 MB / 4.318 GB, free: 117.6 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008614/7.829, allocations: 6.678 MB / 4.324 GB, free: 117.1 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.555e-05/7.829, allocations: 57.84 kB / 4.325 GB, free: 117.1 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/7.829, allocations: 1.625 kB / 4.325 GB, free: 117.1 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00608/7.835, allocations: 5.483 MB / 4.33 GB, free: 116.4 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01115/7.846, allocations: 9.264 MB / 4.339 GB, free: 115.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/7.846, allocations: 0 / 4.339 GB, free: 115.6 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001497/7.848, allocations: 333 kB / 4.339 GB, free: 115.6 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009117/7.849, allocations: 341.8 kB / 4.34 GB, free: 115.5 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001538/7.849, allocations: 47.17 kB / 4.34 GB, free: 115.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001312/7.85, allocations: 2.719 MB / 4.342 GB, free: 113.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/7.85, allocations: 6.656 kB / 4.342 GB, free: 113.5 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009747/7.86, allocations: 7.143 MB / 4.349 GB, free: 112.9 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01152/7.872, allocations: 9.692 MB / 4.359 GB, free: 111.9 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001316/7.873, allocations: 0.6918 MB / 4.359 GB, free: 111.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003858/7.873, allocations: 20.34 kB / 4.359 GB, free: 111.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001428/7.875, allocations: 165 kB / 4.36 GB, free: 111.7 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002332/7.875, allocations: 125.6 kB / 4.36 GB, free: 111.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000171/7.875, allocations: 76.36 kB / 4.36 GB, free: 111.7 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001325/7.877, allocations: 1.106 MB / 4.361 GB, free: 111.6 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.009297/7.886, allocations: 3.249 MB / 4.364 GB, free: 111.4 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.007476/7.893, allocations: 3.088 MB / 4.367 GB, free: 111.1 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.006733/7.9, allocations: 5.506 MB / 4.372 GB, free: 111 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/7.9, allocations: 5.594 kB / 4.372 GB, free: 111 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.002903/7.903, allocations: 2.872 MB / 4.375 GB, free: 110.9 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003598/7.907, allocations: 0.7339 MB / 4.376 GB, free: 110.9 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008976/7.916, allocations: 5.949 MB / 4.382 GB, free: 109.9 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001966/7.918, allocations: 2.367 MB / 4.384 GB, free: 109.2 MB / 0.6042 GB Notification: Performance of SimCode: time 6.41e-07/7.918, allocations: 0 / 4.384 GB, free: 109.2 MB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe 2>&1)