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.001101/0.001101, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00125/0.001251, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 61.12 kB / 308.4 MB, free: 15.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09123/0.09237, allocations: 50.53 MB / 358.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001808/0.09422, allocations: 0.5223 MB / 359.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002018/0.09625, allocations: 1.849 MB / 361.3 MB, free: 11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.394e-05/0.0963, allocations: 0 / 361.3 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002286/0.0986, allocations: 155 kB / 361.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.127e-05/0.09866, allocations: 27.91 kB / 361.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00018/0.09885, allocations: 55.8 kB / 361.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.995e-05/0.09896, allocations: 63.83 kB / 361.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.273e-05/0.099, allocations: 7.984 kB / 361.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.757e-05/0.09905, allocations: 23.86 kB / 361.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.86e-05/0.09914, allocations: 27.91 kB / 361.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.782e-05/0.09916, allocations: 4 kB / 361.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.599e-05/0.09921, allocations: 16 kB / 361.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.815e-05/0.09927, allocations: 15.91 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.269e-05/0.09931, allocations: 23.86 kB / 361.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001575/0.09948, allocations: 55.81 kB / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.09949, allocations: 4 kB / 361.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.0995, allocations: 0 / 361.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.09951, allocations: 3.984 kB / 361.7 MB, free: 10.56 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.0003759/0.09989, allocations: 392.9 kB / 362.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.009e-05/0.09993, allocations: 12.03 kB / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.705e-05/0.09998, allocations: 8.844 kB / 362.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002372/0.1002, allocations: 216.2 kB / 362.3 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.546e-06/0.1002, allocations: 384 / 362.3 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.089e-05/0.1003, allocations: 4.281 kB / 362.3 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001153/0.1004, allocations: 70.3 kB / 362.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.1004, allocations: 4 kB / 362.4 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.1004, allocations: 4 kB / 362.4 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1004, allocations: 8 kB / 362.4 MB, free: 9.742 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.645e-05/0.1005, allocations: 3.938 kB / 362.4 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002966/0.1008, allocations: 177.7 kB / 362.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.237e-05/0.1008, allocations: 26.58 kB / 362.6 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.572e-05/0.1008, allocations: 8.797 kB / 362.6 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.122e-06/0.1008, allocations: 0 / 362.6 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.719e-05/0.1009, allocations: 68.27 kB / 362.7 MB, free: 9.387 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 8.71e-07/0.1009, allocations: 0 / 362.7 MB, free: 9.387 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.000126/0.101, allocations: 45.62 kB / 362.8 MB, free: 9.336 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.781e-05/0.1011, allocations: 158.2 kB / 362.9 MB, free: 9.145 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001384/0.1013, allocations: 156.5 kB / 363.1 MB, free: 8.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.1013, allocations: 25.7 kB / 363.1 MB, free: 8.949 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.072e-05/0.1013, allocations: 96.12 kB / 363.2 MB, free: 8.852 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.532e-05/0.1014, allocations: 3.906 kB / 363.2 MB, free: 8.848 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.792e-05/0.1014, allocations: 21.84 kB / 363.2 MB, free: 8.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.1015, allocations: 318.8 kB / 363.5 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.426e-05/0.1015, allocations: 4 kB / 363.5 MB, free: 8.496 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.94e-05/0.1016, allocations: 48.27 kB / 363.6 MB, free: 8.434 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.974e-05/0.1017, allocations: 16.8 kB / 363.6 MB, free: 8.414 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1017, allocations: 0 / 363.6 MB, free: 8.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.421e-05/0.1017, allocations: 57.59 kB / 363.6 MB, free: 8.352 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.1018, allocations: 7.938 kB / 363.6 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.606e-06/0.1018, allocations: 0 / 363.6 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.13e-05/0.1018, allocations: 0 / 363.6 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.781e-05/0.1018, allocations: 4 kB / 363.7 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.1018, allocations: 0 / 363.7 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.628e-05/0.1019, allocations: 7.938 kB / 363.7 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.679e-06/0.1019, allocations: 0 / 363.7 MB, free: 8.332 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 9.969e-05/0.102, allocations: 125.8 kB / 363.8 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.121e-05/0.1021, allocations: 15.84 kB / 363.8 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.47e-05/0.1021, allocations: 11.83 kB / 363.8 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.1021, allocations: 0 / 363.8 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1021, allocations: 0 / 363.8 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.1021, allocations: 0 / 363.8 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001776/0.1023, allocations: 177.6 kB / 364 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.1023, allocations: 0 / 364 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.651e-05/0.1023, allocations: 3.938 kB / 364 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.1023, allocations: 3.938 kB / 364 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.717e-06/0.1024, allocations: 4 kB / 364 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.1024, allocations: 4 kB / 364 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1024, allocations: 3.938 kB / 364 MB, free: 7.926 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001254/0.1025, allocations: 73.06 kB / 364.1 MB, free: 7.836 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.182e-05/0.1026, allocations: 89.03 kB / 364.2 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.99e-05/0.1026, allocations: 0 / 364.2 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.19e-05/0.1027, allocations: 8 kB / 364.2 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.386e-05/0.1027, allocations: 0 / 364.2 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-06/0.1027, allocations: 4.094 kB / 364.2 MB, free: 7.719 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.968e-05/0.1028, allocations: 121.8 kB / 364.3 MB, free: 7.602 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1028, allocations: 0 / 364.3 MB, free: 7.602 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002031/0.103, allocations: 16 kB / 364.3 MB, free: 7.586 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.0002701/0.1033, allocations: 150.6 kB / 364.5 MB, free: 7.449 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 8.132e-05/0.1034, allocations: 11.94 kB / 364.5 MB, free: 7.438 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1034, allocations: 0 / 364.5 MB, free: 7.438 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.167e-05/0.1034, allocations: 7.984 kB / 364.5 MB, free: 7.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001529/0.1036, allocations: 11.98 kB / 364.5 MB, free: 7.418 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002426/0.1038, allocations: 145.4 kB / 364.6 MB, free: 7.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002488/0.1041, allocations: 0.6847 MB / 365.3 MB, free: 6.539 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.53e-05/0.1041, allocations: 15.92 kB / 365.3 MB, free: 6.523 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.324e-05/0.1041, allocations: 11.44 kB / 365.3 MB, free: 6.512 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1041, allocations: 0 / 365.3 MB, free: 6.512 MB / 302.1 MB Notification: Performance of Templates: time 0.003554/0.1077, allocations: 1.203 MB / 366.5 MB, free: 5.336 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/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