Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.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.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009989/0.0009988, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 225.4 MB / 240.1 MB, free: 15.06 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000863/0.0008629, allocations: 99.89 kB / 292.1 MB, free: 5.969 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1977/0.1977, allocations: 45.15 MB / 389.3 MB, free: 11.83 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.585e-05/3.602e-05, allocations: 4 kB / 460.5 MB, free: 69.88 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1115, allocations: 63.25 MB / 0.5115 GB, free: 6.648 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.882/5.993, allocations: 3.127 GB / 3.639 GB, free: 168.6 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002451/5.993, allocations: 89.81 kB / 3.639 GB, free: 168.6 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.791/8.784, allocations: 1.144 GB / 4.783 GB, free: 77.68 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.853e-06/8.784, allocations: 4 kB / 4.783 GB, free: 77.68 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 4.604e-05/8.784, allocations: 16 kB / 4.783 GB, free: 77.66 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.004622/8.789, allocations: 1.586 MB / 4.785 GB, free: 76.22 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/8.789, allocations: 15.31 kB / 4.785 GB, free: 76.21 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001/8.789, allocations: 88.12 kB / 4.785 GB, free: 76.12 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003075/8.79, allocations: 86.67 kB / 4.785 GB, free: 76.04 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008388/8.79, allocations: 0.5356 MB / 4.785 GB, free: 75.55 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.742e-05/8.79, allocations: 103.9 kB / 4.785 GB, free: 75.43 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.066e-05/8.791, allocations: 51.91 kB / 4.785 GB, free: 75.39 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009497/8.792, allocations: 0.803 MB / 4.786 GB, free: 74.61 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.824e-05/8.792, allocations: 11.94 kB / 4.786 GB, free: 74.6 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.062e-05/8.792, allocations: 16 kB / 4.786 GB, free: 74.59 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.513e-05/8.792, allocations: 42.16 kB / 4.786 GB, free: 74.55 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007587/8.792, allocations: 0.6201 MB / 4.787 GB, free: 74 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003252/8.796, allocations: 3.939 MB / 4.791 GB, free: 70.29 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006315/8.796, allocations: 384.8 kB / 4.791 GB, free: 69.93 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002295/8.797, allocations: 202.8 kB / 4.791 GB, free: 69.75 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003315/8.797, allocations: 0.5059 MB / 4.792 GB, free: 69.14 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.787e-05/8.797, allocations: 38.89 kB / 4.792 GB, free: 69.1 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=40): time 1.793e-06/8.797, allocations: 0 / 4.792 GB, free: 69.1 MB / 0.5417 GB Notification: Performance of matching and sorting (n=45): time 0.002149/8.799, allocations: 1.332 MB / 4.793 GB, free: 67.85 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.871e-05/8.799, allocations: 140.5 kB / 4.793 GB, free: 67.68 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004298/8.8, allocations: 497.4 kB / 4.794 GB, free: 67.23 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.558e-05/8.8, allocations: 37.7 kB / 4.794 GB, free: 67.18 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/8.8, allocations: 361.5 kB / 4.794 GB, free: 66.86 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 8.211e-05/8.8, allocations: 163.1 kB / 4.794 GB, free: 66.71 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.733e-05/8.8, allocations: 13.88 kB / 4.794 GB, free: 66.7 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.073e-05/8.8, allocations: 374.8 kB / 4.795 GB, free: 66.34 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002693/8.8, allocations: 212 kB / 4.795 GB, free: 66.16 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003664/8.801, allocations: 0.5038 MB / 4.795 GB, free: 65.54 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003789/8.801, allocations: 302.1 kB / 4.796 GB, free: 65.28 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/8.801, allocations: 4 kB / 4.796 GB, free: 65.28 MB / 0.5417 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001298/8.802, allocations: 0.9068 MB / 4.797 GB, free: 64.46 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/8.802, allocations: 8 kB / 4.797 GB, free: 64.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/8.802, allocations: 12.06 kB / 4.797 GB, free: 64.44 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008868/8.803, allocations: 268 kB / 4.797 GB, free: 64.23 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003564/8.804, allocations: 126.1 kB / 4.797 GB, free: 64.12 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006386/8.804, allocations: 0.8544 MB / 4.798 GB, free: 63.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000465/8.805, allocations: 47 kB / 4.798 GB, free: 63.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.045e-05/8.805, allocations: 39.52 kB / 4.798 GB, free: 63.21 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of prepare postOptimizeDAE: time 0.0001161/8.805, allocations: 152.7 kB / 4.798 GB, free: 63.06 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.128e-05/8.805, allocations: 67.25 kB / 4.798 GB, free: 62.99 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001036/8.806, allocations: 0.6905 MB / 4.799 GB, free: 62.41 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/8.806, allocations: 4 kB / 4.799 GB, free: 62.4 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/8.806, allocations: 4 kB / 4.799 GB, free: 62.4 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/8.806, allocations: 3.609 kB / 4.799 GB, free: 62.4 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001603/8.808, allocations: 1.376 MB / 4.8 GB, free: 61.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/8.808, allocations: 1.531 kB / 4.8 GB, free: 61.18 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008649/8.809, allocations: 197.6 kB / 4.8 GB, free: 61.03 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000225/8.809, allocations: 54.42 kB / 4.8 GB, free: 60.99 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.476e-05/8.809, allocations: 19.75 kB / 4.8 GB, free: 60.97 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001461/8.81, allocations: 2.782 MB / 4.803 GB, free: 58.01 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/8.81, allocations: 4.031 kB / 4.803 GB, free: 58 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/8.812, allocations: 1.042 MB / 4.804 GB, free: 56.96 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002538/8.812, allocations: 202.4 kB / 4.804 GB, free: 56.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.585e-05/8.812, allocations: 8.062 kB / 4.804 GB, free: 56.76 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000381/8.812, allocations: 35.59 kB / 4.804 GB, free: 56.73 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.465e-05/8.812, allocations: 41.72 kB / 4.804 GB, free: 56.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.691e-05/8.812, allocations: 19.14 kB / 4.804 GB, free: 56.69 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0003723/8.813, allocations: 393.2 kB / 4.805 GB, free: 56.34 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.41e-07/8.813, allocations: 0 / 4.805 GB, free: 56.34 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0008311/8.814, allocations: 248.8 kB / 4.805 GB, free: 56.11 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001766/8.815, allocations: 2.342 MB / 4.807 GB, free: 53.86 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0008582/8.816, allocations: 0.5825 MB / 4.808 GB, free: 53.32 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/8.816, allocations: 4 kB / 4.808 GB, free: 53.32 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0008949/8.817, allocations: 466.5 kB / 4.808 GB, free: 52.9 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001277/8.819, allocations: 323.8 kB / 4.809 GB, free: 52.67 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001711/8.82, allocations: 1.183 MB / 4.81 GB, free: 51.59 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002932/8.821, allocations: 0.9594 MB / 4.811 GB, free: 50.71 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0005996/8.821, allocations: 206.4 kB / 4.811 GB, free: 50.57 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002508/8.821, allocations: 234.6 kB / 4.811 GB, free: 50.37 MB / 0.5417 GB Notification: Performance of SimCode: time 3.91e-07/8.821, allocations: 4 kB / 4.811 GB, free: 50.36 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03322/8.855, allocations: 23.38 MB / 4.834 GB, free: 32.14 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001436/8.855, allocations: 258.8 kB / 4.834 GB, free: 31.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.401/11.26, allocations: 0 / 4.834 GB, free: 31.8 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT_res.mat does not exist to compare? outputFormat=mat