Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_3.2.3_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.001858/0.001859, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.002137/0.002138, allocations: 183 kB / 18.66 MB, free: 4.414 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.524/1.524, allocations: 205.1 MB / 224.5 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.001167/0.001167, allocations: 47.92 kB / 328.5 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08073/0.08191, allocations: 46.61 MB / 375.1 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.00142/0.08336, allocations: 0.5374 MB / 375.6 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002071/0.08544, allocations: 1.84 MB / 377.5 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.689e-05/0.08549, allocations: 0 / 377.5 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001743/0.08726, allocations: 135.3 kB / 377.6 MB, free: 2.082 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.884e-05/0.08733, allocations: 23.97 kB / 377.6 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001893/0.08753, allocations: 51.86 kB / 377.7 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001096/0.08764, allocations: 67.81 kB / 377.8 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.231e-05/0.08768, allocations: 4 kB / 377.8 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.996e-05/0.08775, allocations: 31.91 kB / 377.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.08786, allocations: 35.83 kB / 377.8 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.208e-05/0.08789, allocations: 4 kB / 377.8 MB, free: 1.867 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.465e-05/0.08795, allocations: 19.94 kB / 377.9 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.401e-05/0.08801, allocations: 11.92 kB / 377.9 MB, free: 1.836 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.555e-05/0.08806, allocations: 27.84 kB / 377.9 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000177/0.08825, allocations: 63.8 kB / 378 MB, free: 1.746 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.08826, allocations: 0 / 378 MB, free: 1.746 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.08827, allocations: 0 / 378 MB, free: 1.746 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.08828, allocations: 0 / 378 MB, free: 1.746 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.0003981/0.08868, allocations: 404.9 kB / 378.4 MB, free: 1.297 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.08872, allocations: 8.031 kB / 378.4 MB, free: 1.289 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.978e-05/0.08877, allocations: 4.938 kB / 378.4 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004061/0.08918, allocations: 324 kB / 378.7 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.466e-06/0.0892, allocations: 384 / 378.7 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.06e-05/0.08923, allocations: 384 / 378.7 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001373/0.08937, allocations: 86.17 kB / 378.8 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.473e-06/0.08938, allocations: 0 / 378.8 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.503e-05/0.0894, allocations: 4 kB / 378.8 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.08941, allocations: 0 / 378.8 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.396e-05/0.08943, allocations: 0 / 378.8 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002793/0.08971, allocations: 177.7 kB / 378.9 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.128e-05/0.08977, allocations: 18.58 kB / 379 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.729e-05/0.08979, allocations: 16.91 kB / 379 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.613e-06/0.0898, allocations: 3.938 kB / 379 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.521e-05/0.08984, allocations: 64.19 kB / 379 MB, free: 480 kB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.08985, allocations: 0 / 379 MB, free: 480 kB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001257/0.08998, allocations: 45.61 kB / 379.1 MB, free: 428 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.705e-05/0.09006, allocations: 158.2 kB / 379.2 MB, free: 232 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001343/0.0902, allocations: 149.8 kB / 379.4 MB, free: 72 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.09022, allocations: 33.83 kB / 379.4 MB, free: 32 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2045/0.2947, allocations: 87.17 kB / 379.5 MB, free: 13.28 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.301e-05/0.2948, allocations: 5.125 kB / 379.5 MB, free: 13.28 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.243e-05/0.2949, allocations: 21.22 kB / 379.5 MB, free: 13.26 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.075e-05/0.295, allocations: 318.6 kB / 379.8 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.239e-05/0.295, allocations: 3.766 kB / 379.8 MB, free: 12.95 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.41e-05/0.2951, allocations: 45.47 kB / 379.9 MB, free: 12.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.532e-05/0.2951, allocations: 15.53 kB / 379.9 MB, free: 12.9 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2951, allocations: 0 / 379.9 MB, free: 12.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001309/0.2953, allocations: 52.5 kB / 380 MB, free: 12.87 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.2953, allocations: 5.812 kB / 380 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.2953, allocations: 0 / 380 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.234e-05/0.2953, allocations: 5.797 kB / 380 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.776e-05/0.2954, allocations: 6.406 kB / 380 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.2954, allocations: 0.8906 kB / 380 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/0.2955, allocations: 7.547 kB / 380 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.996e-06/0.2956, allocations: 0.9688 kB / 380 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 0.0001247/0.2957, allocations: 116.1 kB / 380.1 MB, free: 12.76 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.872e-05/0.2957, allocations: 8.062 kB / 380.1 MB, free: 12.76 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.831e-05/0.2958, allocations: 10.97 kB / 380.1 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.2958, allocations: 9.984 kB / 380.1 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.2958, allocations: 0.875 kB / 380.1 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.2958, allocations: 1.203 kB / 380.1 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002169/0.296, allocations: 171.1 kB / 380.3 MB, free: 12.56 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.296, allocations: 0.9375 kB / 380.3 MB, free: 12.56 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.586e-05/0.2961, allocations: 2.156 kB / 380.3 MB, free: 12.56 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.2961, allocations: 1.281 kB / 380.3 MB, free: 12.56 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.2961, allocations: 3.219 kB / 380.3 MB, free: 12.56 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.746e-06/0.2961, allocations: 3.938 kB / 380.3 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2961, allocations: 4.25 kB / 380.3 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001467/0.2963, allocations: 78.47 kB / 380.4 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.396e-05/0.2963, allocations: 87.59 kB / 380.5 MB, free: 12.4 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.657e-05/0.2964, allocations: 1.156 kB / 380.5 MB, free: 12.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.478e-05/0.2964, allocations: 11.86 kB / 380.5 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.006e-05/0.2965, allocations: 1.125 kB / 380.5 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-06/0.2965, allocations: 0 / 380.5 MB, free: 12.39 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.211e-05/0.2966, allocations: 125.4 kB / 380.6 MB, free: 12.32 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2966, allocations: 0 / 380.6 MB, free: 12.32 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002441/0.2968, allocations: 16.38 kB / 380.6 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.0003571/0.2972, allocations: 176.8 kB / 380.8 MB, free: 12.21 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001202/0.2973, allocations: 21.11 kB / 380.8 MB, free: 12.21 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.2973, allocations: 0 / 380.8 MB, free: 12.21 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.106e-05/0.2973, allocations: 3.5 kB / 380.8 MB, free: 12.21 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001676/0.2975, allocations: 15 kB / 380.8 MB, free: 12.21 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000272/0.2978, allocations: 151.6 kB / 381 MB, free: 12.08 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000126/0.2979, allocations: 0.6842 MB / 381.7 MB, free: 11.39 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.018e-05/0.298, allocations: 14.67 kB / 381.7 MB, free: 11.39 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.365e-05/0.298, allocations: 14 kB / 381.7 MB, free: 11.38 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.298, allocations: 0 / 381.7 MB, free: 11.38 MB / 318.1 MB Notification: Performance of Templates: time 0.00421/0.3022, allocations: 1.292 MB / 383 MB, free: 11.26 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile.makefile make -j1 -f Modelica_3.2.3_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_3_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.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o Modelica_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile.c Modelica_3.2.3_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.3_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.3_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.3_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.3_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.3_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.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o] Error 1