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.00149/0.00149, allocations: 106.5 kB / 17.73 MB, free: 5.367 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.001714/0.001715, allocations: 191 kB / 18.66 MB, free: 4.445 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.572/1.572, 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.001308/0.001308, allocations: 47.94 kB / 328.5 MB, free: 3.332 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.102, 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.001798/0.1039, allocations: 0.5295 MB / 375.6 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002357/0.1063, allocations: 1.837 MB / 377.5 MB, free: 2.223 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.308e-05/0.1063, allocations: 3.938 kB / 377.5 MB, free: 2.219 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001754/0.1081, allocations: 139.2 kB / 377.6 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.597e-05/0.1082, allocations: 23.92 kB / 377.6 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001875/0.1084, allocations: 55.86 kB / 377.7 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001237/0.1085, allocations: 63.86 kB / 377.8 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.377e-05/0.1085, allocations: 8 kB / 377.8 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.196e-05/0.1086, allocations: 27.86 kB / 377.8 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001071/0.1087, allocations: 35.84 kB / 377.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.701e-05/0.1087, allocations: 0 / 377.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.687e-05/0.1088, allocations: 19.98 kB / 377.9 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.949e-05/0.1089, allocations: 11.98 kB / 377.9 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.086e-05/0.1089, allocations: 19.86 kB / 377.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00018/0.1091, allocations: 75.72 kB / 378 MB, free: 1.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1091, allocations: 0 / 378 MB, free: 1.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1091, allocations: 0 / 378 MB, free: 1.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.538e-06/0.1091, allocations: 0 / 378 MB, free: 1.75 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.0004196/0.1096, allocations: 400.9 kB / 378.3 MB, free: 1.305 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.1096, allocations: 15.97 kB / 378.4 MB, free: 1.289 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.288e-05/0.1097, allocations: 4.938 kB / 378.4 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004411/0.1101, allocations: 320 kB / 378.7 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.406e-06/0.1101, allocations: 4.375 kB / 378.7 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.816e-05/0.1101, allocations: 4.359 kB / 378.7 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000121/0.1103, allocations: 78.3 kB / 378.8 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.1103, allocations: 0 / 378.8 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.1103, allocations: 0 / 378.8 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.1103, allocations: 7.875 kB / 378.8 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.807e-05/0.1103, allocations: 4 kB / 378.8 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002895/0.1106, allocations: 173.7 kB / 378.9 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.835e-05/0.1107, allocations: 22.58 kB / 379 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.475e-05/0.1107, allocations: 8.859 kB / 379 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.82e-06/0.1107, allocations: 64 / 379 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.1107, allocations: 64.2 kB / 379 MB, free: 488 kB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.1108, allocations: 0 / 379 MB, free: 488 kB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.00013/0.1109, allocations: 53.53 kB / 379.1 MB, free: 428 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.489e-05/0.111, allocations: 154.2 kB / 379.2 MB, free: 236 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001406/0.1111, allocations: 153.8 kB / 379.4 MB, free: 72 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.1111, allocations: 29.83 kB / 379.4 MB, free: 36 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1837/0.2949, allocations: 88.08 kB / 379.5 MB, free: 13.32 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.013e-05/0.2949, allocations: 6.203 kB / 379.5 MB, free: 13.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.245e-05/0.295, allocations: 20.44 kB / 379.5 MB, free: 13.3 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6e-05/0.2951, allocations: 318.3 kB / 379.8 MB, free: 12.99 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.856e-05/0.2951, allocations: 3.625 kB / 379.8 MB, free: 12.99 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.648e-05/0.2952, allocations: 45 kB / 379.9 MB, free: 12.95 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.408e-05/0.2952, allocations: 16.12 kB / 379.9 MB, free: 12.94 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.2952, allocations: 0 / 379.9 MB, free: 12.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001084/0.2953, allocations: 54.88 kB / 380 MB, free: 12.91 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.2953, allocations: 5.5 kB / 380 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.2954, allocations: 0 / 380 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.2954, allocations: 5.984 kB / 380 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.468e-05/0.2954, allocations: 2.75 kB / 380 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.2954, allocations: 0 / 380 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.412e-05/0.2955, allocations: 3.594 kB / 380 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.2955, allocations: 1.625 kB / 380 MB, free: 12.91 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 8.624e-05/0.2956, allocations: 118.7 kB / 380.1 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.197e-05/0.2957, allocations: 11.42 kB / 380.1 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.362e-05/0.2957, allocations: 13.47 kB / 380.1 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.2957, allocations: 9.031 kB / 380.1 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.2957, allocations: 0 / 380.1 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.2957, allocations: 1.344 kB / 380.1 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001604/0.2959, allocations: 170.1 kB / 380.3 MB, free: 12.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.2959, allocations: 1.312 kB / 380.3 MB, free: 12.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.404e-05/0.2959, allocations: 3.141 kB / 380.3 MB, free: 12.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.2959, allocations: 2.203 kB / 380.3 MB, free: 12.6 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.302e-06/0.2959, allocations: 0 / 380.3 MB, free: 12.6 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.2959, allocations: 7.938 kB / 380.3 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.296, allocations: 4.547 kB / 380.3 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001128/0.2961, allocations: 73.23 kB / 380.4 MB, free: 12.53 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.078e-05/0.2961, allocations: 86.86 kB / 380.5 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.2962, allocations: 2.031 kB / 380.5 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.122e-05/0.2962, allocations: 10.88 kB / 380.5 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.313e-05/0.2962, allocations: 4.5 kB / 380.5 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.165e-06/0.2963, allocations: 0.6562 kB / 380.5 MB, free: 12.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.884e-05/0.2963, allocations: 121.8 kB / 380.6 MB, free: 12.36 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2963, allocations: 0 / 380.6 MB, free: 12.36 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002287/0.2966, allocations: 17.09 kB / 380.6 MB, free: 12.36 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.0003331/0.2969, allocations: 172.8 kB / 380.8 MB, free: 12.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 9.037e-05/0.297, allocations: 13.98 kB / 380.8 MB, free: 12.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.297, allocations: 1.891 kB / 380.8 MB, free: 12.25 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.065e-05/0.297, allocations: 7.344 kB / 380.8 MB, free: 12.25 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001621/0.2972, allocations: 8.156 kB / 380.8 MB, free: 12.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002639/0.2975, allocations: 158.2 kB / 381 MB, free: 12.12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001163/0.2976, allocations: 0.6848 MB / 381.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.025e-05/0.2977, allocations: 10.64 kB / 381.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.635e-05/0.2977, allocations: 14.39 kB / 381.7 MB, free: 11.42 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2977, allocations: 3.625 kB / 381.7 MB, free: 11.42 MB / 318.1 MB Notification: Performance of Templates: time 0.005028/0.3027, allocations: 1.319 MB / 383 MB, free: 11.29 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