Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.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.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater",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.001517/0.001517, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.065/2.065, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001048/0.001047, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2943/0.2943, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.242e-05/3.246e-05, allocations: 0 / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1286, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.376/1.505, allocations: 420.3 MB / 0.8834 GB, free: 5.488 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003267/1.505, allocations: 94.66 kB / 0.8835 GB, free: 5.438 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.7238/2.229, allocations: 119.3 MB / 1 GB, free: 91.94 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.733e-06/2.229, allocations: 0 / 1 GB, free: 91.94 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 7.229e-05/2.229, allocations: 19.98 kB / 1 GB, free: 91.92 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: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.00289/2.232, allocations: 0.982 MB / 1.001 GB, free: 90.89 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/2.232, allocations: 11.97 kB / 1.001 GB, free: 90.88 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001845/2.232, allocations: 94.52 kB / 1.001 GB, free: 90.78 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005273/2.233, allocations: 95 kB / 1.001 GB, free: 90.69 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00147/2.234, allocations: 0.5406 MB / 1.002 GB, free: 90.11 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001164/2.234, allocations: 100.3 kB / 1.002 GB, free: 90 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/2.234, allocations: 55.98 kB / 1.002 GB, free: 89.94 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001673/2.236, allocations: 0.8007 MB / 1.003 GB, free: 89.06 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.408e-05/2.236, allocations: 7.938 kB / 1.003 GB, free: 89.05 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001306/2.236, allocations: 24 kB / 1.003 GB, free: 89.03 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.178e-05/2.236, allocations: 36.98 kB / 1.003 GB, free: 89 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00148/2.238, allocations: 0.6245 MB / 1.003 GB, free: 88.37 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006384/2.244, allocations: 3.937 MB / 1.007 GB, free: 84.21 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0012/2.246, allocations: 391.8 kB / 1.008 GB, free: 83.82 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004356/2.246, allocations: 197.5 kB / 1.008 GB, free: 83.63 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005227/2.247, allocations: 0.499 MB / 1.008 GB, free: 83.02 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/2.247, allocations: 42.88 kB / 1.008 GB, free: 82.97 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=40): time 3.787e-06/2.247, allocations: 0 / 1.008 GB, free: 82.97 MB / 0.4948 GB Notification: Performance of matching and sorting (n=45): time 0.004111/2.251, allocations: 1.33 MB / 1.01 GB, free: 81.58 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.601e-05/2.251, allocations: 140.4 kB / 1.01 GB, free: 81.41 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000824/2.252, allocations: 0.4891 MB / 1.01 GB, free: 80.91 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 7.21e-05/2.252, allocations: 33.7 kB / 1.01 GB, free: 80.88 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002189/2.252, allocations: 389.5 kB / 1.011 GB, free: 80.49 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/2.252, allocations: 161.7 kB / 1.011 GB, free: 80.33 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.985e-05/2.252, allocations: 12 kB / 1.011 GB, free: 80.32 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001038/2.252, allocations: 346.8 kB / 1.011 GB, free: 79.97 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005139/2.253, allocations: 209.5 kB / 1.011 GB, free: 79.77 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008418/2.254, allocations: 0.5025 MB / 1.012 GB, free: 79.12 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000707/2.254, allocations: 309.4 kB / 1.012 GB, free: 78.83 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.204e-06/2.254, allocations: 4 kB / 1.012 GB, free: 78.82 MB / 0.4948 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002653/2.257, allocations: 0.8748 MB / 1.013 GB, free: 77.94 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.67e-05/2.257, allocations: 11.98 kB / 1.013 GB, free: 77.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.823e-05/2.257, allocations: 8 kB / 1.013 GB, free: 77.92 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001744/2.259, allocations: 257.5 kB / 1.013 GB, free: 77.66 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009135/2.26, allocations: 135.7 kB / 1.013 GB, free: 77.53 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001319/2.261, allocations: 0.8588 MB / 1.014 GB, free: 76.65 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00121/2.263, allocations: 47.94 kB / 1.014 GB, free: 76.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001211/2.263, allocations: 39.98 kB / 1.014 GB, free: 76.56 MB / 0.4948 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.00026/2.263, allocations: 152.7 kB / 1.014 GB, free: 76.41 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001672/2.263, allocations: 67.25 kB / 1.014 GB, free: 76.34 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002004/2.265, allocations: 0.692 MB / 1.015 GB, free: 75.63 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-05/2.265, allocations: 4 kB / 1.015 GB, free: 75.62 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/2.265, allocations: 7.953 kB / 1.015 GB, free: 75.62 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/2.265, allocations: 3.984 kB / 1.015 GB, free: 75.61 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003209/2.269, allocations: 1.372 MB / 1.016 GB, free: 74.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/2.269, allocations: 4.031 kB / 1.016 GB, free: 74.16 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001871/2.27, allocations: 199.7 kB / 1.017 GB, free: 73.96 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003786/2.271, allocations: 52.7 kB / 1.017 GB, free: 73.91 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.528e-05/2.271, allocations: 12 kB / 1.017 GB, free: 73.89 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002409/2.273, allocations: 2.774 MB / 1.019 GB, free: 70.85 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/2.273, allocations: 11.92 kB / 1.019 GB, free: 70.84 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002167/2.276, allocations: 1.05 MB / 1.02 GB, free: 69.71 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004288/2.276, allocations: 200.3 kB / 1.021 GB, free: 69.49 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001389/2.276, allocations: 8 kB / 1.021 GB, free: 69.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007649/2.277, allocations: 35.95 kB / 1.021 GB, free: 69.45 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/2.277, allocations: 31.95 kB / 1.021 GB, free: 69.42 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.457e-05/2.277, allocations: 23.98 kB / 1.021 GB, free: 69.39 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0006625/2.278, allocations: 393.5 kB / 1.021 GB, free: 69.02 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.1e-07/2.278, allocations: 0 / 1.021 GB, free: 69.02 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001188/2.279, allocations: 223.9 kB / 1.021 GB, free: 68.8 MB / 0.4948 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.002967/2.282, allocations: 2.221 MB / 1.023 GB, free: 66.5 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001626/2.284, allocations: 0.5814 MB / 1.024 GB, free: 65.92 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/2.284, allocations: 0 / 1.024 GB, free: 65.92 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001635/2.285, allocations: 450.7 kB / 1.024 GB, free: 65.46 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002638/2.288, allocations: 334.5 kB / 1.025 GB, free: 65.14 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003306/2.291, allocations: 1.225 MB / 1.026 GB, free: 63.85 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004582/2.292, allocations: 0.9465 MB / 1.027 GB, free: 62.88 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005325/2.292, allocations: 243.3 kB / 1.027 GB, free: 62.64 MB / 0.4948 GB Notification: Performance of SimCode: time 1.112e-06/2.292, allocations: 0 / 1.027 GB, free: 62.64 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.41/5.703, allocations: 17.82 MB / 1.045 GB, free: 44.83 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.mat does not exist to compare? outputFormat=mat