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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002303/0.002309, allocations: 180.1 kB / 8.366 MB, free: 0.7109 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.258/2.258, allocations: 205.3 MB / 214.1 MB, free: 14.12 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.001233/0.001233, allocations: 84.64 kB / 262.1 MB, free: 13.87 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.2994/0.2993, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.675e-05/1.665e-05, allocations: 224 / 418.3 MB, free: 40.92 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4326/0.4327, allocations: 58.85 MB / 477.2 MB, free: 5.164 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8454/1.278, allocations: 334.9 MB / 0.7931 GB, free: 2.199 MB / 475.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003135/1.278, allocations: 87.25 kB / 0.7932 GB, free: 2.152 MB / 475.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8617/2.14, allocations: 141.9 MB / 0.9317 GB, free: 103.2 MB / 0.4952 GB Notification: Performance of FrontEnd: time 2.224e-06/2.14, allocations: 0 / 0.9317 GB, free: 103.2 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 8.753e-05/2.14, allocations: 23.83 kB / 0.9317 GB, free: 103.2 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.00392/2.144, allocations: 1.193 MB / 0.9329 GB, free: 102 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/2.144, allocations: 8.031 kB / 0.9329 GB, free: 101.9 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006999/2.145, allocations: 106.9 kB / 0.933 GB, free: 101.8 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002206/2.147, allocations: 0.6803 MB / 0.9337 GB, free: 101.1 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001218/2.147, allocations: 96.7 kB / 0.9338 GB, free: 101 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001552/2.148, allocations: 32 kB / 0.9338 GB, free: 101 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001977/2.15, allocations: 0.8225 MB / 0.9346 GB, free: 100.2 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00205/2.152, allocations: 0.9278 MB / 0.9355 GB, free: 99.2 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.112e-05/2.152, allocations: 7.938 kB / 0.9355 GB, free: 99.19 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001259/2.152, allocations: 3.953 kB / 0.9355 GB, free: 99.18 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001043/2.152, allocations: 53.28 kB / 0.9356 GB, free: 99.13 MB / 0.4952 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009125/2.161, allocations: 3.855 MB / 0.9393 GB, free: 95.14 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001365/2.163, allocations: 0.635 MB / 0.9399 GB, free: 94.5 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007582/2.163, allocations: 386.2 kB / 0.9403 GB, free: 94.12 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004739/2.168, allocations: 2.371 MB / 0.9426 GB, free: 91.52 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00104/2.169, allocations: 491.2 kB / 0.9431 GB, free: 91 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=48): time 5.32e-06/2.169, allocations: 0 / 0.9431 GB, free: 91 MB / 0.4952 GB Notification: Performance of matching and sorting (n=53): time 0.01239/2.182, allocations: 2.534 MB / 0.9456 GB, free: 88.41 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.443e-05/2.182, allocations: 239.8 kB / 0.9458 GB, free: 88.12 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009927/2.183, allocations: 0.5503 MB / 0.9463 GB, free: 87.57 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.0001292/2.183, allocations: 33.7 kB / 0.9464 GB, free: 87.53 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003371/2.183, allocations: 453.5 kB / 0.9468 GB, free: 87.09 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002011/2.184, allocations: 169.7 kB / 0.947 GB, free: 86.92 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.998e-05/2.184, allocations: 0 / 0.947 GB, free: 86.92 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.0001046/2.184, allocations: 339.5 kB / 0.9473 GB, free: 86.58 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007719/2.185, allocations: 349.4 kB / 0.9476 GB, free: 86.24 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009083/2.185, allocations: 0.5865 MB / 0.9482 GB, free: 85.54 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007272/2.193, allocations: 1.036 MB / 0.9492 GB, free: 84.51 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.166e-05/2.193, allocations: 3.938 kB / 0.9492 GB, free: 84.5 MB / 0.4952 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00957/2.202, allocations: 1.761 MB / 0.9509 GB, free: 82.73 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.000592/2.203, allocations: 2.479 MB / 0.9533 GB, free: 80.05 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.803e-05/2.203, allocations: 12 kB / 0.9534 GB, free: 80.04 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001107/2.204, allocations: 317.4 kB / 0.9537 GB, free: 79.73 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/2.205, allocations: 151.7 kB / 0.9538 GB, free: 79.58 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003059/2.208, allocations: 1.624 MB / 0.9554 GB, free: 77.9 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001409/2.21, allocations: 35.91 kB / 0.9554 GB, free: 77.87 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/2.21, allocations: 43.98 kB / 0.9555 GB, free: 77.82 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/2.21, allocations: 4 kB / 0.9555 GB, free: 77.82 MB / 0.4952 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00913/2.219, allocations: 1.685 MB / 0.9571 GB, free: 76.13 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/2.219, allocations: 7.984 kB / 0.9571 GB, free: 76.12 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009945/2.22, allocations: 309.9 kB / 0.9574 GB, free: 75.82 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/2.221, allocations: 147.8 kB / 0.9576 GB, free: 75.67 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002699/2.224, allocations: 1.573 MB / 0.9591 GB, free: 74.05 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001063/2.225, allocations: 31.89 kB / 0.9591 GB, free: 74.02 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001187/2.225, allocations: 43.98 kB / 0.9592 GB, free: 73.97 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.000359/2.226, allocations: 170.4 kB / 0.9593 GB, free: 73.79 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004427/2.23, allocations: 1.127 MB / 0.9604 GB, free: 72.65 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001712/2.23, allocations: 79.06 kB / 0.9605 GB, free: 72.57 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004706/2.235, allocations: 1.236 MB / 0.9617 GB, free: 71.32 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/2.235, allocations: 4 kB / 0.9617 GB, free: 71.31 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/2.235, allocations: 0 / 0.9617 GB, free: 71.31 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.308e-06/2.235, allocations: 0 / 0.9617 GB, free: 71.31 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005995/2.241, allocations: 2.022 MB / 0.9637 GB, free: 69.26 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/2.241, allocations: 0 / 0.9637 GB, free: 69.26 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000723/2.242, allocations: 79.89 kB / 0.9638 GB, free: 69.18 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00104/2.243, allocations: 309.5 kB / 0.9641 GB, free: 68.87 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.523e-05/2.243, allocations: 11.98 kB / 0.9641 GB, free: 68.86 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002857/2.246, allocations: 1.596 MB / 0.9656 GB, free: 67.21 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/2.246, allocations: 4.031 kB / 0.9656 GB, free: 67.21 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005213/2.251, allocations: 1.706 MB / 0.9673 GB, free: 65.47 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006814/2.252, allocations: 256 kB / 0.9676 GB, free: 65.2 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001942/2.252, allocations: 4 kB / 0.9676 GB, free: 65.2 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/2.253, allocations: 31.88 kB / 0.9676 GB, free: 65.17 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001998/2.253, allocations: 48.36 kB / 0.9676 GB, free: 65.12 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/2.254, allocations: 36.05 kB / 0.9677 GB, free: 65.09 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.0007392/2.254, allocations: 431.1 kB / 0.9681 GB, free: 64.67 MB / 0.4952 GB Notification: Performance of sort global known variables: time 5.01e-07/2.254, allocations: 0 / 0.9681 GB, free: 64.67 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.002774/2.257, allocations: 0.6477 MB / 0.9687 GB, free: 64.03 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.007106/2.264, allocations: 2.688 MB / 0.9713 GB, free: 61.34 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.004087/2.268, allocations: 1.46 MB / 0.9728 GB, free: 59.86 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 6.944e-06/2.268, allocations: 4 kB / 0.9728 GB, free: 59.86 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.001319/2.27, allocations: 470 kB / 0.9732 GB, free: 59.39 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002389/2.272, allocations: 268.1 kB / 0.9735 GB, free: 59.12 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005807/2.278, allocations: 1.617 MB / 0.975 GB, free: 57.46 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005881/2.279, allocations: 1.025 MB / 0.976 GB, free: 56.41 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007142/2.279, allocations: 299.3 kB / 0.9763 GB, free: 56.12 MB / 0.4952 GB Notification: Performance of SimCode: time 2.595e-06/2.279, allocations: 0 / 0.9763 GB, free: 56.12 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.326/5.605, allocations: 25.85 MB / 1.002 GB, free: 30.26 MB / 0.4952 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)