Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestOnly.IdealGasN2") Notification: Performance of loadModel(ModelicaTest): time 2.203/2.203, allocations: 234.9 MB / 250.5 MB, free: 9.52 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004322/0.0004324, allocations: 12 kB / 314.3 MB, free: 9.574 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3145, allocations: 54.87 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.4618/0.7764, allocations: 125.5 MB / 494.7 MB, free: 13.78 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.7777, allocations: 0.8155 MB / 495.5 MB, free: 13.72 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.695e-05/0.7778, allocations: 4 kB / 495.5 MB, free: 13.71 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002095/0.778, allocations: 29.08 kB / 495.6 MB, free: 13.71 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005334/0.7786, allocations: 203.8 kB / 495.8 MB, free: 13.7 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003921/0.779, allocations: 101.7 kB / 495.9 MB, free: 13.7 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001786/0.7792, allocations: 107.8 kB / 496 MB, free: 13.69 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.869e-05/0.7792, allocations: 3.312 kB / 496 MB, free: 13.69 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000224/0.7795, allocations: 84.3 kB / 496.1 MB, free: 13.68 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.331e-05/0.7796, allocations: 44.7 kB / 496.1 MB, free: 13.67 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.142e-05/0.7796, allocations: 4.812 kB / 496.1 MB, free: 13.67 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006503/0.7803, allocations: 288.2 kB / 496.4 MB, free: 13.66 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.377e-05/0.7804, allocations: 20.66 kB / 496.4 MB, free: 13.66 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 4.876e-05/0.7804, allocations: 37.73 kB / 496.4 MB, free: 13.63 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003519/0.7808, allocations: 197.3 kB / 496.6 MB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.578e-06/0.7808, allocations: 0 / 496.6 MB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.969e-06/0.7808, allocations: 0 / 496.6 MB, free: 13.62 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.403e-06/0.7808, allocations: 0 / 496.6 MB, free: 13.62 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0005415/0.7814, allocations: 385.8 kB / 497 MB, free: 13.24 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.7814, allocations: 9.375 kB / 497 MB, free: 13.24 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002282/0.7837, allocations: 188.3 kB / 497.2 MB, free: 13.23 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002964/0.784, allocations: 207.8 kB / 497.4 MB, free: 13.03 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.7841, allocations: 5.094 kB / 497.4 MB, free: 13.03 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.457e-05/0.7841, allocations: 5.844 kB / 497.4 MB, free: 13.03 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005907/0.7847, allocations: 226 kB / 497.6 MB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.7848, allocations: 3.938 kB / 497.6 MB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.264e-05/0.7848, allocations: 2.656 kB / 497.6 MB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.433e-05/0.7848, allocations: 9.938 kB / 497.7 MB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005384/0.7854, allocations: 166.1 kB / 497.8 MB, free: 12.96 MB / 410.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.001267/0.7867, allocations: 0.5826 MB / 498.4 MB, free: 12.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004167/0.7871, allocations: 134.5 kB / 498.5 MB, free: 12.47 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.347e-05/0.7872, allocations: 2.125 kB / 498.5 MB, free: 12.47 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.483e-05/0.7872, allocations: 35.25 kB / 498.6 MB, free: 12.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 3.231e-06/0.7872, allocations: 5 kB / 498.6 MB, free: 12.43 MB / 410.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: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.006038/0.7933, allocations: 1.309 MB / 499.9 MB, free: 11.92 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.021e-05/0.7934, allocations: 54.5 kB / 499.9 MB, free: 11.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.7935, allocations: 115 kB / 0.4883 GB, free: 11.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.385e-05/0.7936, allocations: 28.7 kB / 0.4884 GB, free: 11.72 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.7937, allocations: 171 kB / 0.4885 GB, free: 11.56 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.173e-05/0.7938, allocations: 72.03 kB / 0.4886 GB, free: 11.52 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.267e-05/0.7938, allocations: 3.062 kB / 0.4886 GB, free: 11.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.794, allocations: 319.5 kB / 0.4889 GB, free: 11.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000195/0.7942, allocations: 66 kB / 0.489 GB, free: 11.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002284/0.7944, allocations: 102.9 kB / 0.4891 GB, free: 11.17 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002137/0.7947, allocations: 77.25 kB / 0.4891 GB, free: 11.17 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.105e-06/0.7947, allocations: 2.734 kB / 0.4891 GB, free: 11.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006481/0.7953, allocations: 255.2 kB / 0.4894 GB, free: 11.12 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.7954, allocations: 5 kB / 0.4894 GB, free: 11.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.7954, allocations: 13.05 kB / 0.4894 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002198/0.7956, allocations: 50.48 kB / 0.4894 GB, free: 11.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003808/0.796, allocations: 50.34 kB / 0.4895 GB, free: 11.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005704/0.7966, allocations: 0.5662 MB / 0.49 GB, free: 10.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002171/0.7968, allocations: 6.344 kB / 0.49 GB, free: 10.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.201e-05/0.7969, allocations: 29.42 kB / 0.4901 GB, free: 10.57 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (23): * Single equations (assignments): 22 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001819/0.7971, allocations: 132.8 kB / 0.4902 GB, free: 10.45 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.619e-05/0.7972, allocations: 13.34 kB / 0.4902 GB, free: 10.45 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001069/0.7983, allocations: 333.1 kB / 0.4905 GB, free: 10.38 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.478e-06/0.7983, allocations: 2.812 kB / 0.4905 GB, free: 10.38 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.186e-06/0.7983, allocations: 6.156 kB / 0.4905 GB, free: 10.38 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.639e-06/0.7983, allocations: 0 / 0.4905 GB, free: 10.38 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001256/0.7996, allocations: 0.6203 MB / 0.4911 GB, free: 10.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.708e-06/0.7996, allocations: 2.906 kB / 0.4911 GB, free: 10.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004181/0.8001, allocations: 64.06 kB / 0.4912 GB, free: 10.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000108/0.8002, allocations: 23.52 kB / 0.4912 GB, free: 10.01 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.961e-05/0.8002, allocations: 17.45 kB / 0.4912 GB, free: 10 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001259/0.8015, allocations: 1.274 MB / 0.4925 GB, free: 8.734 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.954e-06/0.8015, allocations: 0 / 0.4925 GB, free: 8.734 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009095/0.8025, allocations: 436.2 kB / 0.4929 GB, free: 8.555 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.497e-05/0.8026, allocations: 92.03 kB / 0.493 GB, free: 8.453 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.794e-05/0.8026, allocations: 9.609 kB / 0.493 GB, free: 8.449 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002766/0.8029, allocations: 6.844 kB / 0.493 GB, free: 8.449 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.489e-05/0.803, allocations: 23.81 kB / 0.493 GB, free: 8.449 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.289e-05/0.803, allocations: 25.61 kB / 0.4931 GB, free: 8.449 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.515e-05/0.8031, allocations: 89.19 kB / 0.4931 GB, free: 8.375 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.76e-07/0.8031, allocations: 3.938 kB / 0.4931 GB, free: 8.371 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005602/0.8037, allocations: 82.03 kB / 0.4932 GB, free: 8.363 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,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 (21): * Single equations (assignments): 20 * 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.0004293/0.8041, allocations: 151.9 kB / 0.4934 GB, free: 8.262 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006095/0.8048, allocations: 201.9 kB / 0.4936 GB, free: 8.254 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.624e-06/0.8048, allocations: 0 / 0.4936 GB, free: 8.254 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004334/0.8052, allocations: 222.1 kB / 0.4938 GB, free: 8.137 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004273/0.8057, allocations: 43.48 kB / 0.4938 GB, free: 8.133 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/0.8068, allocations: 0.5995 MB / 0.4944 GB, free: 7.762 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003961/0.8072, allocations: 0.7087 MB / 0.4951 GB, free: 7.066 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003257/0.8075, allocations: 58.98 kB / 0.4952 GB, free: 7.055 MB / 410.7 MB Notification: Performance of SimCode: time 2.1e-06/0.8075, allocations: 2.938 kB / 0.4952 GB, free: 7.055 MB / 410.7 MB Notification: Performance of Templates: time 0.008017/0.8156, allocations: 3.938 MB / 0.499 GB, free: 5.348 MB / 410.7 MB