Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",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 3.2.3+maint.om/package.mo): time 0.001311/0.001311, allocations: 189.4 kB / 7.801 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.756/1.756, allocations: 205.2 MB / 213.4 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001232/0.001231, allocations: 87.56 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2364/0.2364, allocations: 43.49 MB / 352.8 MB, free: 1.945 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2527/0.4892, allocations: 64.96 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4333/0.9225, allocations: 58.84 MB / 476.6 MB, free: 5.195 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.634/2.557, allocations: 0.6583 GB / 1.124 GB, free: 98.46 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002879/2.557, allocations: 83.41 kB / 1.124 GB, free: 98.38 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 2.374/4.931, allocations: 0.5451 GB / 1.669 GB, free: 41.79 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/4.931, allocations: 7.875 kB / 1.669 GB, free: 41.79 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004413/4.935, allocations: 446.5 kB / 1.669 GB, free: 41.66 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008092/4.943, allocations: 1.949 MB / 1.671 GB, free: 41.22 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001993/4.944, allocations: 58.03 kB / 1.671 GB, free: 41.22 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001222/4.945, allocations: 102.1 kB / 1.671 GB, free: 41.22 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005869/4.951, allocations: 2.192 MB / 1.674 GB, free: 41.21 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007242/4.958, allocations: 2.42 MB / 1.676 GB, free: 40.79 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.043e-05/4.958, allocations: 6.094 kB / 1.676 GB, free: 40.79 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006843/4.959, allocations: 13.09 kB / 1.676 GB, free: 40.79 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000224/4.959, allocations: 160.2 kB / 1.676 GB, free: 40.79 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02214/4.981, allocations: 11.47 MB / 1.687 GB, free: 34.4 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002093/4.983, allocations: 1.044 MB / 1.688 GB, free: 34.39 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00179/4.985, allocations: 0.9968 MB / 1.689 GB, free: 34.38 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001156/4.987, allocations: 459.5 kB / 1.69 GB, free: 34.09 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002255/4.989, allocations: 1.185 MB / 1.691 GB, free: 33.92 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=153): time 8.456e-06/4.989, allocations: 2.281 kB / 1.691 GB, free: 33.92 MB / 0.5105 GB Notification: Performance of matching and sorting (n=173): time 0.04827/5.037, allocations: 9.537 MB / 1.7 GB, free: 33.02 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001844/5.037, allocations: 362 kB / 1.701 GB, free: 32.61 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003239/5.041, allocations: 1.081 MB / 1.702 GB, free: 32.44 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007881/5.041, allocations: 25.7 kB / 1.702 GB, free: 32.41 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001028/5.042, allocations: 0.6604 MB / 1.702 GB, free: 32.03 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001198/5.044, allocations: 0.559 MB / 1.703 GB, free: 31.66 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004942/5.044, allocations: 2.219 kB / 1.703 GB, free: 31.66 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002543/5.044, allocations: 386.6 kB / 1.703 GB, free: 31.36 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002197/5.047, allocations: 1.012 MB / 1.704 GB, free: 31.35 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002553/5.049, allocations: 1.435 MB / 1.706 GB, free: 30.93 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01154/5.061, allocations: 2.442 MB / 1.708 GB, free: 30.91 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.521e-05/5.061, allocations: 7.375 kB / 1.708 GB, free: 30.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01752/5.078, allocations: 4.077 MB / 1.712 GB, free: 30.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001178/5.08, allocations: 3.645 MB / 1.715 GB, free: 26.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-05/5.08, allocations: 7.031 kB / 1.715 GB, free: 26.99 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004973/5.08, allocations: 172.8 kB / 1.716 GB, free: 26.96 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00294/5.083, allocations: 0.5318 MB / 1.716 GB, free: 26.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001656/5.085, allocations: 2.368 MB / 1.718 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00385/5.089, allocations: 176.5 kB / 1.719 GB, free: 24.87 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000906/5.09, allocations: 183.6 kB / 1.719 GB, free: 24.87 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/5.09, allocations: 6.734 kB / 1.719 GB, free: 24.87 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01589/5.106, allocations: 3.534 MB / 1.722 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.085e-05/5.106, allocations: 12.59 kB / 1.722 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004041/5.106, allocations: 166.5 kB / 1.722 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00276/5.109, allocations: 0.5187 MB / 1.723 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001313/5.11, allocations: 2.365 MB / 1.725 GB, free: 22.69 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003012/5.113, allocations: 163.9 kB / 1.725 GB, free: 22.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000735/5.114, allocations: 178.4 kB / 1.726 GB, free: 22.68 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (243): * Single equations (assignments): 237 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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.001262/5.115, allocations: 233.5 kB / 1.726 GB, free: 22.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008217/5.116, allocations: 189.4 kB / 1.726 GB, free: 22.41 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01712/5.133, allocations: 4.274 MB / 1.73 GB, free: 22.23 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.277e-05/5.133, allocations: 21.28 kB / 1.73 GB, free: 22.23 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.732e-05/5.133, allocations: 0 / 1.73 GB, free: 22.23 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01346/5.147, allocations: 3.535 MB / 1.734 GB, free: 21.72 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02292/5.17, allocations: 6.862 MB / 1.74 GB, free: 20.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.324e-05/5.17, allocations: 6.938 kB / 1.74 GB, free: 20.76 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002307/5.172, allocations: 410.1 kB / 1.741 GB, free: 20.76 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005354/5.173, allocations: 167.5 kB / 1.741 GB, free: 20.73 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003648/5.173, allocations: 67.09 kB / 1.741 GB, free: 20.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002199/5.175, allocations: 3.039 MB / 1.744 GB, free: 17.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.996e-05/5.175, allocations: 11.55 kB / 1.744 GB, free: 17.98 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01882/5.194, allocations: 5.333 MB / 1.749 GB, free: 16.93 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02074/5.215, allocations: 7.233 MB / 1.756 GB, free: 14.16 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002172/5.217, allocations: 0.5143 MB / 1.757 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001026/5.218, allocations: 25.27 kB / 1.757 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002264/5.221, allocations: 93.67 kB / 1.757 GB, free: 13.85 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004299/5.221, allocations: 149.3 kB / 1.757 GB, free: 13.83 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005419/5.222, allocations: 150.4 kB / 1.757 GB, free: 13.81 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001991/5.224, allocations: 0.8046 MB / 1.758 GB, free: 13.48 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01308/5.237, allocations: 2.273 MB / 1.76 GB, free: 12.67 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009766/5.247, allocations: 2.676 MB / 1.763 GB, free: 12.06 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009882/5.257, allocations: 3.974 MB / 1.767 GB, free: 8.867 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.978e-05/5.257, allocations: 7.859 kB / 1.767 GB, free: 8.859 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002519/5.259, allocations: 1.379 MB / 1.768 GB, free: 7.586 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005309/5.264, allocations: 0.7665 MB / 1.769 GB, free: 7.051 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01417/5.279, allocations: 4.06 MB / 1.773 GB, free: 3.609 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003042/5.282, allocations: 2.155 MB / 1.775 GB, free: 17.82 MB / 0.5261 GB Notification: Performance of SimCode: time 1.302e-06/5.282, allocations: 3.844 kB / 1.775 GB, free: 17.82 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe 2>&1)