Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 106.4 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.402/1.402, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 51.92 kB / 327.8 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09566/0.09699, allocations: 46.61 MB / 374.5 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.002122/0.09916, allocations: 0.5258 MB / 375 MB, free: 4.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002612/0.1018, allocations: 1.843 MB / 376.8 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.743e-05/0.1019, allocations: 0 / 376.8 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001683/0.1036, allocations: 139.4 kB / 377 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.799e-05/0.1037, allocations: 27.91 kB / 377 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002159/0.1039, allocations: 47.92 kB / 377 MB, free: 2.004 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001285/0.104, allocations: 67.8 kB / 377.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.096e-05/0.1041, allocations: 8 kB / 377.1 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.4e-05/0.1042, allocations: 27.92 kB / 377.1 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001258/0.1043, allocations: 35.83 kB / 377.2 MB, free: 1.867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.457e-05/0.1043, allocations: 4 kB / 377.2 MB, free: 1.863 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002161/0.1046, allocations: 15.94 kB / 377.2 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.855e-05/0.1046, allocations: 15.97 kB / 377.2 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.185e-05/0.1047, allocations: 19.86 kB / 377.2 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002305/0.1049, allocations: 67.8 kB / 377.3 MB, free: 1.746 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.105, allocations: 0 / 377.3 MB, free: 1.746 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.105, allocations: 0 / 377.3 MB, free: 1.746 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.105, allocations: 0 / 377.3 MB, free: 1.746 MB / 318.1 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.0005016/0.1055, allocations: 404.8 kB / 377.7 MB, free: 1.297 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.1055, allocations: 12.03 kB / 377.7 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.979e-05/0.1056, allocations: 4.938 kB / 377.7 MB, free: 1.281 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002809/0.1059, allocations: 208.2 kB / 377.9 MB, free: 1.039 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.1059, allocations: 4.375 kB / 377.9 MB, free: 1.035 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.97e-05/0.1059, allocations: 384 / 377.9 MB, free: 1.035 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001437/0.1061, allocations: 82.23 kB / 378 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-06/0.1061, allocations: 7.938 kB / 378 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.1061, allocations: 0 / 378 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.1061, allocations: 3.984 kB / 378 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.808e-05/0.1061, allocations: 0 / 378 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003558/0.1065, allocations: 181.7 kB / 378.2 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.217e-05/0.1066, allocations: 22.58 kB / 378.2 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.204e-05/0.1066, allocations: 12.84 kB / 378.2 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.516e-06/0.1066, allocations: 0 / 378.2 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.253e-05/0.1067, allocations: 64.2 kB / 378.3 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1067, allocations: 0 / 378.3 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001445/0.1068, allocations: 41.61 kB / 378.3 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.713e-05/0.1069, allocations: 162.2 kB / 378.5 MB, free: 336 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.1071, allocations: 157.8 kB / 378.6 MB, free: 168 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.1071, allocations: 29.83 kB / 378.7 MB, free: 132 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.096e-05/0.1072, allocations: 92.14 kB / 378.8 MB, free: 36 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.129e-05/0.1072, allocations: 7.875 kB / 378.8 MB, free: 28 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1816/0.2888, allocations: 22.19 kB / 378.8 MB, free: 13.33 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.465e-05/0.2889, allocations: 316.6 kB / 379.1 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.579e-05/0.2889, allocations: 2.844 kB / 379.1 MB, free: 13.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.092e-05/0.289, allocations: 43.73 kB / 379.1 MB, free: 12.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.843e-05/0.2891, allocations: 17.91 kB / 379.2 MB, free: 12.97 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.2891, allocations: 0 / 379.2 MB, free: 12.97 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001041/0.2892, allocations: 49.61 kB / 379.2 MB, free: 12.94 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.2892, allocations: 7.547 kB / 379.2 MB, free: 12.94 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.2892, allocations: 0 / 379.2 MB, free: 12.94 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.2892, allocations: 3.812 kB / 379.2 MB, free: 12.94 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.868e-05/0.2893, allocations: 3.453 kB / 379.2 MB, free: 12.94 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.2893, allocations: 0 / 379.2 MB, free: 12.94 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.105e-05/0.2894, allocations: 3.953 kB / 379.2 MB, free: 12.94 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.26e-06/0.2894, allocations: 1.5 kB / 379.2 MB, free: 12.94 MB / 318.1 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 (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.414e-05/0.2895, allocations: 114.5 kB / 379.3 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.407e-05/0.2895, allocations: 10.58 kB / 379.3 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.71e-05/0.2896, allocations: 15.12 kB / 379.4 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.2896, allocations: 2.656 kB / 379.4 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2896, allocations: 3.938 kB / 379.4 MB, free: 12.81 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.2896, allocations: 1.344 kB / 379.4 MB, free: 12.81 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001647/0.2898, allocations: 174 kB / 379.5 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2898, allocations: 0 / 379.5 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.735e-05/0.2898, allocations: 5.266 kB / 379.5 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2898, allocations: 0 / 379.5 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.2898, allocations: 0.5938 kB / 379.5 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.2898, allocations: 4.891 kB / 379.5 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.2898, allocations: 3.938 kB / 379.6 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001082/0.2899, allocations: 76.31 kB / 379.6 MB, free: 12.56 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.481e-05/0.29, allocations: 84.5 kB / 379.7 MB, free: 12.46 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/0.29, allocations: 4.75 kB / 379.7 MB, free: 12.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.345e-05/0.2901, allocations: 3.547 kB / 379.7 MB, free: 12.46 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.32e-05/0.2901, allocations: 3.938 kB / 379.7 MB, free: 12.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.2901, allocations: 1.781 kB / 379.7 MB, free: 12.46 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.558e-05/0.2902, allocations: 120.5 kB / 379.8 MB, free: 12.39 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2902, allocations: 0 / 379.8 MB, free: 12.39 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002714/0.2905, allocations: 19.45 kB / 379.9 MB, free: 12.39 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003369/0.2909, allocations: 183.4 kB / 380 MB, free: 12.27 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 9.037e-05/0.291, allocations: 13.45 kB / 380.1 MB, free: 12.27 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.291, allocations: 3.75 kB / 380.1 MB, free: 12.27 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.118e-05/0.291, allocations: 5.812 kB / 380.1 MB, free: 12.27 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001524/0.2911, allocations: 10.38 kB / 380.1 MB, free: 12.27 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002626/0.2914, allocations: 153.4 kB / 380.2 MB, free: 12.15 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000114/0.2915, allocations: 0.6849 MB / 380.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.446e-05/0.2916, allocations: 14.86 kB / 380.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.866e-05/0.2916, allocations: 15.94 kB / 380.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2916, allocations: 0 / 380.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of Templates: time 0.004287/0.2959, allocations: 1.309 MB / 382.2 MB, free: 11.33 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile.makefile make -j1 -f Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_3_2_2_Modelica_Utilities_Examples_ReadRealMatrixFromFile -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile.c Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile.c:119:80: error: use of undeclared identifier 'A' (data->localData[0]->realVars[1] /* der(x) STATE_DER */) = ((-real_array_get(A, 2, ((modelica_integer) 1), ((modelica_integer) 1)))) * ((data->localData[0]->realVars[0] /* x STATE(1) */)); ^ Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile.c:136:39: error: use of undeclared identifier 'A3' tmp4 = LessEq(fabs(real_array_get(A3, 2, ((modelica_integer) 1), ((modelica_integer) 1)) - 11.0),1.0000000000000002e-14); ^ Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile.c:168:39: error: use of undeclared identifier 'A2' tmp7 = LessEq(fabs(real_array_get(A2, 2, ((modelica_integer) 1), ((modelica_integer) 1)) - 11.0),1.0000000000000002e-14); ^ Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile.c:200:40: error: use of undeclared identifier 'A1' tmp10 = LessEq(fabs(real_array_get(A1, 2, ((modelica_integer) 1), ((modelica_integer) 1)) - 11.0),1.0000000000000002e-14); ^ Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile.c:257:52: error: use of undeclared identifier 'A' real_array_create(&tmp19, ((modelica_real*)&(A)), 2, (_index_t)3, (_index_t)(data->simulationInfo->integerParameter[3] /* dim1[2] PARAM */)); ^ Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile.c:267:63: error: use of undeclared identifier 'A' tmp29 = modelica_real_to_modelica_string(real_array_get(A, 2, ((modelica_integer) 1), ((modelica_integer) 1)), ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ 6 errors generated. make: *** [: Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o] Error 1