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.001581/0.001587, allocations: 182.5 kB / 16.4 MB, free: 5.746 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.121/2.121, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001098/0.001098, allocations: 88.36 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004157/0.0004158, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3356, allocations: 47.58 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.5426/0.8783, allocations: 138.8 MB / 0.5014 GB, free: 1.992 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003958/0.8823, allocations: 2.374 MB / 0.5037 GB, free: 1.941 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004626/0.8828, allocations: 2.906 kB / 0.5037 GB, free: 1.941 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008057/0.8836, allocations: 185.6 kB / 0.5039 GB, free: 1.941 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000705/0.8843, allocations: 231.2 kB / 0.5041 GB, free: 1.938 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001664/0.886, allocations: 416 kB / 0.5045 GB, free: 1.934 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001044/0.8871, allocations: 0.5753 MB / 0.5051 GB, free: 1.93 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003574/0.8874, allocations: 210.1 kB / 0.5053 GB, free: 1.895 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002438/0.8899, allocations: 0.806 MB / 0.5061 GB, free: 1.887 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004651/0.8904, allocations: 262.8 kB / 0.5063 GB, free: 1.883 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001258/0.8905, allocations: 35.02 kB / 0.5064 GB, free: 1.883 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0015/0.892, allocations: 433.3 kB / 0.5068 GB, free: 1.883 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004944/0.8925, allocations: 370.9 kB / 0.5071 GB, free: 1.883 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002728/0.8928, allocations: 192.2 kB / 0.5073 GB, free: 1.852 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001896/0.8947, allocations: 1.176 MB / 0.5085 GB, free: 1.789 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.8948, allocations: 0 / 0.5085 GB, free: 1.789 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.8948, allocations: 4 kB / 0.5085 GB, free: 1.785 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.726e-05/0.8948, allocations: 0.5312 kB / 0.5085 GB, free: 1.785 MB / 378.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.002666/0.8975, allocations: 0.8895 MB / 0.5093 GB, free: 17.22 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.814e-05/0.8976, allocations: 12.56 kB / 0.5094 GB, free: 17.22 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003199/0.8979, allocations: 125.7 kB / 0.5095 GB, free: 17.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001076/0.899, allocations: 159.6 kB / 0.5096 GB, free: 17.14 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001175/0.9002, allocations: 462.1 kB / 0.5101 GB, free: 16.91 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.788e-05/0.9002, allocations: 50.78 kB / 0.5101 GB, free: 16.91 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001613/0.9004, allocations: 75.67 kB / 0.5102 GB, free: 16.9 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002295/0.9027, allocations: 0.9443 MB / 0.5111 GB, free: 16.84 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.277e-05/0.9028, allocations: 6.938 kB / 0.5111 GB, free: 16.84 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001492/0.9029, allocations: 33.66 kB / 0.5111 GB, free: 16.84 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.562e-05/0.903, allocations: 44.48 kB / 0.5112 GB, free: 16.83 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002251/0.9053, allocations: 0.8666 MB / 0.512 GB, free: 16.82 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.009179/0.9145, allocations: 3.38 MB / 0.5153 GB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001453/0.916, allocations: 0.6421 MB / 0.516 GB, free: 15.22 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.354e-05/0.9161, allocations: 16.3 kB / 0.516 GB, free: 15.22 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.452e-05/0.9162, allocations: 44.94 kB / 0.516 GB, free: 15.18 MB / 394.7 MB Notification: Performance of pre-optimization done (n=59): time 2.846e-06/0.9162, allocations: 0.9375 kB / 0.516 GB, free: 15.18 MB / 394.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.0261/0.9423, allocations: 6.163 MB / 0.522 GB, free: 12.95 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.563e-05/0.9424, allocations: 58.16 kB / 0.5221 GB, free: 12.89 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009307/0.9434, allocations: 0.5428 MB / 0.5226 GB, free: 12.77 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001887/0.9436, allocations: 43.48 kB / 0.5227 GB, free: 12.74 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002255/0.9438, allocations: 316.8 kB / 0.523 GB, free: 12.52 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002332/0.944, allocations: 250.7 kB / 0.5232 GB, free: 12.37 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.911e-05/0.9441, allocations: 16.41 kB / 0.5232 GB, free: 12.37 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.9443, allocations: 335.5 kB / 0.5235 GB, free: 12.05 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000964/0.9453, allocations: 442.7 kB / 0.524 GB, free: 12.05 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.9463, allocations: 0.5236 MB / 0.5245 GB, free: 11.99 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.9475, allocations: 0.493 MB / 0.525 GB, free: 11.98 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.9475, allocations: 1.938 kB / 0.525 GB, free: 11.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003056/0.9505, allocations: 1.315 MB / 0.5262 GB, free: 11.84 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.78e-05/0.9506, allocations: 11.27 kB / 0.5263 GB, free: 11.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.9506, allocations: 0 / 0.5263 GB, free: 11.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009085/0.9515, allocations: 336.3 kB / 0.5266 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00177/0.9533, allocations: 179 kB / 0.5267 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01123/0.9646, allocations: 10.29 MB / 0.5368 GB, free: 2.133 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/0.966, allocations: 79.59 kB / 0.5369 GB, free: 2.102 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001326/0.9661, allocations: 46.8 kB / 0.5369 GB, free: 2.098 MB / 394.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 () * Number of clocked 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.0006663/0.9668, allocations: 267.9 kB / 0.5372 GB, free: 1.965 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000221/0.967, allocations: 68.64 kB / 0.5372 GB, free: 1.93 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003237/0.9703, allocations: 1.283 MB / 0.5385 GB, free: 1.609 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/0.9703, allocations: 7.844 kB / 0.5385 GB, free: 1.609 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.9703, allocations: 4 kB / 0.5385 GB, free: 1.605 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002796/0.9731, allocations: 1.61 MB / 0.5401 GB, free: 0.6406 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006204/0.9794, allocations: 2.273 MB / 0.5423 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.15e-05/0.9794, allocations: 0 / 0.5423 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002258/0.9817, allocations: 221.2 kB / 0.5425 GB, free: 15.83 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002945/0.982, allocations: 61.55 kB / 0.5426 GB, free: 15.81 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001459/0.9822, allocations: 47.62 kB / 0.5426 GB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001813/0.984, allocations: 1.45 MB / 0.544 GB, free: 14.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.9841, allocations: 2.219 kB / 0.544 GB, free: 14.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003858/0.9879, allocations: 1.629 MB / 0.5456 GB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004483/0.9884, allocations: 143.7 kB / 0.5458 GB, free: 13.92 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002172/0.9887, allocations: 29.05 kB / 0.5458 GB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001517/0.9902, allocations: 77.86 kB / 0.5459 GB, free: 13.89 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002217/0.9904, allocations: 61.59 kB / 0.5459 GB, free: 13.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001748/0.9906, allocations: 63.62 kB / 0.546 GB, free: 13.84 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006923/0.9913, allocations: 404.7 kB / 0.5464 GB, free: 13.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.9913, allocations: 0 / 0.5464 GB, free: 13.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001817/0.9932, allocations: 334.6 kB / 0.5467 GB, free: 13.68 MB / 410.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 () * Number of clocked 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.006403/0.9996, allocations: 2.77 MB / 0.5494 GB, free: 12.41 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003883/1.004, allocations: 1.869 MB / 0.5512 GB, free: 11.47 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/1.004, allocations: 0 / 0.5512 GB, free: 11.47 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001599/1.005, allocations: 0.6845 MB / 0.5519 GB, free: 11.05 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004479/1.01, allocations: 484.1 kB / 0.5523 GB, free: 10.65 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0169/1.027, allocations: 6.902 MB / 0.5591 GB, free: 4.914 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009202/1.028, allocations: 0.9918 MB / 0.5601 GB, free: 3.926 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001102/1.029, allocations: 277.9 kB / 0.5603 GB, free: 3.82 MB / 410.7 MB Notification: Performance of SimCode: time 1.463e-06/1.029, allocations: 0 / 0.5603 GB, free: 3.82 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.762/4.791, allocations: 29.47 MB / 0.5891 GB, free: 6.461 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