Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestOnly.DryAirNasa.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Media.TestOnly.DryAirNasa,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|eta|lambda|eta_der|lambda_der|eta2|lambda2|eta2_der|lambda2_der",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestOnly.DryAirNasa") Notification: Performance of loadModel(ModelicaTest): time 2.515/2.515, allocations: 234.9 MB / 251.1 MB, free: 9.703 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006209/0.000621, allocations: 16 kB / 314.9 MB, free: 9.754 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3869/0.3875, allocations: 54.86 MB / 369.8 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.DryAirNasa): time 0.2291/0.6167, allocations: 126.8 MB / 496.6 MB, free: 13.65 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.006417/0.6231, allocations: 2.483 MB / 499.1 MB, free: 11.17 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.98e-05/0.6233, allocations: 0 / 499.1 MB, free: 11.17 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002591/0.6236, allocations: 35.86 kB / 499.1 MB, free: 11.13 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001078/0.6237, allocations: 27.92 kB / 499.2 MB, free: 11.11 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002161/0.6259, allocations: 378.8 kB / 499.5 MB, free: 10.73 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001581/0.6261, allocations: 51.91 kB / 499.6 MB, free: 10.68 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.733e-05/0.6262, allocations: 7.938 kB / 499.6 MB, free: 10.68 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000144/0.6263, allocations: 27.92 kB / 499.6 MB, free: 10.65 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.718e-05/0.6264, allocations: 31.91 kB / 499.7 MB, free: 10.62 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 1.589e-05/0.6264, allocations: 0 / 499.7 MB, free: 10.62 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002317/0.6288, allocations: 499 kB / 0.4884 GB, free: 10.13 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 2.646e-05/0.6288, allocations: 3.984 kB / 0.4884 GB, free: 10.12 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 5.868e-05/0.6289, allocations: 45.62 kB / 0.4885 GB, free: 10.07 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007728/0.6297, allocations: 192.3 kB / 0.4887 GB, free: 9.887 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.6297, allocations: 0 / 0.4887 GB, free: 9.887 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.6297, allocations: 4 kB / 0.4887 GB, free: 9.883 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.6298, allocations: 0 / 0.4887 GB, free: 9.883 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008375/0.6306, allocations: 403.1 kB / 0.489 GB, free: 9.441 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.748e-05/0.6307, allocations: 8.031 kB / 0.489 GB, free: 9.434 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.461e-05/0.6307, allocations: 7.906 kB / 0.4891 GB, free: 9.426 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001738/0.6309, allocations: 163 kB / 0.4892 GB, free: 9.227 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.099e-05/0.631, allocations: 15.89 kB / 0.4892 GB, free: 9.211 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.094e-05/0.631, allocations: 8 kB / 0.4892 GB, free: 9.203 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002442/0.6313, allocations: 73.66 kB / 0.4893 GB, free: 9.125 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.6313, allocations: 0 / 0.4893 GB, free: 9.125 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.6313, allocations: 7.938 kB / 0.4893 GB, free: 9.117 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.6314, allocations: 4 kB / 0.4893 GB, free: 9.113 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001647/0.6315, allocations: 43.97 kB / 0.4894 GB, free: 9.07 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007273/0.6323, allocations: 381.8 kB / 0.4897 GB, free: 8.629 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002102/0.6325, allocations: 66.48 kB / 0.4898 GB, free: 8.555 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002349/0.6349, allocations: 1.009 MB / 0.4908 GB, free: 7.34 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.41e-05/0.635, allocations: 38.55 kB / 0.4908 GB, free: 7.293 MB / 426.7 MB Notification: Performance of pre-optimization done (n=9): time 7.704e-06/0.635, allocations: 0 / 0.4908 GB, free: 7.293 MB / 426.7 MB Notification: Performance of matching and sorting (n=14): time 0.0183/0.6533, allocations: 0.6611 MB / 0.4915 GB, free: 6.625 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.196e-05/0.6534, allocations: 55.41 kB / 0.4915 GB, free: 6.559 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.6536, allocations: 101.8 kB / 0.4916 GB, free: 6.449 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.013e-05/0.6536, allocations: 25.7 kB / 0.4916 GB, free: 6.418 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.6538, allocations: 174.6 kB / 0.4918 GB, free: 6.246 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001271/0.6539, allocations: 43.36 kB / 0.4918 GB, free: 6.203 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.981e-05/0.654, allocations: 4 kB / 0.4918 GB, free: 6.199 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.6542, allocations: 318.8 kB / 0.4921 GB, free: 5.879 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005032/0.6547, allocations: 87.88 kB / 0.4922 GB, free: 5.793 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005396/0.6552, allocations: 101 kB / 0.4923 GB, free: 5.688 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005755/0.6558, allocations: 96.09 kB / 0.4924 GB, free: 5.594 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.6559, allocations: 0 / 0.4924 GB, free: 5.594 MB / 426.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.001418/0.6573, allocations: 245.4 kB / 0.4926 GB, free: 5.348 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.6574, allocations: 8 kB / 0.4927 GB, free: 5.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.6574, allocations: 0 / 0.4927 GB, free: 5.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.6574, allocations: 3.953 kB / 0.4927 GB, free: 5.336 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001756/0.6592, allocations: 51.94 kB / 0.4927 GB, free: 5.285 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.556e-05/0.6592, allocations: 0 / 0.4927 GB, free: 5.285 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001437/0.6607, allocations: 20.61 kB / 0.4927 GB, free: 5.266 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.281e-05/0.6608, allocations: 19.97 kB / 0.4927 GB, free: 5.246 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (16): * Single equations (assignments): 16 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002489/0.661, allocations: 117.8 kB / 0.4929 GB, free: 5.121 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.6612, allocations: 11.89 kB / 0.4929 GB, free: 5.109 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001939/0.6631, allocations: 351 kB / 0.4932 GB, free: 4.766 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.6631, allocations: 0 / 0.4932 GB, free: 4.766 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.6632, allocations: 0 / 0.4932 GB, free: 4.766 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002228/0.6634, allocations: 105 kB / 0.4933 GB, free: 4.645 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001108/0.6635, allocations: 11.95 kB / 0.4933 GB, free: 4.633 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001375/0.6649, allocations: 8 kB / 0.4933 GB, free: 4.625 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.665, allocations: 19.97 kB / 0.4933 GB, free: 4.605 MB / 426.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002646/0.6677, allocations: 357.4 kB / 0.4937 GB, free: 4.25 MB / 426.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001497/0.6692, allocations: 445.6 kB / 0.4941 GB, free: 3.801 MB / 426.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005508/0.6698, allocations: 107.9 kB / 0.4942 GB, free: 3.695 MB / 426.7 MB Notification: Performance of sorting global known variables: time 8.489e-05/0.6699, allocations: 83.53 kB / 0.4943 GB, free: 3.613 MB / 426.7 MB Notification: Performance of Backend: time 1.173e-06/0.6699, allocations: 0 / 0.4943 GB, free: 3.613 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001914/0.6719, allocations: 330 kB / 0.4946 GB, free: 3.285 MB / 426.7 MB Notification: Performance of SimCode: time 0.001233/0.6731, allocations: 0.7244 MB / 0.4953 GB, free: 2.508 MB / 426.7 MB Error: Internal error GetVarIndexListByMapping: No Element for $DER.T found! Error: Internal error GetVarIndexListByMapping: No Element for $DER.eta found! Error: Internal error GetVarIndexListByMapping: No Element for $DER.eta2 found! Error: Internal error GetVarIndexListByMapping: No Element for $DER.lambda found! Error: Internal error GetVarIndexListByMapping: No Element for $DER.lambda2 found! Error: Internal error GetVarIndexListByMapping: No Element for T found! Error: Internal error GetVarIndexListByMapping: No Element for eta found! Error: Internal error GetVarIndexListByMapping: No Element for eta2 found! Error: Internal error GetVarIndexListByMapping: No Element for eta2_der found! Error: Internal error GetVarIndexListByMapping: No Element for eta_der found! Error: Internal error GetVarIndexListByMapping: No Element for lambda found! Error: Internal error GetVarIndexListByMapping: No Element for lambda2 found! Error: Internal error GetVarIndexListByMapping: No Element for lambda2_der found! Error: Internal error GetVarIndexListByMapping: No Element for lambda_der found! Error: Internal error GetVarIndexListByMapping: No Element for state.p found! Error: Internal error GetVarIndexListByMapping: No Element for state2.p found! Error: Internal error GetVarIndexListByMapping: No Element for Tmax found! Error: Internal error GetVarIndexListByMapping: No Element for Tmin found! Error: Internal error GetVarIndexListByMapping: No Element for state.T found! Error: Internal error GetVarIndexListByMapping: No Element for state2.T found! Error: Internal error GetVarIndexListByMapping: No Element for $DER.T found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: $DER.T (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for $DER.eta found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:1: $DER.eta (no alias) initial: no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for $DER.eta2 found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:2: $DER.eta2 (no alias) initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for $DER.lambda found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:3: $DER.lambda (no alias) initial: no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for $DER.lambda2 found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:4: $DER.lambda2 (no alias) initial: no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for T found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:5: T (no alias) initial: 500.0 no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for eta found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:6: eta (no alias) initial: 0.001 no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for eta2 found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:7: eta2 (no alias) initial: 0.001 no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for eta2_der found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:8: eta2_der (no alias) initial: no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for eta_der found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:9: eta_der (no alias) initial: no arrCref index:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for lambda found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:10: lambda (no alias) initial: 1.0 no arrCref index:(11) [] Error: Internal error GetVarIndexListByMapping: No Element for lambda2 found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:11: lambda2 (no alias) initial: 1.0 no arrCref index:(12) [] Error: Internal error GetVarIndexListByMapping: No Element for lambda2_der found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:12: lambda2_der (no alias) initial: no arrCref index:(13) [] Error: Internal error GetVarIndexListByMapping: No Element for lambda_der found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:13: lambda_der (no alias) initial: no arrCref index:(14) [] Error: Internal error GetVarIndexListByMapping: No Element for state.p found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:14: state.p (no alias) initial: 1000000.0 no arrCref index:(15) [] Error: Internal error GetVarIndexListByMapping: No Element for state2.p found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:15: state2.p (no alias) initial: 1000000.0 no arrCref index:(16) [] Error: Internal error GetVarIndexListByMapping: No Element for Tmax found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: Tmax (no alias) initial: 3000.0 no arrCref index:(17) [] Error: Internal error GetVarIndexListByMapping: No Element for Tmin found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:1: Tmin (no alias) initial: 200.0 no arrCref index:(18) [] Error: Internal error GetVarIndexListByMapping: No Element for T found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:5: T (no alias) initial: 500.0 no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for T found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:5: T (no alias) initial: 500.0 no arrCref index:(6) []