Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001072/0.001071, allocations: 104.6 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001257/0.001257, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001814/0.001814, allocations: 60.09 kB / 306.9 MB, free: 0.6211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0992/0.101, allocations: 50.54 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001553/0.1026, allocations: 0.5104 MB / 358 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002017/0.1046, allocations: 1.86 MB / 359.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.269e-05/0.1047, allocations: 0 / 359.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001881/0.1066, allocations: 148.8 kB / 360 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.348e-05/0.1067, allocations: 27.91 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001774/0.1068, allocations: 55.86 kB / 360.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.891e-05/0.1069, allocations: 63.77 kB / 360.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.715e-05/0.107, allocations: 4 kB / 360.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.071e-05/0.107, allocations: 27.91 kB / 360.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.889e-05/0.1071, allocations: 23.91 kB / 360.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.303e-05/0.1072, allocations: 4 kB / 360.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.078e-05/0.1072, allocations: 12 kB / 360.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.492e-05/0.1073, allocations: 27.84 kB / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.802e-05/0.1073, allocations: 15.88 kB / 360.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001684/0.1075, allocations: 59.8 kB / 360.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1075, allocations: 0 / 360.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1075, allocations: 4 kB / 360.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.1075, allocations: 0 / 360.3 MB, free: 11.26 MB / 302.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.0004528/0.108, allocations: 409.1 kB / 360.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.985e-05/0.108, allocations: 8.031 kB / 360.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.937e-05/0.1081, allocations: 8.844 kB / 360.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002399/0.1083, allocations: 212.2 kB / 360.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.065e-06/0.1084, allocations: 384 / 360.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.604e-05/0.1084, allocations: 4.281 kB / 360.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001263/0.1085, allocations: 82.17 kB / 361 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.962e-06/0.1085, allocations: 0 / 361 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.1085, allocations: 4 kB / 361 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.407e-06/0.1086, allocations: 4 kB / 361 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.486e-05/0.1086, allocations: 0 / 361 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002831/0.1089, allocations: 181.7 kB / 361.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.441e-05/0.1089, allocations: 14.58 kB / 361.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.98e-05/0.1089, allocations: 16.84 kB / 361.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.755e-06/0.1089, allocations: 3.938 kB / 361.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.57e-05/0.109, allocations: 64.2 kB / 361.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/0.109, allocations: 4 kB / 361.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001242/0.1091, allocations: 41.69 kB / 361.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.901e-05/0.1092, allocations: 158.2 kB / 361.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/0.1093, allocations: 156.5 kB / 361.6 MB, free: 9.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.1094, allocations: 25.7 kB / 361.7 MB, free: 9.648 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.573e-05/0.1094, allocations: 96.12 kB / 361.8 MB, free: 9.551 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.649e-05/0.1094, allocations: 3.906 kB / 361.8 MB, free: 9.547 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.955e-05/0.1095, allocations: 25.84 kB / 361.8 MB, free: 9.516 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.529e-05/0.1096, allocations: 314.8 kB / 362.1 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.831e-05/0.1096, allocations: 8 kB / 362.1 MB, free: 9.191 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.933e-05/0.1097, allocations: 44.22 kB / 362.1 MB, free: 9.133 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.959e-05/0.1097, allocations: 12.86 kB / 362.2 MB, free: 9.117 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1097, allocations: 4 kB / 362.2 MB, free: 9.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.323e-05/0.1098, allocations: 49.66 kB / 362.2 MB, free: 9.059 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.1098, allocations: 7.938 kB / 362.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.1098, allocations: 0 / 362.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.1098, allocations: 0 / 362.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.017e-05/0.1099, allocations: 4 kB / 362.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.449e-06/0.1099, allocations: 3.938 kB / 362.2 MB, free: 9.043 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.833e-05/0.11, allocations: 11.94 kB / 362.2 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.909e-06/0.11, allocations: 0 / 362.2 MB, free: 9.031 MB / 302.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.765e-05/0.1101, allocations: 121.8 kB / 362.3 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.395e-05/0.1101, allocations: 15.88 kB / 362.4 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.315e-05/0.1101, allocations: 15.83 kB / 362.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.1101, allocations: 0 / 362.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.1101, allocations: 0 / 362.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.1101, allocations: 0 / 362.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001754/0.1103, allocations: 173.6 kB / 362.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1103, allocations: 0 / 362.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.53e-05/0.1104, allocations: 4 kB / 362.6 MB, free: 8.645 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.1104, allocations: 3.938 kB / 362.6 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-06/0.1104, allocations: 0 / 362.6 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.1104, allocations: 7.938 kB / 362.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1104, allocations: 7.938 kB / 362.6 MB, free: 8.625 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001111/0.1105, allocations: 72.97 kB / 362.6 MB, free: 8.535 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.937e-05/0.1106, allocations: 85.08 kB / 362.7 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.1106, allocations: 7.984 kB / 362.7 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.211e-05/0.1107, allocations: 4 kB / 362.7 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.105e-05/0.1107, allocations: 4 kB / 362.7 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-06/0.1107, allocations: 4.094 kB / 362.7 MB, free: 8.414 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.607e-05/0.1108, allocations: 117.8 kB / 362.9 MB, free: 8.301 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1108, allocations: 0 / 362.9 MB, free: 8.301 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002016/0.111, allocations: 16 kB / 362.9 MB, free: 8.285 MB / 302.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.0002556/0.1113, allocations: 149.9 kB / 363 MB, free: 8.148 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 7.62e-05/0.1113, allocations: 8 kB / 363 MB, free: 8.141 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1114, allocations: 0 / 363 MB, free: 8.141 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.212e-05/0.1114, allocations: 4 kB / 363 MB, free: 8.137 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001644/0.1115, allocations: 11.98 kB / 363 MB, free: 8.125 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002331/0.1118, allocations: 145.4 kB / 363.2 MB, free: 7.957 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002284/0.112, allocations: 0.6846 MB / 363.9 MB, free: 7.246 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.974e-05/0.1121, allocations: 11.94 kB / 363.9 MB, free: 7.234 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.518e-05/0.1121, allocations: 15.42 kB / 363.9 MB, free: 7.219 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1121, allocations: 0 / 363.9 MB, free: 7.219 MB / 302.1 MB Notification: Performance of Templates: time 0.003725/0.1158, allocations: 1.206 MB / 365.1 MB, free: 6.039 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.makefile make -j1 -f Modelica_trunk_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/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Resources/C-Sources" -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_trunk_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_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.c Modelica_trunk_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_trunk_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),2.220446049250313e-15); ^ Modelica_trunk_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),2.220446049250313e-15); ^ Modelica_trunk_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),2.220446049250313e-15); ^ Modelica_trunk_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[1] /* dim[2] PARAM */)); ^ Modelica_trunk_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_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o] Error 1