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.001453/0.001453, allocations: 116.3 kB / 17.07 MB, free: 5.973 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.001793/0.001793, allocations: 198.8 kB / 18.01 MB, free: 5.055 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.623/1.623, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.001245/0.001245, allocations: 55.92 kB / 327.8 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1058, allocations: 46.62 MB / 374.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001559/0.1074, allocations: 0.5218 MB / 375 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002367/0.1098, allocations: 1.836 MB / 376.8 MB, free: 2.199 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.23e-05/0.1098, allocations: 7.938 kB / 376.8 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001569/0.1114, allocations: 139.4 kB / 377 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.396e-05/0.1115, allocations: 19.97 kB / 377 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002465/0.1117, allocations: 51.86 kB / 377 MB, free: 1.988 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001466/0.1119, allocations: 71.81 kB / 377.1 MB, free: 1.918 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.553e-05/0.1119, allocations: 4 kB / 377.1 MB, free: 1.914 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.261e-05/0.112, allocations: 27.91 kB / 377.1 MB, free: 1.887 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001266/0.1121, allocations: 31.84 kB / 377.2 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.264e-05/0.1122, allocations: 4 kB / 377.2 MB, free: 1.852 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.352e-05/0.1123, allocations: 15.98 kB / 377.2 MB, free: 1.836 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.869e-05/0.1124, allocations: 19.92 kB / 377.2 MB, free: 1.816 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.003e-05/0.1124, allocations: 23.86 kB / 377.2 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001988/0.1126, allocations: 71.72 kB / 377.3 MB, free: 1.723 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1127, allocations: 0 / 377.3 MB, free: 1.723 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1127, allocations: 0 / 377.3 MB, free: 1.723 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.1127, allocations: 4 kB / 377.3 MB, free: 1.719 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.0004161/0.1131, allocations: 396.9 kB / 377.7 MB, free: 1.277 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.1131, allocations: 8.031 kB / 377.7 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.33e-05/0.1132, allocations: 12.92 kB / 377.7 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002163/0.1134, allocations: 204.2 kB / 377.9 MB, free: 1.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.466e-06/0.1134, allocations: 384 / 377.9 MB, free: 1.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.046e-05/0.1135, allocations: 8.375 kB / 377.9 MB, free: 1.012 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001269/0.1136, allocations: 82.22 kB / 378 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.1136, allocations: 0 / 378 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.1136, allocations: 0 / 378 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.1136, allocations: 3.938 kB / 378 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.106e-05/0.1137, allocations: 4 kB / 378 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002959/0.114, allocations: 177.7 kB / 378.2 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.698e-05/0.114, allocations: 26.52 kB / 378.2 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.785e-05/0.114, allocations: 8.844 kB / 378.2 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.922e-06/0.1141, allocations: 0 / 378.2 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.185e-05/0.1141, allocations: 68.27 kB / 378.3 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 7.72e-07/0.1141, allocations: 0 / 378.3 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.000145/0.1143, allocations: 41.61 kB / 378.3 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.869e-05/0.1143, allocations: 158.2 kB / 378.5 MB, free: 320 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.1145, allocations: 153.9 kB / 378.6 MB, free: 156 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.597e-05/0.1145, allocations: 29.7 kB / 378.7 MB, free: 120 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.861e-05/0.1146, allocations: 92.14 kB / 378.7 MB, free: 24 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.756e-05/0.1146, allocations: 3.938 kB / 378.8 MB, free: 20 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2268/0.3414, allocations: 30.31 kB / 378.8 MB, free: 13.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.236e-05/0.3415, allocations: 315.2 kB / 379.1 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.344e-05/0.3416, allocations: 2.531 kB / 379.1 MB, free: 12.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.035e-05/0.3416, allocations: 42.62 kB / 379.1 MB, free: 12.89 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.009e-05/0.3417, allocations: 18.84 kB / 379.2 MB, free: 12.89 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.3417, allocations: 0 / 379.2 MB, free: 12.89 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001113/0.3418, allocations: 45.81 kB / 379.2 MB, free: 12.86 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.3418, allocations: 5.25 kB / 379.2 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.3418, allocations: 2.031 kB / 379.2 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.3419, allocations: 1.781 kB / 379.2 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.766e-05/0.3419, allocations: 6.344 kB / 379.2 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.3419, allocations: 2.125 kB / 379.2 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.066e-05/0.342, allocations: 3.75 kB / 379.2 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.08e-06/0.342, allocations: 1.375 kB / 379.2 MB, free: 12.86 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 7.736e-05/0.3421, allocations: 119.8 kB / 379.3 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.165e-05/0.3421, allocations: 9.625 kB / 379.3 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.521e-05/0.3422, allocations: 11.83 kB / 379.4 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.3422, allocations: 1.469 kB / 379.4 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.3422, allocations: 7.75 kB / 379.4 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.3422, allocations: 0.6562 kB / 379.4 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001653/0.3424, allocations: 172.3 kB / 379.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3424, allocations: 2.625 kB / 379.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.578e-05/0.3424, allocations: 4.391 kB / 379.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.3424, allocations: 0 / 379.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.3424, allocations: 1.781 kB / 379.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.3424, allocations: 1.625 kB / 379.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3424, allocations: 3.938 kB / 379.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001199/0.3426, allocations: 77.11 kB / 379.6 MB, free: 12.48 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.574e-05/0.3426, allocations: 83.84 kB / 379.7 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.974e-05/0.3427, allocations: 1.469 kB / 379.7 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.294e-05/0.3427, allocations: 6.172 kB / 379.7 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.224e-05/0.3427, allocations: 9.016 kB / 379.7 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.457e-06/0.3427, allocations: 3.359 kB / 379.7 MB, free: 12.38 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.863e-05/0.3428, allocations: 126.5 kB / 379.8 MB, free: 12.3 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3428, allocations: 0 / 379.8 MB, free: 12.3 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002626/0.3431, allocations: 14.75 kB / 379.9 MB, free: 12.3 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.0003129/0.3434, allocations: 170.5 kB / 380 MB, free: 12.2 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 9.662e-05/0.3435, allocations: 24.08 kB / 380.1 MB, free: 12.2 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3435, allocations: 1.375 kB / 380.1 MB, free: 12.2 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.937e-06/0.3436, allocations: 2.75 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.0001622/0.3437, allocations: 11.83 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.0002713/0.344, allocations: 147.9 kB / 380.2 MB, free: 12.07 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001318/0.3441, allocations: 0.6852 MB / 380.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.725e-05/0.3442, allocations: 20.38 kB / 380.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.383e-05/0.3442, allocations: 14.72 kB / 380.9 MB, free: 11.37 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3443, allocations: 1.375 kB / 380.9 MB, free: 11.37 MB / 318.1 MB Notification: Performance of Templates: time 0.004461/0.3487, allocations: 1.287 MB / 382.2 MB, free: 11.25 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