Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001344/0.001344, allocations: 104.8 kB / 16.92 MB, free: 6.145 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.001488/0.001488, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.62/1.62, allocations: 205.1 MB / 223.7 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.001306/0.001306, allocations: 51.94 kB / 280 MB, free: 3.18 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.117, allocations: 46.64 MB / 326.6 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001985/0.1191, allocations: 0.5257 MB / 327.1 MB, free: 3.941 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002593/0.1217, allocations: 1.828 MB / 329 MB, free: 2.09 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.744e-05/0.1217, allocations: 0 / 329 MB, free: 2.09 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001487/0.1232, allocations: 138 kB / 329.1 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.783e-05/0.1233, allocations: 31.91 kB / 329.1 MB, free: 1.934 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001849/0.1235, allocations: 43.88 kB / 329.2 MB, free: 1.891 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001106/0.1236, allocations: 67.86 kB / 329.2 MB, free: 1.824 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.855e-05/0.1237, allocations: 4 kB / 329.2 MB, free: 1.82 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.595e-05/0.1237, allocations: 31.86 kB / 329.3 MB, free: 1.789 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000113/0.1239, allocations: 35.84 kB / 329.3 MB, free: 1.754 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.593e-05/0.1239, allocations: 4 kB / 329.3 MB, free: 1.75 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.753e-05/0.124, allocations: 15.98 kB / 329.3 MB, free: 1.734 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.381e-05/0.1241, allocations: 15.97 kB / 329.3 MB, free: 1.719 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.433e-05/0.1241, allocations: 19.81 kB / 329.4 MB, free: 1.699 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001672/0.1243, allocations: 59.86 kB / 329.4 MB, free: 1.641 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1243, allocations: 7.938 kB / 329.4 MB, free: 1.633 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.1243, allocations: 0 / 329.4 MB, free: 1.633 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.1243, allocations: 0 / 329.4 MB, free: 1.633 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.0004976/0.1248, allocations: 405.1 kB / 329.8 MB, free: 1.184 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.1249, allocations: 12.03 kB / 329.8 MB, free: 1.172 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.36e-05/0.1249, allocations: 8.844 kB / 329.8 MB, free: 1.164 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002482/0.1252, allocations: 208.2 kB / 330.1 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.865e-06/0.1252, allocations: 384 / 330.1 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.977e-05/0.1252, allocations: 8.312 kB / 330.1 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001296/0.1253, allocations: 82.23 kB / 330.1 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.1254, allocations: 0 / 330.1 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.1254, allocations: 7.938 kB / 330.1 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.1254, allocations: 0 / 330.1 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.881e-05/0.1254, allocations: 3.984 kB / 330.2 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003495/0.1258, allocations: 181.7 kB / 330.3 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.785e-05/0.1258, allocations: 14.58 kB / 330.3 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.767e-05/0.1259, allocations: 8.922 kB / 330.4 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.983e-06/0.1259, allocations: 4 kB / 330.4 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.47e-05/0.1259, allocations: 60.2 kB / 330.4 MB, free: 472 kB / 270.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1259, allocations: 3.938 kB / 330.4 MB, free: 468 kB / 270.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001395/0.1261, allocations: 49.59 kB / 330.5 MB, free: 412 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.818e-05/0.1262, allocations: 158.2 kB / 330.6 MB, free: 216 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002456/0.1264, allocations: 153.1 kB / 330.8 MB, free: 56 kB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.1265, allocations: 29.7 kB / 330.8 MB, free: 20 kB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.881e-05/0.1265, allocations: 100.2 kB / 330.9 MB, free: 15.92 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.841e-05/0.1266, allocations: 7.844 kB / 330.9 MB, free: 15.91 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.863e-05/0.1266, allocations: 13.72 kB / 330.9 MB, free: 15.89 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002706/0.1269, allocations: 322.8 kB / 331.2 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.479e-05/0.1269, allocations: 4 kB / 331.2 MB, free: 15.56 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.764e-05/0.127, allocations: 48.22 kB / 331.3 MB, free: 15.5 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.247e-05/0.127, allocations: 16.92 kB / 331.3 MB, free: 15.48 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.127, allocations: 0 / 331.3 MB, free: 15.48 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.988e-05/0.1271, allocations: 53.53 kB / 331.4 MB, free: 15.42 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.1271, allocations: 8 kB / 331.4 MB, free: 15.41 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.1271, allocations: 0 / 331.4 MB, free: 15.41 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.1272, allocations: 0 / 331.4 MB, free: 15.41 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.206e-05/0.1272, allocations: 4 kB / 331.4 MB, free: 15.41 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.1272, allocations: 0 / 331.4 MB, free: 15.41 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.659e-05/0.1273, allocations: 0 / 331.4 MB, free: 15.41 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.554e-06/0.1273, allocations: 4.031 kB / 331.4 MB, free: 15.41 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 0.0002458/0.1276, allocations: 121.8 kB / 331.5 MB, free: 15.28 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.366e-05/0.1276, allocations: 15.78 kB / 331.5 MB, free: 15.26 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.921e-05/0.1276, allocations: 11.83 kB / 331.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.1276, allocations: 0 / 331.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.1277, allocations: 3.938 kB / 331.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.1277, allocations: 0 / 331.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001821/0.1278, allocations: 177.6 kB / 331.7 MB, free: 15.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1279, allocations: 0 / 331.7 MB, free: 15.02 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.644e-05/0.1279, allocations: 7.938 kB / 331.7 MB, free: 15.02 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.1279, allocations: 4 kB / 331.7 MB, free: 15.01 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.321e-06/0.1279, allocations: 0 / 331.7 MB, free: 15.01 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1279, allocations: 0 / 331.7 MB, free: 15.01 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1279, allocations: 0 / 331.7 MB, free: 15.01 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001175/0.128, allocations: 73.06 kB / 331.8 MB, free: 14.92 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.321e-05/0.1281, allocations: 92.97 kB / 331.9 MB, free: 14.81 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.247e-05/0.1282, allocations: 4 kB / 331.9 MB, free: 14.81 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.086e-05/0.1282, allocations: 8.094 kB / 331.9 MB, free: 14.8 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.267e-05/0.1282, allocations: 0 / 331.9 MB, free: 14.8 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.566e-06/0.1282, allocations: 0 / 331.9 MB, free: 14.8 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.799e-05/0.1283, allocations: 123.2 kB / 332 MB, free: 14.68 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1283, allocations: 0 / 332 MB, free: 14.68 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002493/0.1286, allocations: 16 kB / 332 MB, free: 14.66 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.0003632/0.129, allocations: 175.3 kB / 332.2 MB, free: 14.49 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 9.274e-05/0.1291, allocations: 8 kB / 332.2 MB, free: 14.48 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1291, allocations: 0 / 332.2 MB, free: 14.48 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 1.164e-05/0.1291, allocations: 8.047 kB / 332.2 MB, free: 14.47 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001605/0.1293, allocations: 13.16 kB / 332.2 MB, free: 14.46 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002743/0.1295, allocations: 141.5 kB / 332.4 MB, free: 14.29 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000258/0.1298, allocations: 0.6846 MB / 333 MB, free: 13.58 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.853e-05/0.1299, allocations: 11.98 kB / 333 MB, free: 13.57 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.91e-05/0.1299, allocations: 15.44 kB / 333.1 MB, free: 13.55 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1299, allocations: 3.938 kB / 333.1 MB, free: 13.55 MB / 286.1 MB Notification: Performance of Templates: time 0.004219/0.1341, allocations: 1.288 MB / 334.4 MB, free: 12.26 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile.makefile make -j1 -f Modelica_3.2.2_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_2_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.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile.c Modelica_3.2.2_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.2_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.2.2_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.2.2_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.2.2_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.2_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.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o] Error 1