Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.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) 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(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas",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.002469/0.002469, 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.213/2.213, 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.001152/0.001152, allocations: 86.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.331e-05/3.348e-05, allocations: 0 / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09983/0.0999, allocations: 47.58 MB / 369.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.351/2.451, allocations: 0.7116 GB / 1.072 GB, free: 106.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0006473/2.451, allocations: 99.3 kB / 1.072 GB, free: 106.1 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.844/5.296, allocations: 0.551 GB / 1.623 GB, free: 34.24 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.234e-06/5.296, allocations: 4 kB / 1.623 GB, free: 34.23 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.93e-05/5.296, allocations: 12 kB / 1.623 GB, free: 34.22 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.003079/5.299, allocations: 0.9557 MB / 1.624 GB, free: 33.22 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/5.299, allocations: 11.97 kB / 1.624 GB, free: 33.21 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000217/5.299, allocations: 118.5 kB / 1.624 GB, free: 33.09 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009881/5.3, allocations: 147.1 kB / 1.624 GB, free: 32.94 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/5.302, allocations: 484.9 kB / 1.625 GB, free: 32.42 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.798e-05/5.302, allocations: 54 kB / 1.625 GB, free: 32.37 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001708/5.302, allocations: 79.98 kB / 1.625 GB, free: 32.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002285/5.304, allocations: 0.9054 MB / 1.626 GB, free: 31.38 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.302e-05/5.304, allocations: 7.844 kB / 1.626 GB, free: 31.37 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000152/5.304, allocations: 36 kB / 1.626 GB, free: 31.33 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.445e-05/5.304, allocations: 16 kB / 1.626 GB, free: 31.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001949/5.306, allocations: 0.8317 MB / 1.627 GB, free: 30.49 MB / 426.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008134/5.315, allocations: 3.421 MB / 1.63 GB, free: 26.79 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001272/5.316, allocations: 0.6235 MB / 1.631 GB, free: 26.16 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007013/5.317, allocations: 354.3 kB / 1.631 GB, free: 25.8 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.828e-05/5.317, allocations: 20.53 kB / 1.631 GB, free: 25.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.618e-05/5.317, allocations: 47.12 kB / 1.631 GB, free: 25.73 MB / 426.7 MB Notification: Performance of pre-optimization done (n=59): time 3.777e-06/5.317, allocations: 0 / 1.631 GB, free: 25.73 MB / 426.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: volume.medium.Xi[6] 2: volume.medium.Xi[5] 3: volume.medium.Xi[4] 4: volume.medium.Xi[3] 5: volume.medium.Xi[2] 6: volume.medium.Xi[1] 7: volume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=71): time 0.02109/5.338, allocations: 4.356 MB / 1.635 GB, free: 21.26 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/5.338, allocations: 64.12 kB / 1.635 GB, free: 21.19 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008797/5.339, allocations: 0.4912 MB / 1.636 GB, free: 20.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002101/5.339, allocations: 45.7 kB / 1.636 GB, free: 20.64 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001718/5.339, allocations: 311.1 kB / 1.636 GB, free: 20.34 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002282/5.34, allocations: 252.3 kB / 1.636 GB, free: 20.09 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.805e-05/5.34, allocations: 16 kB / 1.637 GB, free: 20.07 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.848e-05/5.34, allocations: 346.8 kB / 1.637 GB, free: 19.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009431/5.341, allocations: 429.4 kB / 1.637 GB, free: 19.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/5.342, allocations: 0.4976 MB / 1.638 GB, free: 18.79 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001088/5.343, allocations: 0.4901 MB / 1.638 GB, free: 18.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/5.343, allocations: 0 / 1.638 GB, free: 18.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003193/5.346, allocations: 1.315 MB / 1.639 GB, free: 16.96 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.02e-05/5.346, allocations: 4 kB / 1.64 GB, free: 16.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/5.346, allocations: 7.984 kB / 1.64 GB, free: 16.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001138/5.347, allocations: 338.6 kB / 1.64 GB, free: 16.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001834/5.349, allocations: 179.8 kB / 1.64 GB, free: 16.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008171/5.357, allocations: 10.2 MB / 1.65 GB, free: 5.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0013/5.359, allocations: 79.81 kB / 1.65 GB, free: 5.172 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001331/5.359, allocations: 47.98 kB / 1.65 GB, free: 5.125 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003453/5.359, allocations: 148.8 kB / 1.65 GB, free: 4.973 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002171/5.36, allocations: 59.34 kB / 1.65 GB, free: 4.914 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003398/5.363, allocations: 1.298 MB / 1.652 GB, free: 3.582 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/5.363, allocations: 8 kB / 1.652 GB, free: 3.574 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/5.363, allocations: 7.891 kB / 1.652 GB, free: 3.566 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00244/5.365, allocations: 1.597 MB / 1.653 GB, free: 1.805 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005529/5.371, allocations: 2.252 MB / 1.655 GB, free: 15.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.086e-06/5.371, allocations: 0 / 1.655 GB, free: 15.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00243/5.374, allocations: 227.8 kB / 1.656 GB, free: 15.26 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000343/5.374, allocations: 68.78 kB / 1.656 GB, free: 15.19 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002055/5.374, allocations: 35.97 kB / 1.656 GB, free: 15.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001952/5.376, allocations: 1.428 MB / 1.657 GB, free: 13.59 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.783e-06/5.376, allocations: 8.016 kB / 1.657 GB, free: 13.59 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004349/5.381, allocations: 1.61 MB / 1.659 GB, free: 11.93 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004769/5.381, allocations: 156.3 kB / 1.659 GB, free: 11.75 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002493/5.381, allocations: 31.94 kB / 1.659 GB, free: 11.72 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001553/5.383, allocations: 79.78 kB / 1.659 GB, free: 11.64 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001853/5.383, allocations: 56.7 kB / 1.659 GB, free: 11.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002011/5.383, allocations: 55.95 kB / 1.659 GB, free: 11.54 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008489/5.384, allocations: 401.1 kB / 1.659 GB, free: 11.15 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.11e-07/5.384, allocations: 0 / 1.659 GB, free: 11.15 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002444/5.387, allocations: 427.8 kB / 1.66 GB, free: 10.73 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (volume.medium.p,volume.medium.Xi[1],volume.medium.Xi[2],volume.medium.Xi[3],volume.medium.Xi[4],volume.medium.Xi[5],volume.medium.Xi[6],volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 76 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008692/5.395, allocations: 3.471 MB / 1.663 GB, free: 7.203 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00457/5.4, allocations: 1.834 MB / 1.665 GB, free: 5.277 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.31e-05/5.4, allocations: 4 kB / 1.665 GB, free: 5.273 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001852/5.402, allocations: 0.6708 MB / 1.666 GB, free: 4.59 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004657/5.407, allocations: 498.5 kB / 1.666 GB, free: 4.102 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00814/5.415, allocations: 2.189 MB / 1.668 GB, free: 1.859 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009932/5.416, allocations: 0.9906 MB / 1.669 GB, free: 0.8398 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009864/5.417, allocations: 279.3 kB / 1.669 GB, free: 0.5664 MB / 442.7 MB Notification: Performance of SimCode: time 1.643e-06/5.417, allocations: 0 / 1.669 GB, free: 0.5664 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.877/9.294, allocations: 33.85 MB / 1.703 GB, free: 76.82 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat