Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001663/0.001663, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.552/1.552, allocations: 227.2 MB / 245 MB, free: 7.598 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001025/0.001025, allocations: 105.6 kB / 297.3 MB, free: 6.203 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4722/0.4722, allocations: 45.23 MB / 394.6 MB, free: 31.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003148/0.0003148, allocations: 4 kB / 468.5 MB, free: 7.641 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4724/0.4728, allocations: 63.23 MB / 0.5193 GB, free: 43.86 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7249/1.198, allocations: 337.6 MB / 0.8489 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/1.198, allocations: 95.47 kB / 0.849 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.5953/1.793, allocations: 146.3 MB / 0.9919 GB, free: 116.7 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.212e-06/1.793, allocations: 0 / 0.9919 GB, free: 116.7 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.349e-05/1.793, allocations: 22.66 kB / 0.9919 GB, free: 116.7 MB / 0.5261 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.003069/1.796, allocations: 1.306 MB / 0.9932 GB, free: 115.3 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/1.797, allocations: 12.03 kB / 0.9932 GB, free: 115.3 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000157/1.797, allocations: 109 kB / 0.9933 GB, free: 115.2 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003462/1.797, allocations: 106.9 kB / 0.9934 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001329/1.798, allocations: 0.683 MB / 0.9941 GB, free: 114.4 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.162e-05/1.799, allocations: 103.7 kB / 0.9942 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/1.799, allocations: 63.14 kB / 0.9942 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001441/1.8, allocations: 1.026 MB / 0.9952 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/1.8, allocations: 4 kB / 0.9952 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.105e-05/1.8, allocations: 31.03 kB / 0.9953 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.711e-05/1.8, allocations: 49.28 kB / 0.9953 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001257/1.802, allocations: 0.9184 MB / 0.9962 GB, free: 112.1 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005527/1.807, allocations: 4.001 MB / 1 GB, free: 108 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009172/1.808, allocations: 0.6526 MB / 1.001 GB, free: 107.3 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003006/1.811, allocations: 2.37 MB / 1.003 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006313/1.812, allocations: 0.4953 MB / 1.004 GB, free: 104.2 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 1.693e-06/1.812, allocations: 0 / 1.004 GB, free: 104.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53): time 0.005223/1.817, allocations: 2.809 MB / 1.006 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.437e-05/1.817, allocations: 243.8 kB / 1.007 GB, free: 101 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008465/1.818, allocations: 0.7384 MB / 1.007 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.199e-05/1.818, allocations: 41.64 kB / 1.007 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002375/1.818, allocations: 422.5 kB / 1.008 GB, free: 99.75 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/1.818, allocations: 179.4 kB / 1.008 GB, free: 99.58 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.556e-05/1.818, allocations: 16 kB / 1.008 GB, free: 99.56 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.549e-05/1.818, allocations: 337.9 kB / 1.008 GB, free: 99.23 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004804/1.819, allocations: 373.8 kB / 1.009 GB, free: 98.86 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005818/1.82, allocations: 0.6135 MB / 1.009 GB, free: 98.14 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005765/1.82, allocations: 451.6 kB / 1.01 GB, free: 97.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/1.82, allocations: 4 kB / 1.01 GB, free: 97.69 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001854/1.822, allocations: 1.294 MB / 1.011 GB, free: 96.38 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005846/1.823, allocations: 2.471 MB / 1.013 GB, free: 93.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/1.823, allocations: 8 kB / 1.013 GB, free: 93.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009142/1.824, allocations: 341.3 kB / 1.014 GB, free: 93.36 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005868/1.824, allocations: 147.8 kB / 1.014 GB, free: 93.22 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001067/1.825, allocations: 1.444 MB / 1.015 GB, free: 91.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008424/1.826, allocations: 43.97 kB / 1.015 GB, free: 91.68 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.886e-05/1.826, allocations: 43.98 kB / 1.015 GB, free: 91.64 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/1.826, allocations: 4.781 kB / 1.015 GB, free: 91.63 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00179/1.828, allocations: 1.207 MB / 1.016 GB, free: 90.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/1.828, allocations: 4 kB / 1.016 GB, free: 90.41 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007031/1.829, allocations: 329.8 kB / 1.017 GB, free: 90.09 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005377/1.829, allocations: 147.7 kB / 1.017 GB, free: 89.94 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009313/1.83, allocations: 1.429 MB / 1.018 GB, free: 88.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008625/1.831, allocations: 47.88 kB / 1.018 GB, free: 88.41 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.165e-05/1.831, allocations: 43.92 kB / 1.018 GB, free: 88.37 MB / 0.5261 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.0006245/1.832, allocations: 394.6 kB / 1.019 GB, free: 87.97 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001782/1.832, allocations: 86.97 kB / 1.019 GB, free: 87.88 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001982/1.834, allocations: 1.15 MB / 1.02 GB, free: 86.71 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/1.834, allocations: 4 kB / 1.02 GB, free: 86.71 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/1.834, allocations: 0 / 1.02 GB, free: 86.71 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/1.834, allocations: 7.984 kB / 1.02 GB, free: 86.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002702/1.837, allocations: 1.985 MB / 1.022 GB, free: 84.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/1.837, allocations: 0 / 1.022 GB, free: 84.66 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004153/1.837, allocations: 79.89 kB / 1.022 GB, free: 84.58 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007874/1.838, allocations: 336.7 kB / 1.022 GB, free: 84.25 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.523e-05/1.838, allocations: 19.98 kB / 1.022 GB, free: 84.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009882/1.839, allocations: 1.432 MB / 1.024 GB, free: 82.74 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/1.839, allocations: 0 / 1.024 GB, free: 82.74 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002086/1.841, allocations: 1.626 MB / 1.025 GB, free: 81.08 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005427/1.842, allocations: 268 kB / 1.026 GB, free: 80.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000136/1.842, allocations: 20 kB / 1.026 GB, free: 80.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006286/1.843, allocations: 39.88 kB / 1.026 GB, free: 80.74 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/1.843, allocations: 56.34 kB / 1.026 GB, free: 80.69 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.842e-05/1.843, allocations: 31.34 kB / 1.026 GB, free: 80.66 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0006931/1.843, allocations: 0.5771 MB / 1.026 GB, free: 80.09 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.4e-07/1.843, allocations: 4 kB / 1.026 GB, free: 80.09 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002152/1.846, allocations: 0.6986 MB / 1.027 GB, free: 79.39 MB / 0.5261 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.00354/1.849, allocations: 2.64 MB / 1.03 GB, free: 76.76 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002685/1.852, allocations: 1.536 MB / 1.031 GB, free: 75.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.9e-06/1.852, allocations: 1.75 kB / 1.031 GB, free: 75.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009643/1.853, allocations: 499.4 kB / 1.031 GB, free: 74.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001516/1.854, allocations: 324.6 kB / 1.032 GB, free: 74.38 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00486/1.859, allocations: 7.001 MB / 1.039 GB, free: 67.21 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000401/1.86, allocations: 1.03 MB / 1.04 GB, free: 66.15 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001082/1.861, allocations: 314.4 kB / 1.04 GB, free: 65.84 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000343/1.861, allocations: 299.3 kB / 1.04 GB, free: 65.55 MB / 0.5261 GB Notification: Performance of SimCode: time 7.02e-07/1.861, allocations: 0 / 1.04 GB, free: 65.55 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04933/1.91, allocations: 30.11 MB / 1.07 GB, free: 35.68 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001612/1.911, allocations: 257.7 kB / 1.07 GB, free: 35.34 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.177/5.087, allocations: 0 / 1.07 GB, free: 35.34 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank_res.mat does not exist to compare? outputFormat=mat