Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.664/1.664, allocations: 171.2 MB / 186.7 MB, free: 1.051 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004915/0.0004918, allocations: 8 kB / 233.3 MB, free: 2.953 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08013/0.08066, allocations: 38.78 MB / 272 MB, free: 12.1 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4412/0.5219, allocations: 138.6 MB / 410.6 MB, free: 4.543 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004349/0.5263, allocations: 2.35 MB / 413 MB, free: 2.188 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002731/0.5266, allocations: 0 / 413 MB, free: 2.188 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007978/0.5274, allocations: 179.2 kB / 413.2 MB, free: 2.012 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007201/0.5281, allocations: 231.3 kB / 413.4 MB, free: 1.785 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001686/0.5298, allocations: 411 kB / 413.8 MB, free: 1.383 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.5309, allocations: 0.5934 MB / 414.4 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003991/0.5313, allocations: 209.3 kB / 414.6 MB, free: 0.582 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002418/0.5337, allocations: 0.7951 MB / 415.4 MB, free: 15.79 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004726/0.5342, allocations: 259.3 kB / 415.6 MB, free: 15.53 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001366/0.5344, allocations: 32 kB / 415.7 MB, free: 15.5 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001459/0.5359, allocations: 415.5 kB / 416.1 MB, free: 15.09 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004671/0.5363, allocations: 359.2 kB / 416.4 MB, free: 14.74 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002591/0.5366, allocations: 197.3 kB / 416.6 MB, free: 14.54 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001936/0.5386, allocations: 1.215 MB / 417.8 MB, free: 13.33 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.5386, allocations: 0 / 417.8 MB, free: 13.33 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5386, allocations: 3.938 kB / 417.8 MB, free: 13.33 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.768e-06/0.5386, allocations: 4 kB / 417.8 MB, free: 13.32 MB / 346.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.002181/0.5408, allocations: 0.8965 MB / 418.7 MB, free: 12.38 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.5409, allocations: 8.031 kB / 418.7 MB, free: 12.37 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002531/0.5411, allocations: 118.5 kB / 418.9 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001005/0.5421, allocations: 155 kB / 419 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.5432, allocations: 469 kB / 419.5 MB, free: 11.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.142e-05/0.5432, allocations: 53.3 kB / 419.5 MB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000171/0.5434, allocations: 71.86 kB / 419.6 MB, free: 11.47 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002393/0.5458, allocations: 0.9513 MB / 420.5 MB, free: 10.51 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.278e-05/0.5459, allocations: 0 / 420.5 MB, free: 10.51 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001496/0.546, allocations: 28 kB / 420.6 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.532e-05/0.5461, allocations: 41.98 kB / 420.6 MB, free: 10.44 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002102/0.5482, allocations: 0.8706 MB / 421.5 MB, free: 9.574 MB / 346.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.007699/0.556, allocations: 3.047 MB / 424.5 MB, free: 6.32 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00143/0.5574, allocations: 0.639 MB / 425.2 MB, free: 5.672 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.103e-05/0.5575, allocations: 16.55 kB / 425.2 MB, free: 5.656 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.755e-05/0.5576, allocations: 55.05 kB / 425.2 MB, free: 5.594 MB / 346.7 MB Notification: Performance of pre-optimization done (n=59): time 5.29e-06/0.5576, allocations: 3.984 kB / 425.2 MB, free: 5.59 MB / 346.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.239/0.7966, allocations: 6.135 MB / 431.4 MB, free: 126.8 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/0.7967, allocations: 58.94 kB / 431.4 MB, free: 126.7 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001097/0.7978, allocations: 0.5423 MB / 432 MB, free: 126.6 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001856/0.798, allocations: 44.97 kB / 432 MB, free: 126.6 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.7982, allocations: 319.7 kB / 432.3 MB, free: 126.3 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002435/0.7985, allocations: 247.1 kB / 432.6 MB, free: 126.2 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.06e-05/0.7985, allocations: 18.12 kB / 432.6 MB, free: 126.2 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.888e-05/0.7986, allocations: 336.5 kB / 432.9 MB, free: 125.9 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001092/0.7997, allocations: 449.2 kB / 433.4 MB, free: 125.7 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001143/0.8009, allocations: 0.5089 MB / 433.9 MB, free: 125.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001337/0.8023, allocations: 0.499 MB / 434.4 MB, free: 125.3 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.8023, allocations: 3.969 kB / 434.4 MB, free: 125.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003267/0.8056, allocations: 1.314 MB / 435.7 MB, free: 124.7 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.842e-05/0.8056, allocations: 10.28 kB / 435.7 MB, free: 124.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.8056, allocations: 4.875 kB / 435.7 MB, free: 124.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009746/0.8066, allocations: 329.4 kB / 436 MB, free: 124.6 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00184/0.8085, allocations: 184.6 kB / 436.2 MB, free: 124.6 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009043/0.8175, allocations: 10.29 MB / 446.5 MB, free: 114.6 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001258/0.8188, allocations: 88.56 kB / 446.6 MB, free: 114.6 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/0.819, allocations: 47.22 kB / 446.6 MB, free: 114.6 MB / 346.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.0006206/0.8196, allocations: 272.6 kB / 446.9 MB, free: 114.4 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002154/0.8199, allocations: 61.28 kB / 446.9 MB, free: 114.4 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003415/0.8233, allocations: 1.291 MB / 448.2 MB, free: 113.8 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.621e-05/0.8233, allocations: 8.578 kB / 448.2 MB, free: 113.8 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.8233, allocations: 0 / 448.2 MB, free: 113.8 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002636/0.826, allocations: 1.601 MB / 449.8 MB, free: 112.6 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0053/0.8313, allocations: 2.283 MB / 452.1 MB, free: 111.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.857e-06/0.8314, allocations: 1 kB / 452.1 MB, free: 111.6 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002218/0.8336, allocations: 220.9 kB / 452.3 MB, free: 111.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002769/0.8339, allocations: 69.91 kB / 452.4 MB, free: 111.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001229/0.834, allocations: 41.22 kB / 452.4 MB, free: 111.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001415/0.8355, allocations: 1.447 MB / 453.9 MB, free: 110.1 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.8355, allocations: 5.5 kB / 453.9 MB, free: 110.1 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003619/0.8391, allocations: 1.595 MB / 455.5 MB, free: 109.2 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002969/0.8394, allocations: 143.8 kB / 455.6 MB, free: 109 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002304/0.8397, allocations: 27.8 kB / 455.7 MB, free: 109 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001413/0.8411, allocations: 79.38 kB / 455.7 MB, free: 109 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.8413, allocations: 55.94 kB / 455.8 MB, free: 108.9 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001541/0.8414, allocations: 59.55 kB / 455.9 MB, free: 108.9 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006124/0.8421, allocations: 405.1 kB / 456.2 MB, free: 108.7 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.8421, allocations: 0 / 456.2 MB, free: 108.7 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001491/0.8436, allocations: 338.4 kB / 456.6 MB, free: 108.7 MB / 346.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.005669/0.8493, allocations: 2.532 MB / 459.1 MB, free: 107.1 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003386/0.8527, allocations: 1.866 MB / 461 MB, free: 105.2 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.375e-06/0.8527, allocations: 0 / 461 MB, free: 105.2 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00149/0.8542, allocations: 0.6817 MB / 461.7 MB, free: 104.5 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004091/0.8583, allocations: 498.6 kB / 462.1 MB, free: 104 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01328/0.8717, allocations: 6.141 MB / 468.3 MB, free: 97.77 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005771/0.8723, allocations: 0.9866 MB / 469.3 MB, free: 96.76 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008673/0.8732, allocations: 279.3 kB / 469.5 MB, free: 96.49 MB / 346.7 MB Notification: Performance of SimCode: time 1.222e-06/0.8732, allocations: 0 / 469.5 MB, free: 96.49 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.902/4.776, allocations: 29.47 MB / 499 MB, free: 66.98 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat