Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16") [: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.2+maint.om/package.mo): time 0.003737/0.003737, allocations: 179.8 kB / 7.455 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.644/1.644, allocations: 194.2 MB / 202.1 MB, free: 8.641 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001933/0.001933, allocations: 113.5 kB / 247.1 MB, free: 6.383 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2331/0.2331, allocations: 39.93 MB / 331.9 MB, free: 4.953 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 8.956e-06/8.977e-06, allocations: 0 / 392.8 MB, free: 75.88 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.1553, allocations: 54.86 MB / 447.6 MB, free: 20.99 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.872/2.028, allocations: 0.6542 GB / 1.091 GB, free: 161.9 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002707/2.028, allocations: 82.77 kB / 1.091 GB, free: 161.9 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.84/3.868, allocations: 0.5372 GB / 1.629 GB, free: 1.688 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000467/3.869, allocations: 55.12 kB / 1.629 GB, free: 1.637 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 0.2993/4.168, allocations: 3.027 MB / 1.632 GB, free: 77.56 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/4.168, allocations: 9.312 kB / 1.632 GB, free: 77.56 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003672/4.172, allocations: 445.6 kB / 1.632 GB, free: 77.44 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005232/4.177, allocations: 1.948 MB / 1.634 GB, free: 77.09 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.885e-05/4.177, allocations: 53.22 kB / 1.634 GB, free: 77.09 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003314/4.178, allocations: 99.66 kB / 1.634 GB, free: 77.09 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003489/4.181, allocations: 2.182 MB / 1.636 GB, free: 77.08 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00353/4.185, allocations: 2.406 MB / 1.639 GB, free: 76.66 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.444e-05/4.185, allocations: 0 / 1.639 GB, free: 76.66 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002128/4.185, allocations: 7.406 kB / 1.639 GB, free: 76.66 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001559/4.185, allocations: 164 kB / 1.639 GB, free: 76.65 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0154/4.201, allocations: 11.41 MB / 1.65 GB, free: 70.39 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001532/4.202, allocations: 1.026 MB / 1.651 GB, free: 70.36 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001241/4.203, allocations: 0.9881 MB / 1.652 GB, free: 70.34 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000954/4.204, allocations: 456.9 kB / 1.652 GB, free: 70.06 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001419/4.206, allocations: 1.07 MB / 1.653 GB, free: 69.94 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=153): time 6.171e-06/4.206, allocations: 6 kB / 1.653 GB, free: 69.94 MB / 0.4948 GB Notification: Performance of matching and sorting (n=173): time 0.03993/4.246, allocations: 9.421 MB / 1.663 GB, free: 69.13 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/4.246, allocations: 256.8 kB / 1.663 GB, free: 68.85 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001656/4.247, allocations: 1.085 MB / 1.664 GB, free: 68.68 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002835/4.248, allocations: 32.45 kB / 1.664 GB, free: 68.65 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005671/4.248, allocations: 0.6631 MB / 1.665 GB, free: 68.35 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005629/4.249, allocations: 0.5705 MB / 1.665 GB, free: 68.06 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001407/4.249, allocations: 3.219 kB / 1.665 GB, free: 68.06 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001332/4.249, allocations: 381 kB / 1.665 GB, free: 67.75 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001435/4.251, allocations: 0.9975 MB / 1.666 GB, free: 67.75 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001664/4.252, allocations: 1.425 MB / 1.668 GB, free: 67.32 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01047/4.263, allocations: 2.428 MB / 1.67 GB, free: 67.29 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.654e-05/4.263, allocations: 5.656 kB / 1.67 GB, free: 67.29 MB / 0.4948 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01453/4.277, allocations: 4.068 MB / 1.674 GB, free: 67.09 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000946/4.278, allocations: 4.162 MB / 1.678 GB, free: 62.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.231e-05/4.278, allocations: 15.08 kB / 1.678 GB, free: 62.83 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004247/4.279, allocations: 174.7 kB / 1.678 GB, free: 62.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002481/4.281, allocations: 0.5332 MB / 1.679 GB, free: 62.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001279/4.283, allocations: 2.369 MB / 1.681 GB, free: 60.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002826/4.286, allocations: 166.2 kB / 1.681 GB, free: 60.72 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003634/4.286, allocations: 184.3 kB / 1.682 GB, free: 60.72 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/4.286, allocations: 3.562 kB / 1.682 GB, free: 60.72 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01303/4.299, allocations: 3.539 MB / 1.685 GB, free: 60.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.711e-05/4.299, allocations: 13.66 kB / 1.685 GB, free: 60.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003913/4.299, allocations: 167.8 kB / 1.685 GB, free: 60.61 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002397/4.302, allocations: 0.5296 MB / 1.686 GB, free: 60.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001234/4.303, allocations: 2.371 MB / 1.688 GB, free: 58.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002593/4.306, allocations: 162.1 kB / 1.688 GB, free: 58.54 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000323/4.306, allocations: 183.6 kB / 1.688 GB, free: 58.54 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (247): * Single equations (assignments): 241 * 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.0008289/4.307, allocations: 227.7 kB / 1.689 GB, free: 58.36 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005141/4.307, allocations: 190.5 kB / 1.689 GB, free: 58.27 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01544/4.323, allocations: 4.241 MB / 1.693 GB, free: 58.11 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.046e-05/4.323, allocations: 17.44 kB / 1.693 GB, free: 58.11 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/4.323, allocations: 3.828 kB / 1.693 GB, free: 58.11 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01229/4.335, allocations: 3.489 MB / 1.696 GB, free: 57.59 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02118/4.356, allocations: 6.784 MB / 1.703 GB, free: 56.65 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.917e-05/4.357, allocations: 6.906 kB / 1.703 GB, free: 56.65 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002162/4.359, allocations: 403.9 kB / 1.703 GB, free: 56.65 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004551/4.359, allocations: 168.1 kB / 1.704 GB, free: 56.62 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000407/4.36, allocations: 72.61 kB / 1.704 GB, free: 56.62 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001744/4.361, allocations: 3.035 MB / 1.707 GB, free: 53.87 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.035e-06/4.361, allocations: 10.34 kB / 1.707 GB, free: 53.87 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01495/4.376, allocations: 5.271 MB / 1.712 GB, free: 52.82 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001587/4.378, allocations: 0.5043 MB / 1.712 GB, free: 52.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005766/4.379, allocations: 28.92 kB / 1.712 GB, free: 52.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001462/4.38, allocations: 91.62 kB / 1.712 GB, free: 52.62 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002701/4.38, allocations: 143 kB / 1.712 GB, free: 52.61 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002518/4.381, allocations: 147.5 kB / 1.713 GB, free: 52.61 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001184/4.382, allocations: 0.7963 MB / 1.713 GB, free: 52.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0071/4.389, allocations: 1.795 MB / 1.715 GB, free: 52.5 MB / 0.4948 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 (181): * Single equations (assignments): 175 * 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.005926/4.395, allocations: 2.692 MB / 1.718 GB, free: 52.22 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006013/4.401, allocations: 3.952 MB / 1.722 GB, free: 52.04 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.367e-05/4.401, allocations: 6.797 kB / 1.722 GB, free: 52.04 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001811/4.403, allocations: 1.382 MB / 1.723 GB, free: 51.87 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003985/4.407, allocations: 0.7487 MB / 1.724 GB, free: 51.85 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01296/4.42, allocations: 5.605 MB / 1.729 GB, free: 50.96 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002827/4.423, allocations: 2.136 MB / 1.731 GB, free: 50.21 MB / 0.4948 GB Notification: Performance of SimCode: time 1.714e-06/4.423, allocations: 0 / 1.731 GB, free: 50.21 MB / 0.4948 GB Notification: Performance of Templates: time 0.1088/4.531, allocations: 71.74 MB / 1.801 GB, free: 36.04 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe 2>&1)