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.001087/0.001087, allocations: 115.5 kB / 17.69 MB, free: 5.426 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.001178/0.001178, allocations: 192 kB / 18.63 MB, free: 4.492 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.379/1.379, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009953/0.0009954, allocations: 54.56 kB / 302.1 MB, free: 5.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09068/0.09169, allocations: 49.43 MB / 351.5 MB, free: 3.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001622/0.09335, allocations: 0.5295 MB / 352 MB, free: 3.211 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001965/0.09533, allocations: 1.801 MB / 353.8 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.125e-05/0.09538, allocations: 0 / 353.8 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001804/0.0972, allocations: 130.2 kB / 353.9 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.132e-05/0.09728, allocations: 31.89 kB / 354 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001779/0.09746, allocations: 51.88 kB / 354 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001082/0.09758, allocations: 63.81 kB / 354.1 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.168e-05/0.09761, allocations: 4 kB / 354.1 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.971e-05/0.09767, allocations: 27.91 kB / 354.1 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000109/0.09778, allocations: 35.84 kB / 354.2 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.768e-05/0.09781, allocations: 0 / 354.2 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.283e-05/0.09787, allocations: 23.98 kB / 354.2 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.762e-05/0.09793, allocations: 15.92 kB / 354.2 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.268e-05/0.09798, allocations: 19.86 kB / 354.2 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001626/0.09815, allocations: 71.78 kB / 354.3 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.86e-06/0.09817, allocations: 7.938 kB / 354.3 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.09818, allocations: 0 / 354.3 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.09819, allocations: 0 / 354.3 MB, free: 0.9453 MB / 286.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.0003905/0.09858, allocations: 396.9 kB / 354.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.09862, allocations: 8.031 kB / 354.7 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.203e-05/0.09867, allocations: 12.84 kB / 354.7 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002238/0.0989, allocations: 212.2 kB / 354.9 MB, free: 244 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.304e-06/0.09891, allocations: 384 / 354.9 MB, free: 244 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.494e-05/0.09894, allocations: 4.375 kB / 354.9 MB, free: 240 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001066/0.09905, allocations: 78.23 kB / 355 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.801e-06/0.09906, allocations: 0 / 355 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.09908, allocations: 4 kB / 355 MB, free: 136 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.09909, allocations: 0 / 355 MB, free: 136 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.563e-05/0.09911, allocations: 0 / 355 MB, free: 136 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000282/0.09941, allocations: 177.6 kB / 355.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.682e-05/0.09946, allocations: 26.56 kB / 355.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.552e-05/0.09948, allocations: 8.922 kB / 355.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.975e-06/0.09949, allocations: 0 / 355.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/0.09953, allocations: 64.2 kB / 355.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.224e-06/0.09954, allocations: 3.984 kB / 355.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001207/0.09967, allocations: 57.53 kB / 355.3 MB, free: 15.72 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.902e-05/0.09975, allocations: 154.2 kB / 355.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001258/0.09988, allocations: 155.7 kB / 355.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.541e-05/0.0999, allocations: 29.7 kB / 355.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.536e-05/0.09995, allocations: 84.14 kB / 355.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.672e-05/0.09998, allocations: 11.91 kB / 355.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.593e-05/0.1, allocations: 17.7 kB / 355.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.246e-05/0.1001, allocations: 318.8 kB / 356.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.353e-05/0.1001, allocations: 8.109 kB / 356.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.792e-05/0.1002, allocations: 44.28 kB / 356.1 MB, free: 14.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.054e-05/0.1002, allocations: 12.86 kB / 356.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1002, allocations: 0 / 356.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.304e-05/0.1003, allocations: 53.48 kB / 356.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.1003, allocations: 8.094 kB / 356.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.1003, allocations: 4 kB / 356.2 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.718e-06/0.1004, allocations: 3.938 kB / 356.2 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.76e-05/0.1004, allocations: 3.984 kB / 356.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.1004, allocations: 4 kB / 356.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.326e-05/0.1005, allocations: 3.938 kB / 356.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.749e-06/0.1005, allocations: 0 / 356.2 MB, free: 14.73 MB / 302.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 7.395e-05/0.1006, allocations: 117.8 kB / 356.3 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.014e-05/0.1006, allocations: 11.84 kB / 356.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.475e-05/0.1006, allocations: 19.8 kB / 356.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.1006, allocations: 0 / 356.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.1006, allocations: 0 / 356.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.1006, allocations: 0 / 356.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000166/0.1008, allocations: 177.6 kB / 356.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.1008, allocations: 0 / 356.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.662e-05/0.1009, allocations: 3.938 kB / 356.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.1009, allocations: 0 / 356.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.808e-06/0.1009, allocations: 7.984 kB / 356.5 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.1009, allocations: 4 kB / 356.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1009, allocations: 0 / 356.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001083/0.101, allocations: 81 kB / 356.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.435e-05/0.1011, allocations: 85.05 kB / 356.7 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.927e-05/0.1011, allocations: 0 / 356.7 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.271e-05/0.1012, allocations: 3.984 kB / 356.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.708e-06/0.1012, allocations: 4 kB / 356.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-06/0.1012, allocations: 0 / 356.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.1e-05/0.1013, allocations: 122.2 kB / 356.8 MB, free: 14 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1013, allocations: 4.094 kB / 356.8 MB, free: 14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002118/0.1015, allocations: 16 kB / 356.9 MB, free: 13.98 MB / 302.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.0003173/0.1018, allocations: 166.1 kB / 357 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 7.805e-05/0.1019, allocations: 11.94 kB / 357 MB, free: 13.83 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.1019, allocations: 0 / 357 MB, free: 13.83 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.037e-06/0.102, allocations: 4 kB / 357 MB, free: 13.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001475/0.1021, allocations: 8 kB / 357 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002479/0.1024, allocations: 157.4 kB / 357.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00021/0.1026, allocations: 0.6885 MB / 357.9 MB, free: 12.92 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.663e-05/0.1026, allocations: 4 kB / 357.9 MB, free: 12.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.504e-05/0.1027, allocations: 19.42 kB / 357.9 MB, free: 12.9 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1027, allocations: 0 / 357.9 MB, free: 12.9 MB / 302.1 MB Notification: Performance of Templates: time 0.00367/0.1063, allocations: 1.296 MB / 359.2 MB, free: 11.64 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/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