Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_4.0.0_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.001123/0.001123, allocations: 106.1 kB / 17.06 MB, free: 6.027 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.001253/0.001253, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009091/0.0009091, allocations: 43.92 kB / 351.3 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2691, allocations: 49.44 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001997/0.2711, allocations: 0.5299 MB / 401.2 MB, free: 8.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003012/0.2742, allocations: 1.804 MB / 403 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.179e-05/0.2743, allocations: 0 / 403 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002432/0.2767, allocations: 140.1 kB / 403.2 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.178e-05/0.2768, allocations: 23.92 kB / 403.2 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002773/0.2771, allocations: 54.61 kB / 403.2 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001518/0.2773, allocations: 67.8 kB / 403.3 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.31e-05/0.2773, allocations: 4 kB / 403.3 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.463e-05/0.2774, allocations: 31.92 kB / 403.4 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.2775, allocations: 31.84 kB / 403.4 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.544e-05/0.2776, allocations: 4 kB / 403.4 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.41e-05/0.2777, allocations: 15.98 kB / 403.4 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.316e-05/0.2778, allocations: 23.91 kB / 403.4 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.962e-05/0.2778, allocations: 11.88 kB / 403.4 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002319/0.2781, allocations: 71.78 kB / 403.5 MB, free: 6.113 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2781, allocations: 0 / 403.5 MB, free: 6.113 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2781, allocations: 0 / 403.5 MB, free: 6.113 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.2781, allocations: 0 / 403.5 MB, free: 6.113 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.0005379/0.2787, allocations: 400.8 kB / 403.9 MB, free: 5.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.2787, allocations: 12.03 kB / 403.9 MB, free: 5.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.985e-05/0.2788, allocations: 4.938 kB / 403.9 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002929/0.2791, allocations: 212.1 kB / 404.1 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.899e-06/0.2791, allocations: 384 / 404.1 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.018e-05/0.2791, allocations: 384 / 404.1 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001536/0.2793, allocations: 82.23 kB / 404.2 MB, free: 5.309 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.2793, allocations: 0 / 404.2 MB, free: 5.309 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.2793, allocations: 4 kB / 404.2 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.2793, allocations: 3.984 kB / 404.2 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.172e-05/0.2794, allocations: 3.984 kB / 404.2 MB, free: 5.297 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00038/0.2797, allocations: 177.7 kB / 404.4 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.14e-05/0.2798, allocations: 18.52 kB / 404.4 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.841e-05/0.2798, allocations: 16.86 kB / 404.4 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.191e-05/0.2799, allocations: 0 / 404.4 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.084e-05/0.2799, allocations: 68.19 kB / 404.5 MB, free: 4.945 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.192e-06/0.2799, allocations: 4 kB / 404.5 MB, free: 4.941 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001791/0.2801, allocations: 41.55 kB / 404.5 MB, free: 4.895 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.2802, allocations: 158.2 kB / 404.7 MB, free: 4.703 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001871/0.2804, allocations: 157.1 kB / 404.8 MB, free: 4.543 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.2805, allocations: 25.83 kB / 404.9 MB, free: 4.512 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.951e-05/0.2805, allocations: 100.1 kB / 405 MB, free: 4.41 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.882e-05/0.2806, allocations: 0 / 405 MB, free: 4.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.067e-05/0.2806, allocations: 21.62 kB / 405 MB, free: 4.383 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.2808, allocations: 318.8 kB / 405.3 MB, free: 4.062 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.871e-05/0.2808, allocations: 4 kB / 405.3 MB, free: 4.059 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.621e-05/0.2809, allocations: 40.28 kB / 405.3 MB, free: 4.004 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.018e-05/0.2809, allocations: 20.92 kB / 405.4 MB, free: 3.98 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.281, allocations: 0 / 405.4 MB, free: 3.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001065/0.2811, allocations: 49.56 kB / 405.4 MB, free: 3.926 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.033e-05/0.2811, allocations: 8 kB / 405.4 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.2811, allocations: 0 / 405.4 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.2811, allocations: 3.938 kB / 405.4 MB, free: 3.914 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.418e-05/0.2812, allocations: 4 kB / 405.4 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.2812, allocations: 0 / 405.4 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.2813, allocations: 9.297 kB / 405.4 MB, free: 3.902 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.888e-06/0.2813, allocations: 8 kB / 405.4 MB, free: 3.895 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.0001088/0.2814, allocations: 113.8 kB / 405.6 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.82e-05/0.2815, allocations: 11.84 kB / 405.6 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.399e-05/0.2815, allocations: 11.88 kB / 405.6 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.2815, allocations: 0 / 405.6 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.2816, allocations: 0 / 405.6 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2816, allocations: 3.984 kB / 405.6 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002435/0.2818, allocations: 169.7 kB / 405.7 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2818, allocations: 4 kB / 405.7 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.879e-05/0.2819, allocations: 7.938 kB / 405.8 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.2819, allocations: 0 / 405.8 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.2819, allocations: 0 / 405.8 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2819, allocations: 0 / 405.8 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2819, allocations: 0 / 405.8 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001631/0.2821, allocations: 76.97 kB / 405.8 MB, free: 3.422 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.191e-05/0.2822, allocations: 92.97 kB / 405.9 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.636e-05/0.2822, allocations: 4.094 kB / 405.9 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.613e-05/0.2823, allocations: 4 kB / 405.9 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.424e-05/0.2824, allocations: 0 / 405.9 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.2824, allocations: 3.938 kB / 405.9 MB, free: 3.301 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001353/0.2825, allocations: 119.2 kB / 406.1 MB, free: 3.184 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.2825, allocations: 0 / 406.1 MB, free: 3.184 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003524/0.2829, allocations: 27.98 kB / 406.1 MB, free: 3.156 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.0004703/0.2834, allocations: 178.6 kB / 406.3 MB, free: 3.012 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001267/0.2835, allocations: 23.92 kB / 406.3 MB, free: 2.988 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.2835, allocations: 0 / 406.3 MB, free: 2.988 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.419e-05/0.2836, allocations: 0 / 406.3 MB, free: 2.988 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002383/0.2838, allocations: 14.81 kB / 406.3 MB, free: 2.977 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000335/0.2842, allocations: 149.5 kB / 406.4 MB, free: 2.805 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.2844, allocations: 0.6844 MB / 407.1 MB, free: 2.094 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.308e-05/0.2845, allocations: 16.09 kB / 407.1 MB, free: 2.078 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.294e-05/0.2846, allocations: 15.44 kB / 407.2 MB, free: 2.062 MB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2846, allocations: 0 / 407.2 MB, free: 2.062 MB / 318.1 MB Notification: Performance of Templates: time 0.005343/0.2899, allocations: 1.305 MB / 408.5 MB, free: 0.7812 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile.makefile make -j1 -f Modelica_4.0.0_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 4.0.0+maint.om/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_4_0_0_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_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile.c Modelica_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o] Error 1