Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.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) 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.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_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.002493/0.002492, allocations: 180.2 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.17/2.17, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001109/0.001109, allocations: 74.73 kB / 267.5 MB, free: 14.05 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.3805/0.3805, allocations: 43.48 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.976e-05/3.993e-05, allocations: 4 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1283, allocations: 58.84 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.535/2.663, allocations: 0.8261 GB / 1.299 GB, free: 6.609 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003403/2.664, allocations: 93.05 kB / 1.299 GB, free: 6.562 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.851/6.515, allocations: 0.7125 GB / 2.012 GB, free: 85.61 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.863e-06/6.515, allocations: 3.938 kB / 2.012 GB, free: 85.61 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.793e-05/6.515, allocations: 29.22 kB / 2.012 GB, free: 85.6 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: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.00633/6.521, allocations: 1.554 MB / 2.013 GB, free: 84.8 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.605e-05/6.522, allocations: 18.78 kB / 2.013 GB, free: 84.8 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004078/6.522, allocations: 169.2 kB / 2.013 GB, free: 84.75 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002322/6.524, allocations: 310.4 kB / 2.014 GB, free: 84.69 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002856/6.527, allocations: 0.802 MB / 2.014 GB, free: 84.38 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000173/6.527, allocations: 140.7 kB / 2.014 GB, free: 84.32 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004357/6.528, allocations: 114.7 kB / 2.015 GB, free: 84.31 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004469/6.532, allocations: 1.757 MB / 2.016 GB, free: 84.08 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.066e-05/6.532, allocations: 14.59 kB / 2.016 GB, free: 84.07 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002546/6.533, allocations: 50.59 kB / 2.016 GB, free: 84.07 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001278/6.533, allocations: 82.7 kB / 2.016 GB, free: 84.07 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00408/6.537, allocations: 1.594 MB / 2.018 GB, free: 84.05 MB / 0.5105 GB 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.01553/6.552, allocations: 6.857 MB / 2.025 GB, free: 79.45 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001642/6.554, allocations: 0.7919 MB / 2.025 GB, free: 79.12 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008891/6.555, allocations: 433.2 kB / 2.026 GB, free: 78.96 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003629/6.555, allocations: 247.6 kB / 2.026 GB, free: 78.75 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.844e-05/6.555, allocations: 46.67 kB / 2.026 GB, free: 78.71 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=60): time 4.398e-06/6.556, allocations: 0 / 2.026 GB, free: 78.71 MB / 0.5105 GB Notification: Performance of matching and sorting (n=72): time 0.01599/6.572, allocations: 3.768 MB / 2.03 GB, free: 76.82 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.509e-05/6.572, allocations: 111.6 kB / 2.03 GB, free: 76.68 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001869/6.574, allocations: 0.9797 MB / 2.031 GB, free: 75.78 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002218/6.574, allocations: 41.7 kB / 2.031 GB, free: 75.73 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003916/6.574, allocations: 0.5152 MB / 2.031 GB, free: 75.24 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002931/6.574, allocations: 274 kB / 2.032 GB, free: 75.01 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/6.575, allocations: 20 kB / 2.032 GB, free: 74.99 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001103/6.575, allocations: 353.3 kB / 2.032 GB, free: 74.65 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001291/6.576, allocations: 0.5595 MB / 2.033 GB, free: 74.15 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001446/6.577, allocations: 0.8449 MB / 2.033 GB, free: 73.27 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001497/6.579, allocations: 0.6781 MB / 2.034 GB, free: 72.71 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/6.579, allocations: 4 kB / 2.034 GB, free: 72.71 MB / 0.5105 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.004341/6.583, allocations: 1.877 MB / 2.036 GB, free: 71.02 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.804e-05/6.583, allocations: 8 kB / 2.036 GB, free: 71.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.782e-05/6.583, allocations: 8 kB / 2.036 GB, free: 71 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008062/6.592, allocations: 1.365 MB / 2.037 GB, free: 69.66 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/6.593, allocations: 139.8 kB / 2.037 GB, free: 69.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004349/6.597, allocations: 1.906 MB / 2.039 GB, free: 67.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002437/6.6, allocations: 114.7 kB / 2.039 GB, free: 67.49 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002867/6.6, allocations: 65.73 kB / 2.039 GB, free: 67.43 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (82): * Single equations (assignments): 81 * 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 {9 35} Notification: Performance of prepare postOptimizeDAE: time 0.0004656/6.6, allocations: 164.8 kB / 2.04 GB, free: 67.26 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003597/6.601, allocations: 112.8 kB / 2.04 GB, free: 67.15 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003702/6.605, allocations: 1.37 MB / 2.041 GB, free: 65.78 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.582e-05/6.605, allocations: 11.98 kB / 2.041 GB, free: 65.77 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/6.605, allocations: 4 kB / 2.041 GB, free: 65.76 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/6.605, allocations: 7.484 kB / 2.041 GB, free: 65.76 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007258/6.612, allocations: 2.665 MB / 2.044 GB, free: 63.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.067e-05/6.612, allocations: 3.953 kB / 2.044 GB, free: 63.05 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003621/6.616, allocations: 329.3 kB / 2.044 GB, free: 62.73 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003201/6.616, allocations: 70.62 kB / 2.044 GB, free: 62.66 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002146/6.616, allocations: 35.97 kB / 2.044 GB, free: 62.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002668/6.619, allocations: 2.836 MB / 2.047 GB, free: 59.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/6.619, allocations: 7.641 kB / 2.047 GB, free: 59.53 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004369/6.623, allocations: 1.864 MB / 2.049 GB, free: 57.64 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001305/6.625, allocations: 343.6 kB / 2.049 GB, free: 57.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003335/6.625, allocations: 31.98 kB / 2.049 GB, free: 57.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001941/6.627, allocations: 85.02 kB / 2.049 GB, free: 57.18 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002135/6.627, allocations: 59.8 kB / 2.049 GB, free: 57.12 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001816/6.627, allocations: 67.89 kB / 2.049 GB, free: 57.05 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001485/6.629, allocations: 0.7739 MB / 2.05 GB, free: 56.27 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.11e-07/6.629, allocations: 0 / 2.05 GB, free: 56.27 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002958/6.632, allocations: 0.6246 MB / 2.051 GB, free: 55.64 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (78): * 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): 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.00898/6.641, allocations: 3.891 MB / 2.054 GB, free: 52.07 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003914/6.645, allocations: 1.427 MB / 2.056 GB, free: 50.64 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.979e-06/6.645, allocations: 8.781 kB / 2.056 GB, free: 50.64 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002512/6.648, allocations: 0.8227 MB / 2.057 GB, free: 49.81 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007195/6.655, allocations: 0.7312 MB / 2.057 GB, free: 49.12 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00903/6.664, allocations: 2.868 MB / 2.06 GB, free: 46.35 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008832/6.665, allocations: 1.195 MB / 2.061 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001123/6.666, allocations: 447.3 kB / 2.062 GB, free: 44.69 MB / 0.5105 GB Notification: Performance of SimCode: time 1.262e-06/6.666, allocations: 0 / 2.062 GB, free: 44.69 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.9/10.57, allocations: 41.94 MB / 2.103 GB, free: 3.047 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat