Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x_zero",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine") translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x_zero",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001921/0.001921, allocations: 177.8 kB / 17.39 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.765/2.765, allocations: 205.4 MB / 223.5 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001377/0.001378, allocations: 94.34 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005275/0.0005279, allocations: 8 kB / 328.2 MB, free: 15.9 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.568/0.5686, allocations: 47.57 MB / 375.7 MB, free: 45.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine): time 0.004353/0.573, allocations: 1.907 MB / 377.6 MB, free: 43.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00189/0.575, allocations: 0.7203 MB / 378.4 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.808e-05/0.575, allocations: 1.312 kB / 378.4 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001278/0.5752, allocations: 2.781 kB / 378.4 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002353/0.5754, allocations: 1.312 kB / 378.4 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008364/0.5763, allocations: 166 kB / 378.5 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001452/0.5764, allocations: 18.19 kB / 378.6 MB, free: 43.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.712e-05/0.5765, allocations: 6.297 kB / 378.6 MB, free: 43.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.441e-05/0.5766, allocations: 16.52 kB / 378.6 MB, free: 43.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001423/0.5767, allocations: 14.23 kB / 378.6 MB, free: 43.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.088e-05/0.5768, allocations: 1.094 kB / 378.6 MB, free: 43.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003635/0.5771, allocations: 133 kB / 378.7 MB, free: 43.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.777e-05/0.5772, allocations: 1.094 kB / 378.7 MB, free: 43.17 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.537e-05/0.5772, allocations: 35.84 kB / 378.8 MB, free: 43.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002596/0.5775, allocations: 75 kB / 378.8 MB, free: 43.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.007e-05/0.5775, allocations: 1.031 kB / 378.8 MB, free: 43.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.298e-06/0.5775, allocations: 4 kB / 378.8 MB, free: 43.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.5775, allocations: 0 / 378.8 MB, free: 43.09 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0006032/0.5782, allocations: 348.2 kB / 379.2 MB, free: 42.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001086/0.5783, allocations: 13.2 kB / 379.2 MB, free: 42.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.138e-05/0.5783, allocations: 2.094 kB / 379.2 MB, free: 42.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002235/0.5786, allocations: 167.8 kB / 379.4 MB, free: 42.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.289e-05/0.5786, allocations: 1.812 kB / 379.4 MB, free: 42.51 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.538e-05/0.5786, allocations: 384 / 379.4 MB, free: 42.51 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001613/0.5788, allocations: 50.59 kB / 379.4 MB, free: 42.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.5788, allocations: 0 / 379.4 MB, free: 42.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.5788, allocations: 0.9688 kB / 379.4 MB, free: 42.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.958e-06/0.5789, allocations: 0 / 379.4 MB, free: 42.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.717e-05/0.5789, allocations: 7.094 kB / 379.4 MB, free: 42.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005812/0.5795, allocations: 403.4 kB / 379.8 MB, free: 42.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001126/0.5796, allocations: 170.2 kB / 380 MB, free: 41.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.702e-05/0.5797, allocations: 80.14 kB / 380.1 MB, free: 41.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.077e-05/0.5797, allocations: 76.34 kB / 380.1 MB, free: 41.69 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.748e-05/0.5798, allocations: 114.8 kB / 380.2 MB, free: 41.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=0): time 1.212e-06/0.5798, allocations: 0 / 380.2 MB, free: 41.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=0): time 0.0001075/0.5799, allocations: 27.83 kB / 380.3 MB, free: 41.54 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.684e-05/0.5799, allocations: 77.11 kB / 380.3 MB, free: 41.44 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.5801, allocations: 119.2 kB / 380.5 MB, free: 41.33 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.5801, allocations: 26.7 kB / 380.5 MB, free: 41.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.462e-05/0.5802, allocations: 93.97 kB / 380.6 MB, free: 41.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.486e-06/0.5802, allocations: 0 / 380.6 MB, free: 41.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-06/0.5802, allocations: 0 / 380.6 MB, free: 41.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.5804, allocations: 315.9 kB / 380.9 MB, free: 40.89 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.75e-05/0.5804, allocations: 2.125 kB / 380.9 MB, free: 40.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.068e-05/0.5804, allocations: 3.094 kB / 380.9 MB, free: 40.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.31e-05/0.5805, allocations: 24 kB / 380.9 MB, free: 40.86 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.5805, allocations: 3.938 kB / 380.9 MB, free: 40.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001611/0.5807, allocations: 34.73 kB / 380.9 MB, free: 40.83 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.549e-05/0.5807, allocations: 4.344 kB / 381 MB, free: 40.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.5807, allocations: 1.062 kB / 381 MB, free: 40.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.069e-05/0.5807, allocations: 0 / 381 MB, free: 40.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.5809, allocations: 6.406 kB / 381 MB, free: 40.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.362e-05/0.5809, allocations: 0 / 381 MB, free: 40.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.205e-05/0.5809, allocations: 4.844 kB / 381 MB, free: 40.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.815e-05/0.581, allocations: 8.953 kB / 381 MB, free: 40.81 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 (1): * Single equations (assignments): 1 * 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.0001312/0.5811, allocations: 192.4 kB / 381.2 MB, free: 40.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.941e-05/0.5812, allocations: 106 kB / 381.3 MB, free: 40.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.222e-05/0.5813, allocations: 111.1 kB / 381.4 MB, free: 40.4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.528e-05/0.5814, allocations: 184.2 kB / 381.6 MB, free: 40.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.273e-05/0.5814, allocations: 102.4 kB / 381.7 MB, free: 40.11 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.168e-05/0.5815, allocations: 191.6 kB / 381.8 MB, free: 39.89 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.643e-05/0.5816, allocations: 181.9 kB / 382 MB, free: 39.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.895e-05/0.5817, allocations: 106.2 kB / 382.1 MB, free: 39.6 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.163e-05/0.5818, allocations: 185.3 kB / 382.3 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000107/0.5819, allocations: 256.8 kB / 382.6 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001918/0.5821, allocations: 382.8 kB / 382.9 MB, free: 38.76 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.592e-05/0.5822, allocations: 106.2 kB / 383 MB, free: 38.65 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.818e-05/0.5823, allocations: 92.22 kB / 383.1 MB, free: 38.57 MB / 298.7 MB Notification: Performance of Backend: time 4.61e-07/0.5823, allocations: 1.188 kB / 383.1 MB, free: 38.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001213/0.5835, allocations: 182.3 kB / 383.3 MB, free: 38.46 MB / 298.7 MB Notification: Performance of SimCode: time 0.000686/0.5842, allocations: 0.9478 MB / 384.2 MB, free: 37.47 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for x_zero 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_zero (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for A 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: A (no alias) initial: 1.0 no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for data.A 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: data.A (no alias) initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for data.w 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: data.w (no alias) initial: no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for w 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: w (no alias) initial: 1.0 no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for x_max 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: x_max (no alias) initial: 1.7 no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for x_min 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:5: x_min (no alias) initial: -1.7 no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for y_zero 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:6: y_zero (no alias) initial: 0.5 no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for x_zero found! Error: Internal error GetVarIndexListByMapping: No Element for A found! Error: Internal error GetVarIndexListByMapping: No Element for data.A found! Error: Internal error GetVarIndexListByMapping: No Element for data.w found! Error: Internal error GetVarIndexListByMapping: No Element for w found! Error: Internal error GetVarIndexListByMapping: No Element for x_max found! Error: Internal error GetVarIndexListByMapping: No Element for x_min found! Error: Internal error GetVarIndexListByMapping: No Element for y_zero found!