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.001229/0.001229, allocations: 100.4 kB / 18.35 MB, free: 4.648 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.001116/0.001116, allocations: 191 kB / 19.29 MB, free: 3.715 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.33/1.33, allocations: 205.1 MB / 225.2 MB, free: 12.29 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.001165/0.001165, allocations: 47.92 kB / 282.1 MB, free: 2.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07846/0.07964, allocations: 46.62 MB / 328.7 MB, free: 3.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001656/0.08133, allocations: 0.5349 MB / 329.2 MB, free: 3.25 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002027/0.08337, allocations: 1.84 MB / 331.1 MB, free: 1.387 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.585e-05/0.08343, allocations: 0 / 331.1 MB, free: 1.387 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002056/0.08549, allocations: 136.5 kB / 331.2 MB, free: 1.262 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.35e-05/0.08556, allocations: 27.92 kB / 331.2 MB, free: 1.234 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001853/0.08575, allocations: 51.86 kB / 331.3 MB, free: 1.184 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001129/0.08587, allocations: 75.8 kB / 331.4 MB, free: 1.109 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.392e-05/0.08591, allocations: 0 / 331.4 MB, free: 1.109 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.049e-05/0.08597, allocations: 31.86 kB / 331.4 MB, free: 1.078 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001052/0.08608, allocations: 27.91 kB / 331.4 MB, free: 1.051 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.954e-05/0.08611, allocations: 4 kB / 331.4 MB, free: 1.047 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.156e-05/0.08616, allocations: 15.98 kB / 331.4 MB, free: 1.031 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.147e-05/0.08623, allocations: 23.86 kB / 331.5 MB, free: 1.008 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.273e-05/0.08628, allocations: 19.86 kB / 331.5 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001667/0.08645, allocations: 71.78 kB / 331.6 MB, free: 0.918 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.08647, allocations: 0 / 331.6 MB, free: 0.918 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.08647, allocations: 0 / 331.6 MB, free: 0.918 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.08648, allocations: 0 / 331.6 MB, free: 0.918 MB / 270.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.0003915/0.08688, allocations: 400.9 kB / 332 MB, free: 484 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.08692, allocations: 8.031 kB / 332 MB, free: 476 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.248e-05/0.08697, allocations: 12.84 kB / 332 MB, free: 464 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000413/0.08739, allocations: 320.1 kB / 332.3 MB, free: 104 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.935e-06/0.0874, allocations: 384 / 332.3 MB, free: 104 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.48e-05/0.08742, allocations: 384 / 332.3 MB, free: 104 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001133/0.08754, allocations: 74.23 kB / 332.4 MB, free: 8 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.56e-06/0.08756, allocations: 0 / 332.4 MB, free: 8 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/0.08757, allocations: 0 / 332.4 MB, free: 8 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.376e-06/0.08758, allocations: 4 kB / 332.4 MB, free: 4 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.795e-05/0.08761, allocations: 8.062 kB / 332.4 MB, free: 15.99 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002779/0.0879, allocations: 181.6 kB / 332.5 MB, free: 15.77 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.857e-05/0.08795, allocations: 18.58 kB / 332.6 MB, free: 15.74 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.62e-05/0.08797, allocations: 12.92 kB / 332.6 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.476e-06/0.08799, allocations: 0 / 332.6 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/0.08803, allocations: 68.14 kB / 332.6 MB, free: 15.64 MB / 286.1 MB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.08803, allocations: 0 / 332.6 MB, free: 15.64 MB / 286.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001222/0.08816, allocations: 45.59 kB / 332.7 MB, free: 15.59 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.174e-05/0.08824, allocations: 154.2 kB / 332.8 MB, free: 15.4 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001336/0.08838, allocations: 157.1 kB / 333 MB, free: 15.24 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.0884, allocations: 29.7 kB / 333 MB, free: 15.21 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.121e-05/0.08845, allocations: 92.12 kB / 333.1 MB, free: 15.11 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.835e-05/0.08847, allocations: 11.84 kB / 333.1 MB, free: 15.1 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.155e-05/0.08852, allocations: 21.84 kB / 333.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.094e-05/0.08862, allocations: 318.8 kB / 333.5 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.162e-05/0.08863, allocations: 4 kB / 333.5 MB, free: 14.75 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.902e-05/0.08869, allocations: 48.22 kB / 333.5 MB, free: 14.69 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.78e-05/0.08872, allocations: 12.86 kB / 333.5 MB, free: 14.67 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.08873, allocations: 64 / 333.5 MB, free: 14.67 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.313e-05/0.08881, allocations: 61.47 kB / 333.6 MB, free: 14.61 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.08883, allocations: 4 kB / 333.6 MB, free: 14.6 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-06/0.08884, allocations: 0 / 333.6 MB, free: 14.6 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.08886, allocations: 4 kB / 333.6 MB, free: 14.6 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.516e-05/0.08889, allocations: 0 / 333.6 MB, free: 14.6 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.948e-06/0.0889, allocations: 0 / 333.6 MB, free: 14.6 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.073e-05/0.08897, allocations: 4 kB / 333.6 MB, free: 14.59 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.233e-06/0.08899, allocations: 0 / 333.6 MB, free: 14.59 MB / 286.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.64e-05/0.08907, allocations: 125.8 kB / 333.7 MB, free: 14.46 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.092e-05/0.08909, allocations: 11.84 kB / 333.7 MB, free: 14.45 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.295e-05/0.08912, allocations: 19.77 kB / 333.7 MB, free: 14.43 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.08913, allocations: 0 / 333.7 MB, free: 14.43 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.08914, allocations: 0 / 333.7 MB, free: 14.43 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.08914, allocations: 0 / 333.7 MB, free: 14.43 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001779/0.08932, allocations: 173.6 kB / 333.9 MB, free: 14.21 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.08934, allocations: 0 / 333.9 MB, free: 14.21 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.768e-05/0.08937, allocations: 3.938 kB / 333.9 MB, free: 14.21 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.08938, allocations: 0 / 333.9 MB, free: 14.21 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-06/0.08939, allocations: 0 / 333.9 MB, free: 14.21 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.0894, allocations: 8 kB / 333.9 MB, free: 14.2 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.0894, allocations: 0 / 333.9 MB, free: 14.2 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001063/0.08951, allocations: 65.12 kB / 334 MB, free: 14.12 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.655e-05/0.08958, allocations: 96.97 kB / 334.1 MB, free: 14.01 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.892e-05/0.08961, allocations: 4 kB / 334.1 MB, free: 14 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.23e-05/0.08968, allocations: 3.938 kB / 334.1 MB, free: 14 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.142e-05/0.08969, allocations: 7.938 kB / 334.1 MB, free: 13.99 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.0897, allocations: 4.094 kB / 334.1 MB, free: 13.99 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.456e-05/0.08979, allocations: 119.2 kB / 334.2 MB, free: 13.87 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.0898, allocations: 0 / 334.2 MB, free: 13.87 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002134/0.09002, allocations: 20 kB / 334.2 MB, free: 13.85 MB / 286.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.000322/0.09034, allocations: 167.5 kB / 334.4 MB, free: 13.68 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 8.361e-05/0.09044, allocations: 12 kB / 334.4 MB, free: 13.67 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/0.09045, allocations: 0 / 334.4 MB, free: 13.67 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 1.198e-05/0.09047, allocations: 11.92 kB / 334.4 MB, free: 13.66 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001516/0.09063, allocations: 8 kB / 334.4 MB, free: 13.65 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002268/0.09086, allocations: 149.6 kB / 334.6 MB, free: 13.48 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001943/0.09107, allocations: 0.6845 MB / 335.3 MB, free: 12.77 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.721e-05/0.09111, allocations: 11.98 kB / 335.3 MB, free: 12.75 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.351e-05/0.09114, allocations: 15.44 kB / 335.3 MB, free: 12.74 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.09114, allocations: 0 / 335.3 MB, free: 12.74 MB / 286.1 MB Notification: Performance of Templates: time 0.003519/0.09467, allocations: 1.295 MB / 336.6 MB, free: 11.44 MB / 286.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/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_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