Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.008657/0.008657, allocations: 100.6 kB / 15.73 MB, free: 6.039 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.00169/0.00169, allocations: 201.7 kB / 16.68 MB, free: 5.965 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.604/1.604, allocations: 205.1 MB / 222.5 MB, free: 4.504 MB / 174.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.001195/0.001195, allocations: 49.83 kB / 326.5 MB, free: 14.61 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1037, allocations: 46.62 MB / 373.1 MB, free: 1.477 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001529/0.1053, allocations: 0.5301 MB / 373.7 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00239/0.1077, allocations: 1.836 MB / 375.5 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.41e-05/0.1078, allocations: 0 / 375.5 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001353/0.1092, allocations: 135.3 kB / 375.6 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.493e-05/0.1092, allocations: 31.84 kB / 375.7 MB, free: 14.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001906/0.1094, allocations: 51.86 kB / 375.7 MB, free: 14.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001156/0.1095, allocations: 71.81 kB / 375.8 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.129e-05/0.1096, allocations: 4 kB / 375.8 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.309e-05/0.1097, allocations: 31.84 kB / 375.8 MB, free: 14.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001148/0.1098, allocations: 35.89 kB / 375.9 MB, free: 14.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.062e-05/0.1098, allocations: 0 / 375.9 MB, free: 14.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.052e-05/0.1099, allocations: 16 kB / 375.9 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.058e-05/0.11, allocations: 19.92 kB / 375.9 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.247e-05/0.11, allocations: 19.86 kB / 375.9 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002249/0.1103, allocations: 71.66 kB / 376 MB, free: 14.61 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.1103, allocations: 3.938 kB / 376 MB, free: 14.6 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1103, allocations: 0 / 376 MB, free: 14.6 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.1103, allocations: 4 kB / 376 MB, free: 14.6 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.000558/0.1109, allocations: 396.8 kB / 376.4 MB, free: 14.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.1109, allocations: 8.031 kB / 376.4 MB, free: 14.15 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.457e-05/0.1109, allocations: 8.891 kB / 376.4 MB, free: 14.14 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002778/0.1112, allocations: 212.3 kB / 376.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.357e-06/0.1112, allocations: 384 / 376.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.641e-05/0.1113, allocations: 384 / 376.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001382/0.1114, allocations: 78.23 kB / 376.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.884e-06/0.1114, allocations: 0 / 376.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.1114, allocations: 3.984 kB / 376.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.1115, allocations: 4 kB / 376.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.02e-05/0.1115, allocations: 4 kB / 376.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003468/0.1118, allocations: 177.6 kB / 376.9 MB, free: 13.56 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.507e-05/0.1119, allocations: 18.58 kB / 376.9 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.705e-05/0.1119, allocations: 12.91 kB / 376.9 MB, free: 13.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.476e-06/0.1119, allocations: 0 / 376.9 MB, free: 13.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.618e-05/0.112, allocations: 64.2 kB / 377 MB, free: 13.44 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.433e-06/0.112, allocations: 7.938 kB / 377 MB, free: 13.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001445/0.1122, allocations: 37.7 kB / 377 MB, free: 13.39 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.129e-05/0.1123, allocations: 158.2 kB / 377.2 MB, free: 13.2 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.1124, allocations: 153.8 kB / 377.3 MB, free: 13.04 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.613e-05/0.1124, allocations: 25.7 kB / 377.3 MB, free: 13.01 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.712e-05/0.1125, allocations: 92.14 kB / 377.4 MB, free: 12.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.105e-05/0.1125, allocations: 7.953 kB / 377.4 MB, free: 12.91 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.897e-05/0.1126, allocations: 21.7 kB / 377.5 MB, free: 12.88 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.1127, allocations: 318.9 kB / 377.8 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.436e-05/0.1127, allocations: 8 kB / 377.8 MB, free: 12.55 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.681e-05/0.1128, allocations: 44.22 kB / 377.8 MB, free: 12.49 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.076e-05/0.1128, allocations: 20.84 kB / 377.8 MB, free: 12.47 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1128, allocations: 3.938 kB / 377.8 MB, free: 12.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.825e-05/0.1129, allocations: 49.66 kB / 377.9 MB, free: 12.41 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.1129, allocations: 4 kB / 377.9 MB, free: 12.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1129, allocations: 4 kB / 377.9 MB, free: 12.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.113, allocations: 0 / 377.9 MB, free: 12.4 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.592e-05/0.113, allocations: 0 / 377.9 MB, free: 12.4 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.113, allocations: 0 / 377.9 MB, free: 12.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.776e-05/0.1131, allocations: 11.98 kB / 377.9 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-06/0.1131, allocations: 4.047 kB / 377.9 MB, free: 12.39 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 9.632e-05/0.1132, allocations: 117.8 kB / 378 MB, free: 12.26 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.404e-05/0.1132, allocations: 23.84 kB / 378.1 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.584e-05/0.1133, allocations: 15.86 kB / 378.1 MB, free: 12.22 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.1133, allocations: 0 / 378.1 MB, free: 12.22 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1133, allocations: 0 / 378.1 MB, free: 12.22 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.1133, allocations: 0 / 378.1 MB, free: 12.22 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001775/0.1135, allocations: 169.7 kB / 378.2 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1135, allocations: 0 / 378.2 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.762e-05/0.1135, allocations: 3.938 kB / 378.2 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.482e-06/0.1135, allocations: 0 / 378.2 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.1135, allocations: 0 / 378.2 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1135, allocations: 4 kB / 378.2 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.1135, allocations: 4 kB / 378.2 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001122/0.1137, allocations: 69.08 kB / 378.3 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.962e-05/0.1137, allocations: 93.02 kB / 378.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.922e-05/0.1138, allocations: 4 kB / 378.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.846e-05/0.1138, allocations: 0 / 378.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.475e-05/0.1138, allocations: 4 kB / 378.4 MB, free: 11.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.017e-06/0.1139, allocations: 96 / 378.4 MB, free: 11.79 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.148e-05/0.114, allocations: 135.7 kB / 378.5 MB, free: 11.66 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.114, allocations: 0 / 378.5 MB, free: 11.66 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002117/0.1142, allocations: 23.94 kB / 378.6 MB, free: 11.64 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.0003602/0.1145, allocations: 175 kB / 378.7 MB, free: 11.46 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001002/0.1147, allocations: 11.98 kB / 378.7 MB, free: 11.45 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.1147, allocations: 0 / 378.7 MB, free: 11.45 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.083e-05/0.1147, allocations: 4 kB / 378.8 MB, free: 11.44 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001523/0.1148, allocations: 8 kB / 378.8 MB, free: 11.43 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002714/0.1151, allocations: 153.4 kB / 378.9 MB, free: 11.26 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002421/0.1154, allocations: 0.6846 MB / 379.6 MB, free: 10.55 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.751e-05/0.1154, allocations: 8 kB / 379.6 MB, free: 10.54 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.717e-05/0.1154, allocations: 11.44 kB / 379.6 MB, free: 10.53 MB / 318.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1155, allocations: 7.875 kB / 379.6 MB, free: 10.52 MB / 318.1 MB Notification: Performance of Templates: time 0.003746/0.1192, allocations: 1.287 MB / 380.9 MB, free: 9.23 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile.makefile make -j1 -f Modelica_3.2.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -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_1_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.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o Modelica_3.2.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile.c Modelica_3.2.1_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.1_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.1_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.1_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.1_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.1_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.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o] Error 1