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.0008797/0.0008798, allocations: 180.5 kB / 17.41 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.238/1.238, allocations: 205.4 MB / 223.6 MB, free: 8.934 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.0007087/0.0007088, allocations: 87.34 kB / 271.9 MB, free: 8.238 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.3047/0.3047, allocations: 43.56 MB / 363.8 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003536/0.0003538, allocations: 16 kB / 432.6 MB, free: 5.875 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1011, allocations: 58.84 MB / 491.4 MB, free: 10.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6882/0.7893, allocations: 335.8 MB / 0.8079 GB, free: 35.78 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002531/0.7896, allocations: 90.39 kB / 0.808 GB, free: 35.73 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.488/1.278, allocations: 142.7 MB / 0.9473 GB, free: 111.8 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.152e-06/1.278, allocations: 0 / 0.9473 GB, free: 111.8 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.246e-05/1.278, allocations: 23.05 kB / 0.9473 GB, free: 111.8 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.002755/1.281, allocations: 1.283 MB / 0.9486 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/1.281, allocations: 15.62 kB / 0.9486 GB, free: 110.7 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003539/1.281, allocations: 110.3 kB / 0.9487 GB, free: 110.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001123/1.282, allocations: 0.6948 MB / 0.9494 GB, free: 110 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.932e-05/1.282, allocations: 104.7 kB / 0.9495 GB, free: 109.9 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001/1.282, allocations: 55.91 kB / 0.9495 GB, free: 109.9 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/1.284, allocations: 1.035 MB / 0.9506 GB, free: 108.8 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.331e-05/1.284, allocations: 7.938 kB / 0.9506 GB, free: 108.8 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-05/1.284, allocations: 27.67 kB / 0.9506 GB, free: 108.8 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.304e-05/1.284, allocations: 53.28 kB / 0.9506 GB, free: 108.7 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001287/1.285, allocations: 0.9107 MB / 0.9515 GB, free: 107.8 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005277/1.291, allocations: 3.991 MB / 0.9554 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009264/1.291, allocations: 0.65 MB / 0.9561 GB, free: 103 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005172/1.292, allocations: 418.2 kB / 0.9565 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002623/1.295, allocations: 2.351 MB / 0.9588 GB, free: 100 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006206/1.295, allocations: 0.503 MB / 0.9592 GB, free: 99.49 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=48): time 2.194e-06/1.295, allocations: 0 / 0.9592 GB, free: 99.49 MB / 0.4948 GB Notification: Performance of matching and sorting (n=53): time 0.00493/1.3, allocations: 2.736 MB / 0.9619 GB, free: 96.64 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.805e-05/1.3, allocations: 239.8 kB / 0.9621 GB, free: 96.35 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008873/1.301, allocations: 0.8329 MB / 0.963 GB, free: 95.51 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 6.013e-05/1.301, allocations: 37.7 kB / 0.963 GB, free: 95.46 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002456/1.302, allocations: 424.9 kB / 0.9634 GB, free: 95.05 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/1.302, allocations: 176.1 kB / 0.9636 GB, free: 94.88 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.114e-05/1.302, allocations: 16 kB / 0.9636 GB, free: 94.86 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.443e-05/1.302, allocations: 337.9 kB / 0.9639 GB, free: 94.53 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005068/1.302, allocations: 377.8 kB / 0.9643 GB, free: 94.16 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006412/1.303, allocations: 0.6135 MB / 0.9649 GB, free: 93.43 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/1.304, allocations: 0.9702 MB / 0.9658 GB, free: 92.36 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/1.304, allocations: 4 kB / 0.9658 GB, free: 92.36 MB / 0.4948 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001822/1.306, allocations: 1.29 MB / 0.9671 GB, free: 91.05 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001361/1.306, allocations: 300.2 kB / 0.9674 GB, free: 90.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/1.306, allocations: 4 kB / 0.9674 GB, free: 90.66 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008702/1.307, allocations: 345.3 kB / 0.9677 GB, free: 90.31 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005307/1.307, allocations: 155.7 kB / 0.9678 GB, free: 90.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009783/1.308, allocations: 1.44 MB / 0.9692 GB, free: 88.67 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007155/1.309, allocations: 59.97 kB / 0.9693 GB, free: 88.61 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.707e-05/1.309, allocations: 39.98 kB / 0.9693 GB, free: 88.57 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.526e-06/1.309, allocations: 6.812 kB / 0.9694 GB, free: 88.57 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001743/1.311, allocations: 1.203 MB / 0.9705 GB, free: 87.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/1.311, allocations: 4 kB / 0.9705 GB, free: 87.35 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007365/1.312, allocations: 325.8 kB / 0.9708 GB, free: 87.02 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006779/1.313, allocations: 151.7 kB / 0.971 GB, free: 86.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009057/1.313, allocations: 1.421 MB / 0.9724 GB, free: 85.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006965/1.314, allocations: 48.09 kB / 0.9724 GB, free: 85.36 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.552e-05/1.314, allocations: 43.98 kB / 0.9725 GB, free: 85.31 MB / 0.4948 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 () * Number of clocked 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.0005555/1.315, allocations: 394.4 kB / 0.9728 GB, free: 84.91 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/1.315, allocations: 94.88 kB / 0.9729 GB, free: 84.82 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001876/1.317, allocations: 1.141 MB / 0.974 GB, free: 83.66 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/1.317, allocations: 4 kB / 0.974 GB, free: 83.65 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/1.317, allocations: 0 / 0.974 GB, free: 83.65 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.124e-06/1.317, allocations: 7.922 kB / 0.9741 GB, free: 83.64 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002549/1.319, allocations: 1.992 MB / 0.976 GB, free: 81.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/1.319, allocations: 0 / 0.976 GB, free: 81.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003637/1.32, allocations: 84.02 kB / 0.9761 GB, free: 81.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007298/1.321, allocations: 341.4 kB / 0.9764 GB, free: 81.18 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.185e-05/1.321, allocations: 15.98 kB / 0.9764 GB, free: 81.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009523/1.322, allocations: 1.43 MB / 0.9778 GB, free: 79.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/1.322, allocations: 3.938 kB / 0.9778 GB, free: 79.68 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002039/1.324, allocations: 1.622 MB / 0.9794 GB, free: 78.02 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003993/1.324, allocations: 267.9 kB / 0.9797 GB, free: 77.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/1.324, allocations: 12 kB / 0.9797 GB, free: 77.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005722/1.325, allocations: 44.09 kB / 0.9797 GB, free: 77.68 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/1.325, allocations: 60.23 kB / 0.9798 GB, free: 77.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.772e-05/1.325, allocations: 31.97 kB / 0.9798 GB, free: 77.59 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0006511/1.326, allocations: 0.5771 MB / 0.9804 GB, free: 77.02 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.2e-07/1.326, allocations: 4 kB / 0.9804 GB, free: 77.02 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001969/1.328, allocations: 0.6926 MB / 0.981 GB, free: 76.33 MB / 0.4948 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) * Number of clocked states: 0 () * 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,3 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001332/1.329, allocations: 0.6387 MB / 0.9817 GB, free: 75.73 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00255/1.331, allocations: 1.538 MB / 0.9832 GB, free: 74.18 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/1.332, allocations: 320 / 0.9832 GB, free: 74.18 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008433/1.332, allocations: 0.4939 MB / 0.9837 GB, free: 73.66 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001494/1.334, allocations: 327.9 kB / 0.984 GB, free: 73.34 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002619/1.336, allocations: 2.033 MB / 0.9859 GB, free: 71.28 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003688/1.337, allocations: 1.006 MB / 0.9869 GB, free: 70.25 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002368/1.337, allocations: 87.34 kB / 0.987 GB, free: 70.16 MB / 0.4948 GB Notification: Performance of SimCode: time 3.6e-07/1.337, allocations: 0 / 0.987 GB, free: 70.16 MB / 0.4948 GB Notification: Performance of Templates: time 0.02402/1.361, allocations: 23.18 MB / 1.01 GB, free: 47 MB / 0.4948 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)