Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.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.Air.SimpleAir,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir",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.001513/0.001513, allocations: 181.7 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.023/2.023, 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.001126/0.001126, 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.2837/0.2837, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.405e-05/3.422e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1291, allocations: 58.85 MB / 484.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.357/1.486, allocations: 429.6 MB / 0.8924 GB, free: 11.32 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003542/1.487, allocations: 95.78 kB / 0.8925 GB, free: 11.27 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.799/2.286, allocations: 133.6 MB / 1.023 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.775e-06/2.286, allocations: 4 kB / 1.023 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.484e-05/2.286, allocations: 24.36 kB / 1.023 GB, free: 100.3 MB / 0.5105 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.002592/2.288, allocations: 0.8999 MB / 1.024 GB, free: 99.36 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/2.288, allocations: 12.03 kB / 1.024 GB, free: 99.35 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000182/2.289, allocations: 94.52 kB / 1.024 GB, free: 99.25 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005117/2.289, allocations: 83.84 kB / 1.024 GB, free: 99.17 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001521/2.291, allocations: 0.5404 MB / 1.025 GB, free: 98.59 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001223/2.291, allocations: 108.3 kB / 1.025 GB, free: 98.47 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/2.291, allocations: 48 kB / 1.025 GB, free: 98.42 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001735/2.293, allocations: 0.798 MB / 1.025 GB, free: 97.55 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.473e-05/2.293, allocations: 4 kB / 1.025 GB, free: 97.55 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001058/2.293, allocations: 27.98 kB / 1.026 GB, free: 97.52 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.013e-05/2.293, allocations: 44.97 kB / 1.026 GB, free: 97.48 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00149/2.294, allocations: 0.6206 MB / 1.026 GB, free: 96.86 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006259/2.301, allocations: 3.659 MB / 1.03 GB, free: 92.98 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/2.302, allocations: 400.1 kB / 1.03 GB, free: 92.58 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004314/2.302, allocations: 197.5 kB / 1.03 GB, free: 92.39 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006263/2.303, allocations: 0.7288 MB / 1.031 GB, free: 91.49 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/2.303, allocations: 46.83 kB / 1.031 GB, free: 91.44 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=40): time 3.687e-06/2.303, allocations: 0 / 1.031 GB, free: 91.44 MB / 0.5105 GB Notification: Performance of matching and sorting (n=45): time 0.004268/2.307, allocations: 1.368 MB / 1.032 GB, free: 90 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.022e-05/2.307, allocations: 132.5 kB / 1.033 GB, free: 89.84 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000868/2.308, allocations: 0.493 MB / 1.033 GB, free: 89.34 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 9.661e-05/2.308, allocations: 33.7 kB / 1.033 GB, free: 89.3 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002335/2.309, allocations: 385.4 kB / 1.033 GB, free: 88.92 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/2.309, allocations: 165.7 kB / 1.034 GB, free: 88.75 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.763e-05/2.309, allocations: 12 kB / 1.034 GB, free: 88.74 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.676e-05/2.309, allocations: 342.8 kB / 1.034 GB, free: 88.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005365/2.31, allocations: 213.4 kB / 1.034 GB, free: 88.19 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006531/2.31, allocations: 0.4907 MB / 1.035 GB, free: 87.56 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006578/2.311, allocations: 301.4 kB / 1.035 GB, free: 87.27 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/2.311, allocations: 4 kB / 1.035 GB, free: 87.26 MB / 0.5105 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002224/2.313, allocations: 0.8443 MB / 1.036 GB, free: 86.41 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/2.313, allocations: 8 kB / 1.036 GB, free: 86.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.828e-05/2.313, allocations: 15.98 kB / 1.036 GB, free: 86.39 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002131/2.315, allocations: 280.7 kB / 1.036 GB, free: 86.11 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007689/2.316, allocations: 119.8 kB / 1.036 GB, free: 85.99 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001331/2.318, allocations: 0.8809 MB / 1.037 GB, free: 85.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/2.319, allocations: 47.91 kB / 1.037 GB, free: 85.04 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.893e-05/2.319, allocations: 35.98 kB / 1.037 GB, free: 85.01 MB / 0.5105 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 (71): * Single equations (assignments): 70 * 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 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002356/2.319, allocations: 164.8 kB / 1.037 GB, free: 84.84 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001456/2.319, allocations: 63.25 kB / 1.037 GB, free: 84.78 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001789/2.321, allocations: 0.7486 MB / 1.038 GB, free: 83.99 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.468e-05/2.321, allocations: 7.984 kB / 1.038 GB, free: 83.98 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/2.321, allocations: 0 / 1.038 GB, free: 83.98 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/2.321, allocations: 7.922 kB / 1.038 GB, free: 83.97 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002876/2.324, allocations: 1.38 MB / 1.039 GB, free: 82.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/2.324, allocations: 0 / 1.039 GB, free: 82.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002016/2.326, allocations: 211.9 kB / 1.04 GB, free: 82.29 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001284/2.326, allocations: 28.73 kB / 1.04 GB, free: 82.26 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.258e-05/2.326, allocations: 12 kB / 1.04 GB, free: 82.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002053/2.328, allocations: 2.688 MB / 1.042 GB, free: 79.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/2.328, allocations: 4.031 kB / 1.042 GB, free: 79.29 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002113/2.33, allocations: 1.048 MB / 1.043 GB, free: 78.14 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004932/2.331, allocations: 204.2 kB / 1.043 GB, free: 77.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001379/2.331, allocations: 8 kB / 1.043 GB, free: 77.92 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008147/2.332, allocations: 35.91 kB / 1.043 GB, free: 77.88 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/2.332, allocations: 39.95 kB / 1.044 GB, free: 77.84 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.367e-05/2.332, allocations: 23.98 kB / 1.044 GB, free: 77.82 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.000711/2.333, allocations: 407.1 kB / 1.044 GB, free: 77.42 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.51e-07/2.333, allocations: 0 / 1.044 GB, free: 77.42 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001374/2.334, allocations: 239.9 kB / 1.044 GB, free: 77.19 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003068/2.337, allocations: 2.264 MB / 1.046 GB, free: 74.84 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001861/2.339, allocations: 0.5796 MB / 1.047 GB, free: 74.26 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/2.339, allocations: 0 / 1.047 GB, free: 74.26 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001534/2.341, allocations: 430.5 kB / 1.047 GB, free: 73.83 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00278/2.344, allocations: 315.1 kB / 1.048 GB, free: 73.52 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003241/2.347, allocations: 1.214 MB / 1.049 GB, free: 72.24 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004645/2.347, allocations: 0.9466 MB / 1.05 GB, free: 71.26 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005036/2.348, allocations: 247.3 kB / 1.05 GB, free: 71.02 MB / 0.5105 GB Notification: Performance of SimCode: time 1.312e-06/2.348, allocations: 0 / 1.05 GB, free: 71.02 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.242/5.59, allocations: 18.65 MB / 1.068 GB, free: 52.38 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_res.mat does not exist to compare? outputFormat=mat