Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.007212/0.007212, allocations: 105.3 kB / 15.74 MB, free: 6.488 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.001299/0.001299, allocations: 194.9 kB / 16.68 MB, free: 6.375 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.509/1.509, allocations: 205.1 MB / 222.5 MB, free: 4.5 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.001546/0.001546, allocations: 46.53 kB / 326.5 MB, free: 14.37 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1106, allocations: 46.62 MB / 373.1 MB, free: 1.348 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.002175/0.1128, allocations: 0.5263 MB / 373.7 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002959/0.1158, allocations: 1.836 MB / 375.5 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.522e-05/0.1159, allocations: 0 / 375.5 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001824/0.1178, allocations: 139.2 kB / 375.6 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.923e-05/0.1179, allocations: 35.84 kB / 375.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002366/0.1181, allocations: 47.92 kB / 375.7 MB, free: 14.74 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001353/0.1183, allocations: 67.75 kB / 375.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.795e-05/0.1183, allocations: 7.984 kB / 375.8 MB, free: 14.67 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.051e-05/0.1184, allocations: 23.92 kB / 375.8 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001342/0.1186, allocations: 31.91 kB / 375.9 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.041e-05/0.1186, allocations: 4 kB / 375.9 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.375e-05/0.1187, allocations: 27.92 kB / 375.9 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.022e-05/0.1187, allocations: 15.92 kB / 375.9 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.881e-05/0.1188, allocations: 19.86 kB / 375.9 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002391/0.119, allocations: 71.72 kB / 376 MB, free: 14.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.1191, allocations: 0 / 376 MB, free: 14.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1191, allocations: 4 kB / 376 MB, free: 14.47 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.1191, allocations: 0 / 376 MB, free: 14.47 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.0004681/0.1195, allocations: 392.9 kB / 376.4 MB, free: 14.04 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.1196, allocations: 8.031 kB / 376.4 MB, free: 14.03 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.469e-05/0.1196, allocations: 8.938 kB / 376.4 MB, free: 14.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002617/0.1199, allocations: 220.1 kB / 376.6 MB, free: 13.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.55e-06/0.1199, allocations: 384 / 376.6 MB, free: 13.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.1199, allocations: 384 / 376.6 MB, free: 13.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001365/0.1201, allocations: 78.23 kB / 376.7 MB, free: 13.67 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.632e-06/0.1201, allocations: 0 / 376.7 MB, free: 13.67 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.1201, allocations: 4 kB / 376.7 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1201, allocations: 4 kB / 376.7 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.918e-05/0.1202, allocations: 3.984 kB / 376.7 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003534/0.1205, allocations: 177.7 kB / 376.9 MB, free: 13.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.255e-05/0.1206, allocations: 22.52 kB / 376.9 MB, free: 13.4 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.888e-05/0.1206, allocations: 8.922 kB / 376.9 MB, free: 13.39 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.344e-06/0.1206, allocations: 0 / 376.9 MB, free: 13.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.74e-05/0.1207, allocations: 68.19 kB / 377 MB, free: 13.31 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.1207, allocations: 0 / 377 MB, free: 13.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001451/0.1208, allocations: 45.61 kB / 377 MB, free: 13.26 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.913e-05/0.1209, allocations: 158.2 kB / 377.2 MB, free: 13.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001437/0.1211, allocations: 153.8 kB / 377.3 MB, free: 12.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.1211, allocations: 29.7 kB / 377.3 MB, free: 12.87 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.235e-05/0.1211, allocations: 92.12 kB / 377.4 MB, free: 12.78 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.939e-05/0.1212, allocations: 4 kB / 377.4 MB, free: 12.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.932e-05/0.1212, allocations: 17.84 kB / 377.5 MB, free: 12.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.1213, allocations: 326.8 kB / 377.8 MB, free: 12.42 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.365e-05/0.1213, allocations: 0 / 377.8 MB, free: 12.42 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.84e-05/0.1214, allocations: 44.28 kB / 377.8 MB, free: 12.36 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.305e-05/0.1214, allocations: 12.86 kB / 377.8 MB, free: 12.35 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1215, allocations: 8 kB / 377.8 MB, free: 12.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.842e-05/0.1215, allocations: 57.47 kB / 377.9 MB, free: 12.28 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.1216, allocations: 4 kB / 377.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1216, allocations: 4 kB / 377.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.1216, allocations: 0 / 377.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.523e-05/0.1216, allocations: 0 / 377.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.1216, allocations: 4 kB / 377.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.629e-05/0.1217, allocations: 0 / 377.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.711e-06/0.1217, allocations: 0 / 377.9 MB, free: 12.27 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.0001191/0.1219, allocations: 125.9 kB / 378 MB, free: 12.13 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.447e-05/0.1219, allocations: 15.84 kB / 378 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.88e-05/0.1219, allocations: 7.875 kB / 378.1 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.1219, allocations: 0 / 378.1 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.1219, allocations: 0 / 378.1 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.122, allocations: 0 / 378.1 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001893/0.1221, allocations: 177.6 kB / 378.2 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1222, allocations: 0 / 378.2 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.134e-05/0.1222, allocations: 3.938 kB / 378.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.1222, allocations: 0 / 378.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.258e-06/0.1222, allocations: 8 kB / 378.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1222, allocations: 0 / 378.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1222, allocations: 0 / 378.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001306/0.1224, allocations: 77 kB / 378.3 MB, free: 11.78 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.631e-05/0.1224, allocations: 92.94 kB / 378.4 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.1225, allocations: 0 / 378.4 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.671e-05/0.1225, allocations: 0 / 378.4 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.238e-05/0.1226, allocations: 4.094 kB / 378.4 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-06/0.1226, allocations: 4 kB / 378.4 MB, free: 11.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.958e-05/0.1227, allocations: 119.9 kB / 378.5 MB, free: 11.55 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1227, allocations: 0 / 378.5 MB, free: 11.55 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002126/0.1229, allocations: 16 kB / 378.5 MB, free: 11.53 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.0003557/0.1232, allocations: 179 kB / 378.7 MB, free: 11.35 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 9.469e-05/0.1234, allocations: 11.98 kB / 378.7 MB, free: 11.34 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1234, allocations: 0 / 378.7 MB, free: 11.34 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.271e-05/0.1234, allocations: 7.938 kB / 378.7 MB, free: 11.33 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001536/0.1235, allocations: 8 kB / 378.8 MB, free: 11.32 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003022/0.1239, allocations: 157.8 kB / 378.9 MB, free: 11.14 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002504/0.1241, allocations: 0.6807 MB / 379.6 MB, free: 10.43 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.3e-05/0.1242, allocations: 15.97 kB / 379.6 MB, free: 10.42 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.943e-05/0.1242, allocations: 15.44 kB / 379.6 MB, free: 10.4 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1242, allocations: 3.938 kB / 379.6 MB, free: 10.4 MB / 318.1 MB Notification: Performance of Templates: time 0.004225/0.1284, allocations: 1.287 MB / 380.9 MB, free: 9.109 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile.makefile make -j1 -f Modelica_3.2.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_2_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.2.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o Modelica_3.2.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile.c Modelica_3.2.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.2.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),1.0000000000000002e-14); ^ Modelica_3.2.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),1.0000000000000002e-14); ^ Modelica_3.2.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),1.0000000000000002e-14); ^ Modelica_3.2.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.2.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.2.1_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o] Error 1