Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep.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.Fluid.TestUtilities.TestRegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|yRegStep|yRegStep_der",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep") Notification: Performance of loadModel(ModelicaTest): time 2.509/2.509, allocations: 234.9 MB / 251.1 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006111/0.0006113, allocations: 8 kB / 314.9 MB, free: 9.625 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3755/0.3761, allocations: 54.87 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegStep): time 0.0008519/0.377, allocations: 276.3 kB / 370.1 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002839/0.3773, allocations: 59.81 kB / 370.1 MB, free: 10.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.988e-05/0.3774, allocations: 4 kB / 370.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.52e-05/0.3774, allocations: 0 / 370.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002444/0.3777, allocations: 11.92 kB / 370.2 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.19e-05/0.3777, allocations: 8 kB / 370.2 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.193e-05/0.3778, allocations: 7.922 kB / 370.2 MB, free: 10.37 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.43e-05/0.3778, allocations: 2.188 kB / 370.2 MB, free: 10.37 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.915e-05/0.3779, allocations: 7.938 kB / 370.2 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.452e-05/0.3779, allocations: 0 / 370.2 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.135e-05/0.3779, allocations: 3.938 kB / 370.2 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.986e-05/0.3781, allocations: 23.97 kB / 370.2 MB, free: 10.33 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.844e-06/0.3781, allocations: 0 / 370.2 MB, free: 10.33 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.389e-05/0.3781, allocations: 25.7 kB / 370.2 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.525e-05/0.3782, allocations: 15.97 kB / 370.2 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.3782, allocations: 4 kB / 370.3 MB, free: 10.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3782, allocations: 4 kB / 370.3 MB, free: 10.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.598e-06/0.3782, allocations: 0 / 370.3 MB, free: 10.28 MB / 298.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.000333/0.3786, allocations: 311.3 kB / 370.6 MB, free: 9.926 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.3786, allocations: 12.03 kB / 370.6 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.555e-05/0.3787, allocations: 7.938 kB / 370.6 MB, free: 9.906 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001447/0.3788, allocations: 159.1 kB / 370.7 MB, free: 9.711 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.3789, allocations: 0 / 370.7 MB, free: 9.711 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.394e-05/0.3789, allocations: 4 kB / 370.7 MB, free: 9.707 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001105/0.379, allocations: 41.69 kB / 370.8 MB, free: 9.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.379, allocations: 3.938 kB / 370.8 MB, free: 9.656 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.3791, allocations: 0 / 370.8 MB, free: 9.656 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.3791, allocations: 0 / 370.8 MB, free: 9.656 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.3e-05/0.3791, allocations: 7.953 kB / 370.8 MB, free: 9.648 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001895/0.3793, allocations: 153.7 kB / 370.9 MB, free: 9.449 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000214/0.3796, allocations: 30.58 kB / 371 MB, free: 9.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005563/0.3801, allocations: 129.1 kB / 371.1 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.173e-05/0.3802, allocations: 30.56 kB / 371.1 MB, free: 9.227 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 3.557e-06/0.3802, allocations: 4 kB / 371.1 MB, free: 9.223 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.002158/0.3824, allocations: 214.1 kB / 371.3 MB, free: 9.008 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.937e-05/0.3824, allocations: 55.41 kB / 371.4 MB, free: 8.941 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.994e-05/0.3825, allocations: 93.84 kB / 371.5 MB, free: 8.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.617e-05/0.3826, allocations: 33.77 kB / 371.5 MB, free: 8.801 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.332e-05/0.3826, allocations: 150.6 kB / 371.7 MB, free: 8.652 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.232e-05/0.3827, allocations: 19.75 kB / 371.7 MB, free: 8.633 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.985e-06/0.3827, allocations: 3.938 kB / 371.7 MB, free: 8.629 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.3829, allocations: 314.8 kB / 372 MB, free: 8.312 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001556/0.383, allocations: 27.97 kB / 372 MB, free: 8.285 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001453/0.3832, allocations: 27.98 kB / 372.1 MB, free: 8.258 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.3833, allocations: 19.98 kB / 372.1 MB, free: 8.238 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3834, allocations: 0 / 372.1 MB, free: 8.238 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003553/0.3837, allocations: 81.86 kB / 372.1 MB, free: 8.152 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.3838, allocations: 12 kB / 372.2 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.3838, allocations: 7.922 kB / 372.2 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.3838, allocations: 0 / 372.2 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002142/0.384, allocations: 15.98 kB / 372.2 MB, free: 8.117 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/0.3841, allocations: 3.938 kB / 372.2 MB, free: 8.113 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000148/0.3842, allocations: 8 kB / 372.2 MB, free: 8.105 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.522e-05/0.3842, allocations: 4 kB / 372.2 MB, free: 8.102 MB / 298.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 0.0001054/0.3844, allocations: 117.8 kB / 372.3 MB, free: 7.977 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.701e-05/0.3844, allocations: 4 kB / 372.3 MB, free: 7.973 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004348/0.3848, allocations: 89.5 kB / 372.4 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.3849, allocations: 4 kB / 372.4 MB, free: 7.879 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.3849, allocations: 7.969 kB / 372.4 MB, free: 7.871 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.149e-05/0.3849, allocations: 81.02 kB / 372.5 MB, free: 7.773 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.385, allocations: 0 / 372.5 MB, free: 7.773 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001508/0.3851, allocations: 15.95 kB / 372.5 MB, free: 7.758 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.901e-05/0.3852, allocations: 3.984 kB / 372.5 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005256/0.3857, allocations: 168.9 kB / 372.7 MB, free: 7.582 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0004361/0.3861, allocations: 262.8 kB / 372.9 MB, free: 7.309 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001607/0.3863, allocations: 27.98 kB / 373 MB, free: 7.281 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.611e-05/0.3864, allocations: 75.28 kB / 373 MB, free: 7.207 MB / 298.7 MB Notification: Performance of Backend: time 8.91e-07/0.3864, allocations: 0 / 373 MB, free: 7.207 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005041/0.3869, allocations: 124.7 kB / 373.2 MB, free: 7.082 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004715/0.3874, allocations: 0.5719 MB / 373.7 MB, free: 6.453 MB / 298.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) []