Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.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: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002194/0.002193, allocations: 180.1 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.052/2.052, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001097/0.001097, allocations: 80.38 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4002/0.4002, allocations: 43.48 MB / 353.5 MB, free: 2.293 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.993e-05/1.994e-05, allocations: 0 / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4087/0.4088, allocations: 58.85 MB / 477.1 MB, free: 5.285 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8112/1.22, allocations: 334.9 MB / 0.793 GB, free: 2.387 MB / 475.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002996/1.22, allocations: 91.31 kB / 0.7931 GB, free: 2.34 MB / 475.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8494/2.07, allocations: 141.9 MB / 0.9316 GB, free: 103.6 MB / 0.4952 GB Notification: Performance of FrontEnd: time 1.873e-06/2.07, allocations: 4 kB / 0.9316 GB, free: 103.5 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 8.465e-05/2.07, allocations: 23.91 kB / 0.9316 GB, free: 103.5 MB / 0.4952 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.003448/2.073, allocations: 1.182 MB / 0.9328 GB, free: 102.3 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/2.074, allocations: 12.03 kB / 0.9328 GB, free: 102.3 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006098/2.074, allocations: 110.9 kB / 0.9329 GB, free: 102.2 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001964/2.076, allocations: 0.6749 MB / 0.9336 GB, free: 101.5 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001117/2.076, allocations: 96.64 kB / 0.9337 GB, free: 101.4 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000144/2.076, allocations: 32 kB / 0.9337 GB, free: 101.3 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001917/2.078, allocations: 0.8186 MB / 0.9345 GB, free: 100.5 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001937/2.08, allocations: 0.9317 MB / 0.9354 GB, free: 99.53 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.172e-05/2.08, allocations: 3.938 kB / 0.9354 GB, free: 99.53 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001224/2.08, allocations: 7.953 kB / 0.9354 GB, free: 99.52 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001128/2.081, allocations: 49.28 kB / 0.9355 GB, free: 99.47 MB / 0.4952 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008611/2.089, allocations: 3.862 MB / 0.9392 GB, free: 95.47 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001298/2.091, allocations: 0.6284 MB / 0.9398 GB, free: 94.84 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007372/2.091, allocations: 394.2 kB / 0.9402 GB, free: 94.45 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004578/2.096, allocations: 2.369 MB / 0.9425 GB, free: 91.85 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009429/2.097, allocations: 487.2 kB / 0.943 GB, free: 91.34 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=48): time 3.146e-06/2.097, allocations: 0 / 0.943 GB, free: 91.34 MB / 0.4952 GB Notification: Performance of matching and sorting (n=53): time 0.01089/2.108, allocations: 2.534 MB / 0.9455 GB, free: 88.75 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.091e-05/2.108, allocations: 243.8 kB / 0.9457 GB, free: 88.46 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009237/2.109, allocations: 0.5464 MB / 0.9462 GB, free: 87.91 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.0001215/2.109, allocations: 33.69 kB / 0.9463 GB, free: 87.87 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.00031/2.109, allocations: 449.5 kB / 0.9467 GB, free: 87.43 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001892/2.11, allocations: 169.7 kB / 0.9469 GB, free: 87.26 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.172e-05/2.11, allocations: 0 / 0.9469 GB, free: 87.26 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 8.468e-05/2.11, allocations: 347.5 kB / 0.9472 GB, free: 86.91 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000761/2.111, allocations: 349.4 kB / 0.9475 GB, free: 86.57 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000888/2.111, allocations: 0.5787 MB / 0.9481 GB, free: 85.88 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007373/2.119, allocations: 1.043 MB / 0.9491 GB, free: 84.84 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-05/2.119, allocations: 7.938 kB / 0.9491 GB, free: 84.83 MB / 0.4952 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.009688/2.129, allocations: 1.761 MB / 0.9508 GB, free: 83.06 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004694/2.129, allocations: 2.476 MB / 0.9533 GB, free: 80.38 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/2.129, allocations: 4 kB / 0.9533 GB, free: 80.38 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001076/2.13, allocations: 313.5 kB / 0.9536 GB, free: 80.07 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001113/2.131, allocations: 151.7 kB / 0.9537 GB, free: 79.92 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003076/2.134, allocations: 1.624 MB / 0.9553 GB, free: 78.24 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/2.136, allocations: 39.95 kB / 0.9553 GB, free: 78.2 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/2.136, allocations: 43.98 kB / 0.9554 GB, free: 78.16 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/2.136, allocations: 4 kB / 0.9554 GB, free: 78.16 MB / 0.4952 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008887/2.145, allocations: 1.681 MB / 0.957 GB, free: 76.47 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/2.145, allocations: 8.125 kB / 0.957 GB, free: 76.46 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009644/2.146, allocations: 317.8 kB / 0.9573 GB, free: 76.15 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/2.147, allocations: 143.8 kB / 0.9575 GB, free: 76.01 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002602/2.15, allocations: 1.569 MB / 0.959 GB, free: 74.39 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009989/2.151, allocations: 40 kB / 0.959 GB, free: 74.35 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/2.151, allocations: 43.98 kB / 0.9591 GB, free: 74.3 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003317/2.151, allocations: 169.3 kB / 0.9592 GB, free: 74.13 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002316/2.151, allocations: 79.16 kB / 0.9593 GB, free: 74.05 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004606/2.156, allocations: 1.223 MB / 0.9605 GB, free: 72.81 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/2.156, allocations: 8 kB / 0.9605 GB, free: 72.8 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/2.156, allocations: 0 / 0.9605 GB, free: 72.8 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/2.156, allocations: 3.953 kB / 0.9605 GB, free: 72.8 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005863/2.162, allocations: 2.015 MB / 0.9625 GB, free: 70.74 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/2.162, allocations: 3.938 kB / 0.9625 GB, free: 70.74 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007519/2.163, allocations: 79.89 kB / 0.9626 GB, free: 70.66 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001014/2.164, allocations: 309.5 kB / 0.9629 GB, free: 70.35 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.596e-05/2.164, allocations: 15.92 kB / 0.9629 GB, free: 70.34 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002887/2.167, allocations: 1.6 MB / 0.9644 GB, free: 68.69 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/2.167, allocations: 0 / 0.9644 GB, free: 68.69 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005156/2.172, allocations: 1.702 MB / 0.9661 GB, free: 66.96 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007007/2.173, allocations: 252.2 kB / 0.9663 GB, free: 66.7 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000194/2.173, allocations: 12.05 kB / 0.9663 GB, free: 66.68 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/2.174, allocations: 35.92 kB / 0.9664 GB, free: 66.65 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001748/2.174, allocations: 48.36 kB / 0.9664 GB, free: 66.6 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/2.174, allocations: 31.98 kB / 0.9665 GB, free: 66.57 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.0006864/2.175, allocations: 435.1 kB / 0.9669 GB, free: 66.15 MB / 0.4952 GB Notification: Performance of sort global known variables: time 4.51e-07/2.175, allocations: 0 / 0.9669 GB, free: 66.15 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.002683/2.178, allocations: 0.6478 MB / 0.9675 GB, free: 65.5 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002082/2.18, allocations: 0.6397 MB / 0.9681 GB, free: 64.9 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.004067/2.184, allocations: 1.452 MB / 0.9696 GB, free: 63.43 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/2.184, allocations: 1.25 kB / 0.9696 GB, free: 63.43 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.001314/2.185, allocations: 472.9 kB / 0.97 GB, free: 62.95 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002228/2.188, allocations: 268.1 kB / 0.9703 GB, free: 62.68 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003653/2.191, allocations: 1.272 MB / 0.9715 GB, free: 61.38 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005468/2.192, allocations: 1.029 MB / 0.9725 GB, free: 60.32 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004073/2.192, allocations: 71.41 kB / 0.9726 GB, free: 60.25 MB / 0.4952 GB Notification: Performance of SimCode: time 1.183e-06/2.192, allocations: 4 kB / 0.9726 GB, free: 60.25 MB / 0.4952 GB Notification: Performance of Templates: time 0.04008/2.232, allocations: 22.09 MB / 0.9941 GB, free: 38.16 MB / 0.4952 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)