Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|yRegStep|yRegStep_der",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep") Notification: Performance of loadModel(ModelicaTest): time 1.912/1.912, allocations: 209.3 MB / 225.4 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005856/0.0005858, allocations: 12 kB / 283.1 MB, free: 9.707 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1251, allocations: 48.71 MB / 331.8 MB, free: 8.902 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegStep): time 0.0007876/0.1259, allocations: 268.5 kB / 332.1 MB, free: 8.641 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002586/0.1262, allocations: 59.81 kB / 332.1 MB, free: 8.582 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.603e-05/0.1262, allocations: 4 kB / 332.1 MB, free: 8.578 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.778e-06/0.1263, allocations: 3.938 kB / 332.1 MB, free: 8.574 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002002/0.1265, allocations: 11.92 kB / 332.2 MB, free: 8.562 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.09e-05/0.1265, allocations: 4 kB / 332.2 MB, free: 8.559 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 3.427e-05/0.1266, allocations: 0 / 332.2 MB, free: 8.559 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.241e-05/0.1266, allocations: 0 / 332.2 MB, free: 8.559 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.117e-05/0.1266, allocations: 11.98 kB / 332.2 MB, free: 8.547 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.722e-05/0.1267, allocations: 0 / 332.2 MB, free: 8.547 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.131e-05/0.1267, allocations: 0 / 332.2 MB, free: 8.547 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.838e-05/0.1268, allocations: 23.97 kB / 332.2 MB, free: 8.523 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.997e-06/0.1268, allocations: 3.938 kB / 332.2 MB, free: 8.52 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.355e-05/0.1269, allocations: 29.7 kB / 332.2 MB, free: 8.484 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 7.018e-05/0.1269, allocations: 7.984 kB / 332.2 MB, free: 8.477 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.285e-06/0.127, allocations: 0 / 332.2 MB, free: 8.477 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.127, allocations: 0 / 332.2 MB, free: 8.477 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.127, allocations: 4 kB / 332.2 MB, free: 8.473 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003142/0.1273, allocations: 319.9 kB / 332.6 MB, free: 8.117 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.1274, allocations: 12.03 kB / 332.6 MB, free: 8.105 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.521e-05/0.1274, allocations: 0 / 332.6 MB, free: 8.105 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001251/0.1275, allocations: 159.1 kB / 332.7 MB, free: 7.91 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.538e-05/0.1275, allocations: 3.953 kB / 332.7 MB, free: 7.906 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.377e-05/0.1276, allocations: 7.984 kB / 332.7 MB, free: 7.898 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001028/0.1277, allocations: 33.69 kB / 332.8 MB, free: 7.859 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.1277, allocations: 4 kB / 332.8 MB, free: 7.855 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.434e-06/0.1277, allocations: 3.938 kB / 332.8 MB, free: 7.852 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.96e-06/0.1277, allocations: 0 / 332.8 MB, free: 7.852 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.294e-05/0.1278, allocations: 11.94 kB / 332.8 MB, free: 7.84 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001847/0.128, allocations: 153.7 kB / 332.9 MB, free: 7.641 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001994/0.1282, allocations: 38.56 kB / 333 MB, free: 7.594 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005362/0.1288, allocations: 129.1 kB / 333.1 MB, free: 7.449 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.774e-05/0.1288, allocations: 30.56 kB / 333.1 MB, free: 7.41 MB / 282.7 MB Notification: Performance of pre-optimization done (n=3): time 1.623e-06/0.1288, allocations: 3.938 kB / 333.1 MB, free: 7.406 MB / 282.7 MB Notification: Performance of matching and sorting (n=5): time 0.002114/0.1309, allocations: 225.6 kB / 333.4 MB, free: 7.18 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.344e-05/0.131, allocations: 55.41 kB / 333.4 MB, free: 7.113 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.718e-05/0.1311, allocations: 89.86 kB / 333.5 MB, free: 7.016 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.136e-05/0.1311, allocations: 29.7 kB / 333.5 MB, free: 6.98 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.181e-05/0.1312, allocations: 150.6 kB / 333.7 MB, free: 6.832 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.17e-05/0.1312, allocations: 11.81 kB / 333.7 MB, free: 6.82 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.124e-06/0.1312, allocations: 128 / 333.7 MB, free: 6.82 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.1314, allocations: 322.8 kB / 334 MB, free: 6.496 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001456/0.1315, allocations: 23.92 kB / 334 MB, free: 6.473 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001354/0.1317, allocations: 24.05 kB / 334 MB, free: 6.449 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001423/0.1318, allocations: 27.98 kB / 334.1 MB, free: 6.422 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.1318, allocations: 0 / 334.1 MB, free: 6.422 MB / 282.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003451/0.1322, allocations: 85.61 kB / 334.2 MB, free: 6.332 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.1322, allocations: 8 kB / 334.2 MB, free: 6.324 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.1322, allocations: 0 / 334.2 MB, free: 6.324 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.1323, allocations: 0 / 334.2 MB, free: 6.324 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002044/0.1325, allocations: 23.98 kB / 334.2 MB, free: 6.301 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.1325, allocations: 0 / 334.2 MB, free: 6.301 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001444/0.1326, allocations: 7.984 kB / 334.2 MB, free: 6.293 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.989e-06/0.1327, allocations: 4 kB / 334.2 MB, free: 6.289 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (5): * Single equations (assignments): 5 * 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 8.897e-05/0.1328, allocations: 109.8 kB / 334.3 MB, free: 6.172 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.818e-05/0.1328, allocations: 7.953 kB / 334.3 MB, free: 6.164 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004139/0.1332, allocations: 101.1 kB / 334.4 MB, free: 6.059 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.1332, allocations: 0 / 334.4 MB, free: 6.059 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.1332, allocations: 0 / 334.4 MB, free: 6.059 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.436e-05/0.1333, allocations: 77.11 kB / 334.5 MB, free: 5.965 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.036e-05/0.1333, allocations: 4 kB / 334.5 MB, free: 5.961 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/0.1335, allocations: 15.98 kB / 334.5 MB, free: 5.945 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.438e-05/0.1335, allocations: 3.938 kB / 334.5 MB, free: 5.941 MB / 282.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005139/0.134, allocations: 172.9 kB / 334.7 MB, free: 5.766 MB / 282.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0004251/0.1345, allocations: 263.1 kB / 334.9 MB, free: 5.492 MB / 282.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001506/0.1346, allocations: 27.98 kB / 335 MB, free: 5.465 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.139e-05/0.1347, allocations: 79.28 kB / 335 MB, free: 5.387 MB / 282.7 MB Notification: Performance of Backend: time 5.41e-07/0.1347, allocations: 0 / 335 MB, free: 5.387 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004526/0.1352, allocations: 110.3 kB / 335.1 MB, free: 5.27 MB / 282.7 MB Notification: Performance of SimCode: time 0.000427/0.1356, allocations: 0.5758 MB / 335.7 MB, free: 4.637 MB / 282.7 MB Error: Internal error GetVarIndexListByMapping: No Element for $DER.x found! Error: Internal error GetVarIndexListByMapping: No Element for $DER.yRegStep found! Error: Internal error GetVarIndexListByMapping: No Element for x found! Error: Internal error GetVarIndexListByMapping: No Element for yRegStep found! Error: Internal error GetVarIndexListByMapping: No Element for yRegStep_der found! Error: Internal error GetVarIndexListByMapping: No Element for x_small found! Error: Internal error GetVarIndexListByMapping: No Element for $DER.x 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.x (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for $DER.yRegStep 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.yRegStep (no alias) initial: no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for x 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: x (no alias) initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for yRegStep 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: yRegStep (no alias) initial: no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for yRegStep_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:4: yRegStep_der (no alias) initial: no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for x_small 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: x_small (no alias) initial: 0.5 no arrCref index:(6) []