Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.004534/0.004534, allocations: 99.56 kB / 15.73 MB, free: 6.059 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.001114/0.001114, allocations: 192.7 kB / 16.67 MB, free: 5.969 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.598/1.598, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001179/0.001179, allocations: 49.39 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1075, allocations: 46.63 MB / 373.1 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.002027/0.1096, allocations: 0.5224 MB / 373.7 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002844/0.1125, allocations: 1.836 MB / 375.5 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.365e-05/0.1126, allocations: 0 / 375.5 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001707/0.1143, allocations: 143.2 kB / 375.6 MB, free: 14.81 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.849e-05/0.1144, allocations: 27.92 kB / 375.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002228/0.1147, allocations: 47.86 kB / 375.7 MB, free: 14.74 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001352/0.1148, allocations: 71.8 kB / 375.8 MB, free: 14.67 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.554e-05/0.1149, allocations: 8 kB / 375.8 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.747e-05/0.1149, allocations: 23.92 kB / 375.8 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001353/0.1151, allocations: 31.89 kB / 375.9 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.408e-05/0.1151, allocations: 0 / 375.9 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.889e-05/0.1152, allocations: 23.94 kB / 375.9 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.437e-05/0.1153, allocations: 19.92 kB / 375.9 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.21e-05/0.1153, allocations: 23.84 kB / 375.9 MB, free: 14.54 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002297/0.1156, allocations: 71.61 kB / 376 MB, free: 14.47 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.1156, allocations: 4 kB / 376 MB, free: 14.46 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1156, allocations: 0 / 376 MB, free: 14.46 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.1156, 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.0004801/0.1161, allocations: 392.8 kB / 376.4 MB, free: 14.03 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.1161, allocations: 12.03 kB / 376.4 MB, free: 14.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.46e-05/0.1162, allocations: 8.891 kB / 376.4 MB, free: 14.01 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002755/0.1165, allocations: 212.3 kB / 376.6 MB, free: 13.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.749e-06/0.1165, allocations: 384 / 376.6 MB, free: 13.76 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.748e-05/0.1165, allocations: 384 / 376.6 MB, free: 13.76 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000135/0.1167, allocations: 82.22 kB / 376.7 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.1167, allocations: 0 / 376.7 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.72e-05/0.1167, allocations: 4 kB / 376.7 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.1167, allocations: 4 kB / 376.7 MB, free: 13.65 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.888e-05/0.1167, allocations: 0 / 376.7 MB, free: 13.65 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003658/0.1171, allocations: 181.6 kB / 376.9 MB, free: 13.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.464e-05/0.1172, allocations: 18.52 kB / 376.9 MB, free: 13.4 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.003e-05/0.1172, allocations: 12.91 kB / 376.9 MB, free: 13.38 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.463e-05/0.1172, allocations: 0 / 376.9 MB, free: 13.38 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.391e-05/0.1173, allocations: 68.2 kB / 377 MB, free: 13.3 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1173, allocations: 0 / 377 MB, free: 13.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.000162/0.1175, allocations: 37.7 kB / 377 MB, free: 13.26 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.1176, allocations: 166.1 kB / 377.2 MB, free: 13.06 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001623/0.1178, allocations: 149.8 kB / 377.3 MB, free: 12.9 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.033e-05/0.1178, allocations: 29.7 kB / 377.3 MB, free: 12.87 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.71e-05/0.1179, allocations: 92.14 kB / 377.4 MB, free: 12.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.944e-05/0.1179, allocations: 7.891 kB / 377.4 MB, free: 12.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.421e-05/0.1179, allocations: 25.83 kB / 377.5 MB, free: 12.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.1181, allocations: 314.8 kB / 377.8 MB, free: 12.42 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.715e-05/0.1181, allocations: 4 kB / 377.8 MB, free: 12.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.518e-05/0.1182, allocations: 40.28 kB / 377.8 MB, free: 12.36 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.378e-05/0.1182, allocations: 20.84 kB / 377.8 MB, free: 12.34 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1182, allocations: 0 / 377.8 MB, free: 12.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.297e-05/0.1183, allocations: 53.59 kB / 377.9 MB, free: 12.28 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.1183, allocations: 8 kB / 377.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.1183, allocations: 0 / 377.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.1184, allocations: 0 / 377.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.119e-05/0.1184, allocations: 4 kB / 377.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.1184, allocations: 4 kB / 377.9 MB, free: 12.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.895e-05/0.1185, allocations: 7.984 kB / 377.9 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-06/0.1185, allocations: 4 kB / 377.9 MB, free: 12.25 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 8.736e-05/0.1186, allocations: 113.9 kB / 378 MB, free: 12.13 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.742e-05/0.1186, allocations: 15.83 kB / 378 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.407e-05/0.1187, allocations: 15.86 kB / 378.1 MB, free: 12.1 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.1187, allocations: 4.031 kB / 378.1 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.686e-06/0.1187, allocations: 0 / 378.1 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1187, allocations: 0 / 378.1 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001981/0.1189, allocations: 169.7 kB / 378.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1189, allocations: 0 / 378.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.893e-05/0.119, allocations: 3.938 kB / 378.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.119, allocations: 4 kB / 378.2 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.119, allocations: 0 / 378.2 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.119, allocations: 4 kB / 378.2 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.119, allocations: 0 / 378.2 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001227/0.1191, allocations: 77.02 kB / 378.3 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.196e-05/0.1192, allocations: 93.02 kB / 378.4 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.105e-05/0.1192, allocations: 0 / 378.4 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.099e-05/0.1193, allocations: 4 kB / 378.4 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.373e-05/0.1193, allocations: 0 / 378.4 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.1193, allocations: 8.094 kB / 378.4 MB, free: 11.65 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000101/0.1194, allocations: 119.9 kB / 378.5 MB, free: 11.54 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.683e-06/0.1194, allocations: 0 / 378.5 MB, free: 11.54 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002135/0.1197, allocations: 27.88 kB / 378.6 MB, free: 11.51 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.000405/0.1201, allocations: 175 kB / 378.7 MB, free: 11.33 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 9.785e-05/0.1202, allocations: 15.92 kB / 378.7 MB, free: 11.31 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1202, allocations: 0 / 378.7 MB, free: 11.31 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.069e-05/0.1202, allocations: 8 kB / 378.8 MB, free: 11.3 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000153/0.1204, allocations: 4 kB / 378.8 MB, free: 11.3 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002946/0.1207, allocations: 153.4 kB / 378.9 MB, free: 11.12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003182/0.121, allocations: 0.6846 MB / 379.6 MB, free: 10.41 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.686e-05/0.121, allocations: 8 kB / 379.6 MB, free: 10.41 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.086e-05/0.1211, allocations: 15.44 kB / 379.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1211, allocations: 0 / 379.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of Templates: time 0.004049/0.1251, allocations: 1.295 MB / 380.9 MB, free: 9.094 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile.makefile make -j1 -f Modelica_3.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_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.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o Modelica_3.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile.c Modelica_3.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.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.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.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.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.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.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o] Error 1