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.004792/0.004792, allocations: 102.3 kB / 15.73 MB, free: 5.582 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.001088/0.001088, allocations: 191.8 kB / 16.67 MB, free: 5.52 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 / 222.5 MB, free: 12.21 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.00122/0.00122, allocations: 56.2 kB / 326.5 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1085, allocations: 46.61 MB / 373.1 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001686/0.1102, allocations: 0.5295 MB / 373.7 MB, free: 4.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002347/0.1126, allocations: 1.84 MB / 375.5 MB, free: 2.215 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.008e-05/0.1126, allocations: 4 kB / 375.5 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001522/0.1142, allocations: 131.6 kB / 375.6 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.698e-05/0.1143, allocations: 23.92 kB / 375.7 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001994/0.1145, allocations: 55.8 kB / 375.7 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001361/0.1146, allocations: 71.86 kB / 375.8 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.337e-05/0.1147, allocations: 4 kB / 375.8 MB, free: 1.934 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.612e-05/0.1147, allocations: 27.86 kB / 375.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001231/0.1149, allocations: 39.83 kB / 375.9 MB, free: 1.867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.011e-05/0.1149, allocations: 0 / 375.9 MB, free: 1.867 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.273e-05/0.115, allocations: 16 kB / 375.9 MB, free: 1.852 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.134e-05/0.1151, allocations: 15.97 kB / 375.9 MB, free: 1.836 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.949e-05/0.1151, allocations: 23.86 kB / 375.9 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002006/0.1153, allocations: 59.8 kB / 376 MB, free: 1.754 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.1153, allocations: 0 / 376 MB, free: 1.754 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.1153, allocations: 3.938 kB / 376 MB, free: 1.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.1154, allocations: 4 kB / 376 MB, free: 1.746 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.0005444/0.1159, allocations: 408.8 kB / 376.4 MB, free: 1.293 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.116, allocations: 8.031 kB / 376.4 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.592e-05/0.116, allocations: 4.938 kB / 376.4 MB, free: 1.281 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002853/0.1163, allocations: 216.1 kB / 376.6 MB, free: 1.031 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.728e-06/0.1163, allocations: 384 / 376.6 MB, free: 1.031 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.285e-05/0.1163, allocations: 384 / 376.6 MB, free: 1.031 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001574/0.1165, allocations: 82.23 kB / 376.7 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.1165, allocations: 3.938 kB / 376.7 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.1165, allocations: 4 kB / 376.7 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.1166, allocations: 0 / 376.7 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.155e-05/0.1166, allocations: 4 kB / 376.7 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003534/0.1169, allocations: 173.7 kB / 376.9 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.018e-05/0.117, allocations: 26.56 kB / 376.9 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.896e-05/0.117, allocations: 8.922 kB / 376.9 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.003e-06/0.117, allocations: 0 / 376.9 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.519e-05/0.1171, allocations: 64.2 kB / 377 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 2.254e-06/0.1171, allocations: 0 / 377 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001675/0.1173, allocations: 49.53 kB / 377 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.567e-05/0.1174, allocations: 154.2 kB / 377.2 MB, free: 340 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001526/0.1175, allocations: 157.9 kB / 377.3 MB, free: 172 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.1175, allocations: 25.7 kB / 377.3 MB, free: 140 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.119e-05/0.1176, allocations: 92.14 kB / 377.4 MB, free: 44 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.07e-05/0.1176, allocations: 3.938 kB / 377.4 MB, free: 40 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.711e-05/0.1177, allocations: 33.61 kB / 377.5 MB, free: 0 / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.2316/0.3493, allocations: 310.8 kB / 377.8 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.861e-05/0.3494, allocations: 3.5 kB / 377.8 MB, free: 13.04 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.635e-05/0.3494, allocations: 42.8 kB / 377.8 MB, free: 13 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.527e-05/0.3495, allocations: 23.78 kB / 377.8 MB, free: 12.99 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3495, allocations: 0 / 377.8 MB, free: 12.99 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000109/0.3496, allocations: 46.61 kB / 377.9 MB, free: 12.96 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.3497, allocations: 6.359 kB / 377.9 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.3497, allocations: 4.969 kB / 377.9 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.354e-05/0.3497, allocations: 0 / 377.9 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.395e-05/0.3498, allocations: 2.625 kB / 377.9 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.3498, allocations: 4.781 kB / 377.9 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.916e-05/0.3499, allocations: 3.109 kB / 377.9 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-06/0.3499, allocations: 1.562 kB / 377.9 MB, free: 12.96 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.688e-05/0.35, allocations: 114.7 kB / 378 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.999e-05/0.35, allocations: 7.438 kB / 378 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.159e-05/0.3501, allocations: 18.11 kB / 378 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.3501, allocations: 2.953 kB / 378 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.3501, allocations: 4.828 kB / 378 MB, free: 12.83 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.3501, allocations: 2.703 kB / 378 MB, free: 12.83 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000177/0.3503, allocations: 172.3 kB / 378.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.3503, allocations: 3.75 kB / 378.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.78e-05/0.3503, allocations: 3.781 kB / 378.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.3503, allocations: 0 / 378.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.395e-06/0.3503, allocations: 0.75 kB / 378.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.3503, allocations: 1.375 kB / 378.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3503, allocations: 6.469 kB / 378.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001366/0.3505, allocations: 73.36 kB / 378.3 MB, free: 12.58 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.769e-05/0.3506, allocations: 82.92 kB / 378.4 MB, free: 12.48 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.454e-05/0.3506, allocations: 5.578 kB / 378.4 MB, free: 12.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.465e-05/0.3507, allocations: 5.281 kB / 378.4 MB, free: 12.48 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.418e-05/0.3507, allocations: 4.641 kB / 378.4 MB, free: 12.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.356e-06/0.3507, allocations: 1.375 kB / 378.4 MB, free: 12.48 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001084/0.3508, allocations: 122.2 kB / 378.5 MB, free: 12.41 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3508, allocations: 0 / 378.5 MB, free: 12.41 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002881/0.3511, allocations: 20.36 kB / 378.5 MB, free: 12.41 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.0003801/0.3515, allocations: 177.1 kB / 378.7 MB, free: 12.3 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001091/0.3516, allocations: 15.89 kB / 378.7 MB, free: 12.3 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/0.3516, allocations: 0.875 kB / 378.7 MB, free: 12.3 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.383e-05/0.3517, allocations: 7.375 kB / 378.7 MB, free: 12.3 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001719/0.3518, allocations: 7.141 kB / 378.7 MB, free: 12.3 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003101/0.3521, allocations: 150 kB / 378.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001386/0.3523, allocations: 0.6842 MB / 379.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.822e-05/0.3524, allocations: 10.64 kB / 379.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.007e-05/0.3524, allocations: 14.48 kB / 379.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3524, allocations: 0 / 379.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of Templates: time 0.005363/0.3578, allocations: 1.302 MB / 380.9 MB, free: 11.36 MB / 318.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),1.0000000000000002e-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),1.0000000000000002e-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),1.0000000000000002e-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