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.006275/0.006275, allocations: 97.33 kB / 15.73 MB, free: 5.527 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.001213/0.001213, allocations: 187 kB / 16.67 MB, free: 5.465 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.502/1.502, allocations: 205.1 MB / 222.6 MB, free: 4.363 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.001445/0.001446, allocations: 48.55 kB / 326.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1062, allocations: 46.63 MB / 373.1 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.002212/0.1085, allocations: 0.5224 MB / 373.7 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002782/0.1113, allocations: 1.836 MB / 375.5 MB, free: 14.94 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.749e-05/0.1114, allocations: 4 kB / 375.5 MB, free: 14.94 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001733/0.1132, allocations: 139.2 kB / 375.6 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.333e-05/0.1133, allocations: 31.91 kB / 375.7 MB, free: 14.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002325/0.1135, allocations: 43.88 kB / 375.7 MB, free: 14.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001428/0.1136, allocations: 71.81 kB / 375.8 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.28e-05/0.1137, allocations: 7.984 kB / 375.8 MB, free: 14.65 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.741e-05/0.1138, allocations: 27.86 kB / 375.8 MB, free: 14.62 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.1139, allocations: 27.91 kB / 375.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.649e-05/0.1139, allocations: 4 kB / 375.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.078e-05/0.114, allocations: 19.98 kB / 375.9 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.223e-05/0.1141, allocations: 23.91 kB / 375.9 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.976e-05/0.1142, allocations: 23.81 kB / 375.9 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002408/0.1144, allocations: 63.67 kB / 376 MB, free: 14.46 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.1144, allocations: 4 kB / 376 MB, free: 14.46 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1144, allocations: 0 / 376 MB, free: 14.46 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.1145, allocations: 0 / 376 MB, free: 14.46 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.0005233/0.115, allocations: 404.8 kB / 376.4 MB, free: 14.01 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.115, allocations: 8.031 kB / 376.4 MB, free: 14 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.274e-05/0.1151, allocations: 12.89 kB / 376.4 MB, free: 13.99 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002833/0.1154, allocations: 204.3 kB / 376.6 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.743e-06/0.1154, allocations: 384 / 376.6 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.152e-05/0.1154, allocations: 4.375 kB / 376.6 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001403/0.1156, allocations: 78.23 kB / 376.7 MB, free: 13.65 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.1156, allocations: 0 / 376.7 MB, free: 13.65 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.1156, allocations: 4 kB / 376.7 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-06/0.1156, allocations: 0 / 376.7 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.369e-05/0.1156, allocations: 7.938 kB / 376.7 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003397/0.116, allocations: 181.6 kB / 376.9 MB, free: 13.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.297e-05/0.116, allocations: 18.58 kB / 376.9 MB, free: 13.38 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.858e-05/0.1161, allocations: 4.859 kB / 376.9 MB, free: 13.38 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.422e-06/0.1161, allocations: 3.938 kB / 376.9 MB, free: 13.37 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.902e-05/0.1161, allocations: 72.27 kB / 377 MB, free: 13.29 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.273e-06/0.1162, allocations: 0 / 377 MB, free: 13.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.000181/0.1163, allocations: 41.69 kB / 377 MB, free: 13.24 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.1165, allocations: 154.2 kB / 377.2 MB, free: 13.05 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001713/0.1166, allocations: 153.8 kB / 377.3 MB, free: 12.89 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.985e-05/0.1167, allocations: 25.7 kB / 377.3 MB, free: 12.86 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.766e-05/0.1167, allocations: 96.12 kB / 377.4 MB, free: 12.76 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.883e-05/0.1168, allocations: 3.953 kB / 377.4 MB, free: 12.76 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.249e-05/0.1168, allocations: 21.84 kB / 377.5 MB, free: 12.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.1169, allocations: 322.8 kB / 377.8 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.976e-05/0.117, allocations: 8 kB / 377.8 MB, free: 12.4 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.761e-05/0.117, allocations: 44.22 kB / 377.8 MB, free: 12.34 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.353e-05/0.1171, allocations: 12.86 kB / 377.8 MB, free: 12.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1171, allocations: 4.062 kB / 377.8 MB, free: 12.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.628e-05/0.1172, allocations: 57.58 kB / 377.9 MB, free: 12.26 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.1172, allocations: 4 kB / 377.9 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.1172, allocations: 0 / 377.9 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.1172, allocations: 0 / 377.9 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.154e-05/0.1172, allocations: 4 kB / 377.9 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.1173, allocations: 3.938 kB / 377.9 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.928e-05/0.1173, allocations: 8 kB / 377.9 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.601e-06/0.1174, allocations: 0 / 377.9 MB, free: 12.24 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 0.0001045/0.1175, allocations: 121.9 kB / 378 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.149e-05/0.1175, allocations: 11.89 kB / 378 MB, free: 12.1 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.528e-05/0.1175, allocations: 7.875 kB / 378.1 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.1175, allocations: 0 / 378.1 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.1175, allocations: 0 / 378.1 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1175, allocations: 4 kB / 378.1 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001969/0.1177, allocations: 169.6 kB / 378.2 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1178, allocations: 0 / 378.2 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.971e-05/0.1178, allocations: 7.938 kB / 378.2 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.1178, allocations: 0 / 378.2 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.1178, allocations: 4 kB / 378.2 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.1178, allocations: 0 / 378.2 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1178, allocations: 0 / 378.2 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001423/0.118, allocations: 77.02 kB / 378.3 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.212e-05/0.1181, allocations: 89.03 kB / 378.4 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.57e-05/0.1181, allocations: 7.922 kB / 378.4 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.195e-05/0.1182, allocations: 4 kB / 378.4 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.428e-05/0.1182, allocations: 4.094 kB / 378.4 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-06/0.1182, allocations: 4 kB / 378.4 MB, free: 11.64 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001131/0.1183, allocations: 123.8 kB / 378.5 MB, free: 11.52 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1183, allocations: 4 kB / 378.5 MB, free: 11.52 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002092/0.1185, allocations: 15.94 kB / 378.6 MB, free: 11.5 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.0003654/0.1189, allocations: 183 kB / 378.7 MB, free: 11.31 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001038/0.119, allocations: 12 kB / 378.7 MB, free: 11.3 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.119, allocations: 0 / 378.7 MB, free: 11.3 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.218e-05/0.1191, allocations: 8 kB / 378.8 MB, free: 11.29 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001559/0.1192, allocations: 11.92 kB / 378.8 MB, free: 11.28 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002697/0.1195, allocations: 153.3 kB / 378.9 MB, free: 11.11 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002253/0.1197, allocations: 0.6846 MB / 379.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.762e-05/0.1198, allocations: 7.984 kB / 379.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.484e-05/0.1198, allocations: 15.44 kB / 379.6 MB, free: 10.37 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1198, allocations: 0 / 379.6 MB, free: 10.37 MB / 318.1 MB Notification: Performance of Templates: time 0.00394/0.1238, allocations: 1.291 MB / 380.9 MB, free: 9.078 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