Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001123/0.001123, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001265/0.001265, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001198, allocations: 54.3 kB / 308.3 MB, free: 15.95 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1014, allocations: 50.55 MB / 358.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.002083/0.1035, allocations: 0.5029 MB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002397/0.1059, allocations: 1.852 MB / 361.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.37e-05/0.106, allocations: 3.938 kB / 361.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003736/0.1097, allocations: 152.8 kB / 361.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.792e-05/0.1098, allocations: 23.97 kB / 361.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002138/0.11, allocations: 51.88 kB / 361.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001168/0.1102, allocations: 71.8 kB / 361.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.666e-05/0.1102, allocations: 0 / 361.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.772e-05/0.1103, allocations: 31.86 kB / 361.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.757e-05/0.1104, allocations: 27.91 kB / 361.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.782e-05/0.1104, allocations: 0 / 361.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.236e-05/0.1104, allocations: 11.98 kB / 361.6 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.99e-05/0.1105, allocations: 15.92 kB / 361.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.982e-05/0.1106, allocations: 27.86 kB / 361.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001793/0.1108, allocations: 59.8 kB / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1108, allocations: 3.938 kB / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1108, allocations: 0 / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.1108, allocations: 0 / 361.7 MB, free: 10.57 MB / 302.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.0004401/0.1112, allocations: 396.9 kB / 362.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.1113, allocations: 12.02 kB / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.447e-05/0.1113, allocations: 12.84 kB / 362.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000272/0.1116, allocations: 204.2 kB / 362.3 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.909e-06/0.1116, allocations: 12.31 kB / 362.3 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.17e-05/0.1116, allocations: 4.281 kB / 362.3 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001314/0.1118, allocations: 78.23 kB / 362.4 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.1118, allocations: 3.984 kB / 362.4 MB, free: 9.746 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.1118, allocations: 0 / 362.4 MB, free: 9.746 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.1118, allocations: 0 / 362.4 MB, free: 9.746 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.858e-05/0.1119, allocations: 8 kB / 362.4 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003232/0.1122, allocations: 173.7 kB / 362.6 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.754e-05/0.1122, allocations: 26.56 kB / 362.6 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.423e-05/0.1123, allocations: 8.797 kB / 362.6 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.165e-05/0.1123, allocations: 4.062 kB / 362.6 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.364e-05/0.1123, allocations: 64.19 kB / 362.7 MB, free: 9.391 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.1123, allocations: 7.938 kB / 362.7 MB, free: 9.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.000138/0.1125, allocations: 45.69 kB / 362.8 MB, free: 9.332 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.509e-05/0.1126, allocations: 154.2 kB / 362.9 MB, free: 9.145 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001454/0.1127, allocations: 156.5 kB / 363.1 MB, free: 8.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.1128, allocations: 25.7 kB / 363.1 MB, free: 8.949 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.368e-05/0.1128, allocations: 92.14 kB / 363.2 MB, free: 8.855 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.871e-05/0.1128, allocations: 7.906 kB / 363.2 MB, free: 8.848 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.825e-05/0.1129, allocations: 21.7 kB / 363.2 MB, free: 8.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.113, allocations: 327 kB / 363.5 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.235e-05/0.113, allocations: 0 / 363.5 MB, free: 8.492 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.674e-05/0.1131, allocations: 44.22 kB / 363.6 MB, free: 8.434 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.072e-05/0.1131, allocations: 16.86 kB / 363.6 MB, free: 8.414 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1131, allocations: 0 / 363.6 MB, free: 8.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.572e-05/0.1132, allocations: 41.7 kB / 363.6 MB, free: 8.367 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.1132, allocations: 15.94 kB / 363.6 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.1132, allocations: 3.984 kB / 363.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.1132, allocations: 0 / 363.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.676e-05/0.1133, allocations: 4 kB / 363.6 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.1133, allocations: 4 kB / 363.7 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.109e-05/0.1133, allocations: 3.938 kB / 363.7 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.849e-06/0.1134, allocations: 0 / 363.7 MB, free: 8.336 MB / 302.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 8.418e-05/0.1134, allocations: 117.8 kB / 363.8 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.177e-05/0.1135, allocations: 19.77 kB / 363.8 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.572e-05/0.1135, allocations: 19.83 kB / 363.8 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.1135, allocations: 0 / 363.8 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1135, allocations: 0 / 363.8 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.1135, allocations: 0 / 363.8 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001758/0.1137, allocations: 169.7 kB / 364 MB, free: 7.953 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1137, allocations: 0 / 364 MB, free: 7.953 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.767e-05/0.1137, allocations: 7.984 kB / 364 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.1138, allocations: 7.875 kB / 364 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.1138, allocations: 0 / 364 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.1138, allocations: 4 kB / 364 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1138, allocations: 7.938 kB / 364 MB, free: 7.926 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000119/0.1139, allocations: 73.03 kB / 364.1 MB, free: 7.836 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.492e-05/0.114, allocations: 85.08 kB / 364.2 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.933e-05/0.114, allocations: 0 / 364.2 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.244e-05/0.1141, allocations: 11.98 kB / 364.2 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.174e-05/0.1141, allocations: 0 / 364.2 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-06/0.1141, allocations: 0 / 364.2 MB, free: 7.723 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.438e-05/0.1142, allocations: 134.4 kB / 364.3 MB, free: 7.594 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1142, allocations: 0 / 364.3 MB, free: 7.594 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002071/0.1144, allocations: 16 kB / 364.3 MB, free: 7.578 MB / 302.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.0002922/0.1147, allocations: 148.7 kB / 364.5 MB, free: 7.445 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 8.738e-05/0.1148, allocations: 8 kB / 364.5 MB, free: 7.438 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1148, allocations: 0 / 364.5 MB, free: 7.438 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.097e-05/0.1148, allocations: 4 kB / 364.5 MB, free: 7.434 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001498/0.115, allocations: 8 kB / 364.5 MB, free: 7.426 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000262/0.1153, allocations: 145.4 kB / 364.6 MB, free: 7.258 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002603/0.1155, allocations: 0.6925 MB / 365.3 MB, free: 6.539 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.541e-05/0.1156, allocations: 7.938 kB / 365.3 MB, free: 6.531 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.872e-05/0.1156, allocations: 19.42 kB / 365.3 MB, free: 6.512 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1156, allocations: 3.938 kB / 365.3 MB, free: 6.508 MB / 302.1 MB Notification: Performance of Templates: time 0.00342/0.119, allocations: 1.196 MB / 366.5 MB, free: 5.34 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.makefile make -j1 -f Modelica_trunk_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/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Resources/C-Sources" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_trunk_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_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.c Modelica_trunk_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_trunk_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),2.220446049250313e-15); ^ Modelica_trunk_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),2.220446049250313e-15); ^ Modelica_trunk_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),2.220446049250313e-15); ^ Modelica_trunk_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[1] /* dim[2] PARAM */)); ^ Modelica_trunk_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_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o] Error 1