Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|yRegStep|yRegStep_der",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|yRegStep|yRegStep_der",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001085/0.001085, allocations: 196.3 kB / 16.76 MB, free: 5.047 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 226.5 MB / 244.1 MB, free: 8.105 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007818/0.0007818, allocations: 92.59 kB / 296.1 MB, free: 6.871 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3216/0.3216, allocations: 44.81 MB / 392.9 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002536/0.0002536, allocations: 8 kB / 465.9 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2735, allocations: 62.95 MB / 0.5165 GB, free: 37.06 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegStep): time 0.0005574/0.2741, allocations: 235.1 kB / 0.5167 GB, free: 36.9 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.000271/0.2744, allocations: 89.19 kB / 0.5168 GB, free: 36.85 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.63e-05/0.2744, allocations: 0 / 0.5168 GB, free: 36.85 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.297e-06/0.2744, allocations: 3.938 kB / 0.5168 GB, free: 36.84 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001922/0.2746, allocations: 11.16 kB / 0.5168 GB, free: 36.84 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.519e-05/0.2747, allocations: 0 / 0.5168 GB, free: 36.84 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.292e-05/0.2747, allocations: 15.02 kB / 0.5168 GB, free: 36.83 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.643e-05/0.2748, allocations: 0 / 0.5168 GB, free: 36.83 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.579e-05/0.2748, allocations: 6.328 kB / 0.5168 GB, free: 36.83 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.213e-05/0.2748, allocations: 0 / 0.5168 GB, free: 36.83 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.054e-05/0.2748, allocations: 6.938 kB / 0.5169 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.261e-05/0.2749, allocations: 20.88 kB / 0.5169 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.125e-06/0.2749, allocations: 0 / 0.5169 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.585e-05/0.275, allocations: 29.64 kB / 0.5169 GB, free: 36.79 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 5.865e-05/0.275, allocations: 15.95 kB / 0.5169 GB, free: 36.78 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.275, allocations: 2.344 kB / 0.5169 GB, free: 36.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2751, allocations: 0 / 0.5169 GB, free: 36.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.2751, allocations: 0 / 0.5169 GB, free: 36.78 MB / 378.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.0002299/0.2753, allocations: 317.6 kB / 0.5172 GB, free: 36.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.2753, allocations: 9.25 kB / 0.5172 GB, free: 36.42 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.551e-05/0.2754, allocations: 4.938 kB / 0.5172 GB, free: 36.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.518e-05/0.2755, allocations: 163 kB / 0.5174 GB, free: 36.22 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.2755, allocations: 4.359 kB / 0.5174 GB, free: 36.22 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.766e-05/0.2755, allocations: 4.312 kB / 0.5174 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.178e-05/0.2756, allocations: 42.73 kB / 0.5174 GB, free: 36.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.2756, allocations: 192 / 0.5174 GB, free: 36.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.955e-06/0.2756, allocations: 3.938 kB / 0.5174 GB, free: 36.17 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.2756, allocations: 2.594 kB / 0.5174 GB, free: 36.17 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.178e-05/0.2757, allocations: 5.719 kB / 0.5174 GB, free: 36.17 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001141/0.2758, allocations: 152.2 kB / 0.5176 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001722/0.276, allocations: 37.09 kB / 0.5176 GB, free: 35.95 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.409e-05/0.276, allocations: 11.34 kB / 0.5176 GB, free: 35.94 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000336/0.2763, allocations: 128 kB / 0.5178 GB, free: 35.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.634e-05/0.2764, allocations: 42.5 kB / 0.5178 GB, free: 35.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.2764, allocations: 3.938 kB / 0.5178 GB, free: 35.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.001243/0.2776, allocations: 222.5 kB / 0.518 GB, free: 35.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.647e-05/0.2777, allocations: 55.41 kB / 0.5181 GB, free: 35.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.572e-05/0.2777, allocations: 89.86 kB / 0.5182 GB, free: 35.56 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.298e-06/0.2777, allocations: 28.77 kB / 0.5182 GB, free: 35.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.08e-05/0.2777, allocations: 80.14 kB / 0.5183 GB, free: 35.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.367e-05/0.2778, allocations: 22.19 kB / 0.5183 GB, free: 35.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.76e-06/0.2778, allocations: 128 / 0.5183 GB, free: 35.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.416e-05/0.2778, allocations: 314.8 kB / 0.5186 GB, free: 35.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.637e-05/0.2779, allocations: 21.52 kB / 0.5186 GB, free: 35.11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.006e-05/0.278, allocations: 26.38 kB / 0.5186 GB, free: 35.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001435/0.2781, allocations: 52.58 kB / 0.5187 GB, free: 35.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.71e-07/0.2781, allocations: 0 / 0.5187 GB, free: 35.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000195/0.2783, allocations: 89.03 kB / 0.5188 GB, free: 35.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.2784, allocations: 9.906 kB / 0.5188 GB, free: 35.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.2784, allocations: 3.062 kB / 0.5188 GB, free: 35.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.2784, allocations: 4 kB / 0.5188 GB, free: 35.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.2785, allocations: 14.77 kB / 0.5188 GB, free: 35.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.2785, allocations: 0 / 0.5188 GB, free: 35.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.525e-05/0.2786, allocations: 8.562 kB / 0.5188 GB, free: 35.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.2786, allocations: 2.75 kB / 0.5188 GB, free: 35.04 MB / 378.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 5.732e-05/0.2787, allocations: 112.8 kB / 0.5189 GB, free: 34.92 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.037e-05/0.2787, allocations: 3.938 kB / 0.5189 GB, free: 34.92 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002557/0.279, allocations: 106.4 kB / 0.519 GB, free: 34.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.279, allocations: 0 / 0.519 GB, free: 34.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.279, allocations: 0 / 0.519 GB, free: 34.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.139e-05/0.279, allocations: 81.11 kB / 0.5191 GB, free: 34.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.555e-05/0.2791, allocations: 2.969 kB / 0.5191 GB, free: 34.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.757e-05/0.2791, allocations: 9.844 kB / 0.5191 GB, free: 34.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.801e-05/0.2792, allocations: 0 / 0.5191 GB, free: 34.77 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002799/0.2795, allocations: 179.9 kB / 0.5193 GB, free: 34.64 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.000222/0.2797, allocations: 263.2 kB / 0.5195 GB, free: 34.41 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.158e-05/0.2798, allocations: 29.02 kB / 0.5196 GB, free: 34.41 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.827e-05/0.2798, allocations: 75.28 kB / 0.5196 GB, free: 34.33 MB / 378.7 MB Notification: Performance of Backend: time 3.5e-07/0.2798, allocations: 2.969 kB / 0.5196 GB, free: 34.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004228/0.2802, allocations: 112.6 kB / 0.5197 GB, free: 34.26 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002853/0.2805, allocations: 0.5663 MB / 0.5203 GB, free: 33.65 MB / 378.7 MB Error: Internal error GetVarIndexListByMapping: No Element for $DER.x found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: x_small (no alias) initial: 0.5 no arrCref index:(6) [] 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!