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.001167/0.001167, allocations: 108.2 kB / 17.05 MB, free: 6.055 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.001133/0.001134, allocations: 195 kB / 17.99 MB, free: 5.156 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.494/1.494, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.001311/0.001311, allocations: 47.94 kB / 327.8 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1054, allocations: 46.61 MB / 374.4 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001915/0.1073, allocations: 0.5412 MB / 375 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002787/0.1102, allocations: 1.84 MB / 376.8 MB, free: 2.199 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.231e-05/0.1103, allocations: 0 / 376.8 MB, free: 2.199 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001807/0.1121, allocations: 131.5 kB / 377 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.504e-05/0.1122, allocations: 27.91 kB / 377 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002272/0.1124, allocations: 47.86 kB / 377 MB, free: 2 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001299/0.1126, allocations: 67.88 kB / 377.1 MB, free: 1.934 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.024e-05/0.1126, allocations: 8 kB / 377.1 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.336e-05/0.1127, allocations: 31.84 kB / 377.1 MB, free: 1.895 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001348/0.1128, allocations: 35.84 kB / 377.2 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.411e-05/0.1129, allocations: 0 / 377.2 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.261e-05/0.1129, allocations: 15.98 kB / 377.2 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.639e-05/0.113, allocations: 11.98 kB / 377.2 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.916e-05/0.1131, allocations: 27.75 kB / 377.2 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002567/0.1133, allocations: 71.7 kB / 377.3 MB, free: 1.734 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1134, allocations: 0 / 377.3 MB, free: 1.734 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1134, allocations: 0 / 377.3 MB, free: 1.734 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.236e-06/0.1134, allocations: 4 kB / 377.3 MB, free: 1.73 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.0005492/0.1139, allocations: 400.8 kB / 377.7 MB, free: 1.285 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.264e-05/0.114, allocations: 8.031 kB / 377.7 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.531e-05/0.1141, allocations: 8.891 kB / 377.7 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002887/0.1143, allocations: 208.3 kB / 377.9 MB, free: 1.027 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.504e-06/0.1144, allocations: 384 / 377.9 MB, free: 1.027 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.388e-05/0.1144, allocations: 384 / 377.9 MB, free: 1.027 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001497/0.1145, allocations: 78.23 kB / 378 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.1146, allocations: 0 / 378 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.1146, allocations: 3.938 kB / 378 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.7e-05/0.1146, allocations: 3.984 kB / 378 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.238e-05/0.1146, allocations: 8 kB / 378 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003526/0.115, allocations: 177.6 kB / 378.2 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.575e-05/0.115, allocations: 22.58 kB / 378.2 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.141e-05/0.1151, allocations: 16.92 kB / 378.2 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.548e-06/0.1151, allocations: 3.938 kB / 378.2 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.671e-05/0.1151, allocations: 64.19 kB / 378.3 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.483e-06/0.1152, allocations: 0 / 378.3 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001565/0.1153, allocations: 41.69 kB / 378.3 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.304e-05/0.1154, allocations: 154.2 kB / 378.5 MB, free: 332 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001622/0.1156, allocations: 153.9 kB / 378.6 MB, free: 168 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.1156, allocations: 29.7 kB / 378.6 MB, free: 132 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.793e-05/0.1157, allocations: 96.12 kB / 378.7 MB, free: 32 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.632e-05/0.1157, allocations: 11.89 kB / 378.8 MB, free: 20 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2248/0.3405, allocations: 17.72 kB / 378.8 MB, free: 13.26 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.3407, allocations: 315.9 kB / 379.1 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.915e-05/0.3407, allocations: 3.844 kB / 379.1 MB, free: 12.95 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001042/0.3409, allocations: 45.55 kB / 379.1 MB, free: 12.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.099e-05/0.3409, allocations: 17.67 kB / 379.1 MB, free: 12.9 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.3409, allocations: 0 / 379.1 MB, free: 12.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001358/0.3411, allocations: 49.58 kB / 379.2 MB, free: 12.87 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.3411, allocations: 6.203 kB / 379.2 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.3411, allocations: 0 / 379.2 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.416e-05/0.3411, allocations: 5.188 kB / 379.2 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.648e-05/0.3412, allocations: 3.312 kB / 379.2 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.3412, allocations: 4.453 kB / 379.2 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.562e-05/0.3413, allocations: 7.078 kB / 379.2 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.3413, allocations: 0 / 379.2 MB, free: 12.87 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.898e-05/0.3414, allocations: 119.1 kB / 379.3 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.212e-05/0.3415, allocations: 7.219 kB / 379.3 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.61e-05/0.3415, allocations: 14.06 kB / 379.4 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.3415, allocations: 5.391 kB / 379.4 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.824e-06/0.3415, allocations: 3.938 kB / 379.4 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3415, allocations: 0.9375 kB / 379.4 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001894/0.3417, allocations: 172.6 kB / 379.5 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3418, allocations: 2.078 kB / 379.5 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.613e-05/0.3418, allocations: 1.375 kB / 379.5 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.3418, allocations: 0.9375 kB / 379.5 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.3418, allocations: 5.062 kB / 379.5 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3418, allocations: 0.8438 kB / 379.5 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3418, allocations: 4.531 kB / 379.5 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001318/0.342, allocations: 74.33 kB / 379.6 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.812e-05/0.342, allocations: 85.8 kB / 379.7 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.253e-05/0.3421, allocations: 1.719 kB / 379.7 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.2e-05/0.3421, allocations: 8.672 kB / 379.7 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.203e-05/0.3422, allocations: 7.531 kB / 379.7 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-06/0.3422, allocations: 1.828 kB / 379.7 MB, free: 12.39 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001042/0.3423, allocations: 124.9 kB / 379.8 MB, free: 12.32 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3423, allocations: 0 / 379.8 MB, free: 12.32 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002591/0.3425, allocations: 14.62 kB / 379.9 MB, free: 12.32 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.0004922/0.343, allocations: 176.6 kB / 380 MB, free: 12.2 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001411/0.3432, allocations: 15.23 kB / 380 MB, free: 12.2 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3432, allocations: 2.875 kB / 380.1 MB, free: 12.2 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.352e-05/0.3432, allocations: 6.125 kB / 380.1 MB, free: 12.2 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001806/0.3434, allocations: 4.969 kB / 380.1 MB, free: 12.2 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002986/0.3437, allocations: 147.2 kB / 380.2 MB, free: 12.08 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001354/0.3439, allocations: 0.6853 MB / 380.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.272e-05/0.3439, allocations: 13.03 kB / 380.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.653e-05/0.3439, allocations: 15.88 kB / 380.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3439, allocations: 1.375 kB / 380.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of Templates: time 0.004941/0.3489, allocations: 1.293 MB / 382.2 MB, free: 11.26 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