Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001536/0.001536, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001439/0.001439, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.645/1.645, allocations: 205.1 MB / 222.4 MB, free: 4.379 MB / 174.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.001421/0.001421, allocations: 55.92 kB / 278.7 MB, free: 12.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3123, allocations: 46.63 MB / 325.3 MB, free: 2.031 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.002106/0.3145, allocations: 0.5348 MB / 325.8 MB, free: 1.625 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002415/0.3169, allocations: 1.834 MB / 327.7 MB, free: 152 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.314e-05/0.317, allocations: 1.062 kB / 327.7 MB, free: 152 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001815/0.3188, allocations: 129.4 kB / 327.8 MB, free: 64 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 7.153e-05/0.3189, allocations: 24.16 kB / 327.8 MB, free: 48 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002274/0.3191, allocations: 57.55 kB / 327.9 MB, free: 8 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001668/0.3193, allocations: 66.48 kB / 327.9 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.75e-05/0.3194, allocations: 6.328 kB / 327.9 MB, free: 15.97 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.994e-05/0.3195, allocations: 29.5 kB / 328 MB, free: 15.96 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001442/0.3196, allocations: 29.36 kB / 328 MB, free: 15.94 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.213e-05/0.3196, allocations: 2.375 kB / 328 MB, free: 15.94 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.3198, allocations: 22.22 kB / 328 MB, free: 15.93 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.126e-05/0.3198, allocations: 11.19 kB / 328 MB, free: 15.93 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.316e-05/0.3199, allocations: 22.17 kB / 328.1 MB, free: 15.91 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002969/0.3202, allocations: 72.22 kB / 328.1 MB, free: 15.87 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.3203, allocations: 0 / 328.1 MB, free: 15.87 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3203, allocations: 0 / 328.1 MB, free: 15.87 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.3203, allocations: 1.438 kB / 328.1 MB, free: 15.87 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.0006102/0.3209, allocations: 407.1 kB / 328.5 MB, free: 15.44 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.321, allocations: 9.469 kB / 328.5 MB, free: 15.44 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.781e-05/0.321, allocations: 8.531 kB / 328.5 MB, free: 15.43 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003445/0.3214, allocations: 206.7 kB / 328.7 MB, free: 15.21 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.3214, allocations: 384 / 328.7 MB, free: 15.21 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.973e-05/0.3214, allocations: 5.594 kB / 328.8 MB, free: 15.21 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002277/0.3217, allocations: 78.58 kB / 328.8 MB, free: 15.12 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.3217, allocations: 3.938 kB / 328.8 MB, free: 15.12 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.544e-05/0.3217, allocations: 0.9688 kB / 328.8 MB, free: 15.12 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.3217, allocations: 0 / 328.8 MB, free: 15.12 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.272e-05/0.3218, allocations: 2.406 kB / 328.8 MB, free: 15.12 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005259/0.3223, allocations: 179 kB / 329 MB, free: 14.91 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.892e-05/0.3224, allocations: 24.86 kB / 329 MB, free: 14.88 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.925e-05/0.3224, allocations: 7.328 kB / 329 MB, free: 14.88 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.639e-06/0.3225, allocations: 1 kB / 329 MB, free: 14.88 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.506e-05/0.3225, allocations: 61.36 kB / 329.1 MB, free: 14.8 MB / 270.1 MB Notification: Performance of pre-optimization done (n=1): time 1.392e-06/0.3225, allocations: 0 / 329.1 MB, free: 14.8 MB / 270.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002027/0.3227, allocations: 49.59 kB / 329.2 MB, free: 14.76 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.317e-05/0.3228, allocations: 159.5 kB / 329.3 MB, free: 14.57 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001948/0.323, allocations: 157.8 kB / 329.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.3231, allocations: 25.7 kB / 329.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.62e-05/0.3232, allocations: 91.88 kB / 329.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.16e-05/0.3232, allocations: 8.906 kB / 329.6 MB, free: 14.31 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.171e-05/0.3233, allocations: 19.22 kB / 329.6 MB, free: 14.29 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.3234, allocations: 321.4 kB / 329.9 MB, free: 13.97 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.592e-05/0.3234, allocations: 6.75 kB / 329.9 MB, free: 13.97 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.338e-05/0.3235, allocations: 43.69 kB / 330 MB, free: 13.92 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.494e-05/0.3236, allocations: 11.36 kB / 330 MB, free: 13.91 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3236, allocations: 0 / 330 MB, free: 13.91 MB / 270.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.657e-05/0.3237, allocations: 50.56 kB / 330 MB, free: 13.87 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.3237, allocations: 5.812 kB / 330 MB, free: 13.87 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.3237, allocations: 4 kB / 330 MB, free: 13.87 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.3237, allocations: 5.062 kB / 330 MB, free: 13.86 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.119e-05/0.3238, allocations: 2.156 kB / 330 MB, free: 13.86 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.3238, allocations: 1.156 kB / 330 MB, free: 13.86 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.302e-05/0.3239, allocations: 6.188 kB / 330.1 MB, free: 13.86 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.3239, allocations: 1.203 kB / 330.1 MB, free: 13.86 MB / 270.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.0001441/0.3241, allocations: 120.4 kB / 330.2 MB, free: 13.74 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.111e-05/0.3241, allocations: 12.23 kB / 330.2 MB, free: 13.73 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.691e-05/0.3241, allocations: 10.22 kB / 330.2 MB, free: 13.72 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.3241, allocations: 0 / 330.2 MB, free: 13.72 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.3242, allocations: 1 kB / 330.2 MB, free: 13.72 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3242, allocations: 3.938 kB / 330.2 MB, free: 13.72 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002153/0.3244, allocations: 180.9 kB / 330.4 MB, free: 13.51 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3244, allocations: 3.984 kB / 330.4 MB, free: 13.5 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.34e-05/0.3244, allocations: 5.031 kB / 330.4 MB, free: 13.5 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.3244, allocations: 1.062 kB / 330.4 MB, free: 13.5 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.3245, allocations: 4 kB / 330.4 MB, free: 13.5 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.3245, allocations: 1.938 kB / 330.4 MB, free: 13.5 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3245, allocations: 0 / 330.4 MB, free: 13.5 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000145/0.3246, allocations: 79.25 kB / 330.5 MB, free: 13.41 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.117e-05/0.3247, allocations: 89.48 kB / 330.6 MB, free: 13.31 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.643e-05/0.3247, allocations: 5.078 kB / 330.6 MB, free: 13.31 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.503e-05/0.3248, allocations: 2.125 kB / 330.6 MB, free: 13.31 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.622e-05/0.3248, allocations: 1.125 kB / 330.6 MB, free: 13.31 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-06/0.3249, allocations: 0 / 330.6 MB, free: 13.31 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001306/0.325, allocations: 124.9 kB / 330.7 MB, free: 13.21 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.325, allocations: 0 / 330.7 MB, free: 13.21 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002558/0.3253, allocations: 14.53 kB / 330.7 MB, free: 13.21 MB / 270.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.0004308/0.3257, allocations: 182 kB / 330.9 MB, free: 13.05 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 9.658e-05/0.3258, allocations: 8.531 kB / 330.9 MB, free: 13.05 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.3258, allocations: 1.156 kB / 330.9 MB, free: 13.05 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 1.46e-05/0.3258, allocations: 7 kB / 330.9 MB, free: 13.05 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001763/0.326, allocations: 12.58 kB / 330.9 MB, free: 13.04 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003347/0.3264, allocations: 142.2 kB / 331 MB, free: 12.9 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003129/0.3267, allocations: 0.6861 MB / 331.7 MB, free: 12.2 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 4.833e-05/0.3267, allocations: 10.81 kB / 331.7 MB, free: 12.2 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.34e-05/0.3268, allocations: 17.3 kB / 331.8 MB, free: 12.18 MB / 270.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3268, allocations: 0 / 331.8 MB, free: 12.18 MB / 270.1 MB Notification: Performance of Templates: time 0.004768/0.3316, allocations: 1.283 MB / 333 MB, free: 11.52 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile.makefile make -j1 -f Modelica_3.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -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_1_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.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o Modelica_3.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile.c Modelica_3.1_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.1_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),1e-14); ^ Modelica_3.1_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),1e-14); ^ Modelica_3.1_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),1e-14); ^ Modelica_3.1_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.1_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.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o] Error 1