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.001426/0.001426, allocations: 114.5 kB / 17.07 MB, free: 6.016 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.001581/0.001581, allocations: 191 kB / 18 MB, free: 5.098 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.319/1.319, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 55.86 kB / 351.3 MB, free: 3.316 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2528, allocations: 49.44 MB / 400.7 MB, free: 9.012 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001503/0.2543, allocations: 0.5245 MB / 401.2 MB, free: 8.559 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001929/0.2563, allocations: 1.81 MB / 403 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.49e-05/0.2563, allocations: 0 / 403 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001671/0.258, allocations: 124.7 kB / 403.2 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.224e-05/0.2581, allocations: 23.92 kB / 403.2 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001731/0.2583, allocations: 62.92 kB / 403.2 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001061/0.2584, allocations: 67.86 kB / 403.3 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.072e-05/0.2584, allocations: 7.938 kB / 403.3 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.285e-05/0.2585, allocations: 27.86 kB / 403.3 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001052/0.2586, allocations: 35.89 kB / 403.4 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.053e-05/0.2586, allocations: 0 / 403.4 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.307e-05/0.2587, allocations: 12 kB / 403.4 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.747e-05/0.2587, allocations: 23.86 kB / 403.4 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.351e-05/0.2588, allocations: 27.84 kB / 403.4 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001841/0.259, allocations: 67.73 kB / 403.5 MB, free: 6.285 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.259, allocations: 0 / 403.5 MB, free: 6.285 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.259, allocations: 0 / 403.5 MB, free: 6.285 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.259, allocations: 4 kB / 403.5 MB, free: 6.281 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.0003885/0.2594, allocations: 396.8 kB / 403.9 MB, free: 5.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.104e-05/0.2594, allocations: 8.031 kB / 403.9 MB, free: 5.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.965e-05/0.2595, allocations: 4.938 kB / 403.9 MB, free: 5.828 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000225/0.2597, allocations: 224.2 kB / 404.1 MB, free: 5.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.374e-06/0.2597, allocations: 384 / 404.1 MB, free: 5.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.483e-05/0.2597, allocations: 384 / 404.1 MB, free: 5.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001217/0.2599, allocations: 78.23 kB / 404.2 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.2599, allocations: 3.938 kB / 404.2 MB, free: 5.469 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.43e-05/0.2599, allocations: 0 / 404.2 MB, free: 5.469 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.2599, allocations: 7.984 kB / 404.2 MB, free: 5.461 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.494e-05/0.2599, allocations: 4 kB / 404.2 MB, free: 5.457 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002791/0.2602, allocations: 169.7 kB / 404.4 MB, free: 5.242 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.854e-05/0.2603, allocations: 26.56 kB / 404.4 MB, free: 5.207 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.858e-05/0.2603, allocations: 16.84 kB / 404.4 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.097e-06/0.2603, allocations: 0 / 404.4 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.454e-05/0.2603, allocations: 60.2 kB / 404.5 MB, free: 5.113 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 8.11e-07/0.2603, allocations: 4 kB / 404.5 MB, free: 5.109 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001196/0.2605, allocations: 41.66 kB / 404.5 MB, free: 5.062 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.535e-05/0.2606, allocations: 162.2 kB / 404.7 MB, free: 4.867 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001328/0.2607, allocations: 157.1 kB / 404.8 MB, free: 4.707 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.329e-05/0.2607, allocations: 25.7 kB / 404.9 MB, free: 4.676 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.172e-05/0.2608, allocations: 88.14 kB / 405 MB, free: 4.586 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.922e-05/0.2608, allocations: 8 kB / 405 MB, free: 4.578 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.281e-05/0.2608, allocations: 17.83 kB / 405 MB, free: 4.555 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.955e-05/0.2609, allocations: 318.8 kB / 405.3 MB, free: 4.234 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.562e-05/0.261, allocations: 11.94 kB / 405.3 MB, free: 4.223 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.816e-05/0.261, allocations: 44.28 kB / 405.3 MB, free: 4.164 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.772e-05/0.261, allocations: 12.86 kB / 405.4 MB, free: 4.148 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.261, allocations: 0 / 405.4 MB, free: 4.148 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.909e-05/0.2611, allocations: 57.64 kB / 405.4 MB, free: 4.086 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.2611, allocations: 4 kB / 405.4 MB, free: 4.082 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-06/0.2612, allocations: 0 / 405.4 MB, free: 4.082 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.2612, allocations: 4 kB / 405.4 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.605e-05/0.2612, allocations: 7.875 kB / 405.4 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.506e-06/0.2612, allocations: 0 / 405.4 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.444e-05/0.2613, allocations: 11.92 kB / 405.4 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-06/0.2613, allocations: 0 / 405.4 MB, free: 4.059 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 7.16e-05/0.2614, allocations: 117.8 kB / 405.6 MB, free: 3.934 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.091e-05/0.2614, allocations: 15.92 kB / 405.6 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.108e-05/0.2614, allocations: 11.86 kB / 405.6 MB, free: 3.902 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.2614, allocations: 0 / 405.6 MB, free: 3.902 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2614, allocations: 0 / 405.6 MB, free: 3.902 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.2615, allocations: 0 / 405.6 MB, free: 3.902 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001586/0.2616, allocations: 173.7 kB / 405.8 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.2616, allocations: 0 / 405.8 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.555e-05/0.2617, allocations: 3.938 kB / 405.8 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.2617, allocations: 0 / 405.8 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-06/0.2617, allocations: 0 / 405.8 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.2617, allocations: 8 kB / 405.8 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2617, allocations: 3.938 kB / 405.8 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001115/0.2618, allocations: 73.02 kB / 405.8 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.987e-05/0.2619, allocations: 93.02 kB / 405.9 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.989e-05/0.2619, allocations: 4 kB / 405.9 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.996e-05/0.262, allocations: 0 / 405.9 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.321e-05/0.262, allocations: 4 kB / 405.9 MB, free: 3.461 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.262, allocations: 4.094 kB / 405.9 MB, free: 3.457 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.604e-05/0.2621, allocations: 119.2 kB / 406.1 MB, free: 3.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2621, allocations: 0 / 406.1 MB, free: 3.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002078/0.2623, allocations: 15.98 kB / 406.1 MB, free: 3.324 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.0003271/0.2626, allocations: 179.4 kB / 406.3 MB, free: 3.176 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 8.071e-05/0.2627, allocations: 15.98 kB / 406.3 MB, free: 3.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.2627, allocations: 0 / 406.3 MB, free: 3.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.068e-05/0.2627, allocations: 4 kB / 406.3 MB, free: 3.156 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001637/0.2629, allocations: 14.94 kB / 406.3 MB, free: 3.145 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002241/0.2631, allocations: 145.4 kB / 406.4 MB, free: 2.977 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002077/0.2634, allocations: 0.696 MB / 407.1 MB, free: 2.254 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.553e-05/0.2634, allocations: 11.98 kB / 407.1 MB, free: 2.242 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.353e-05/0.2634, allocations: 11.44 kB / 407.1 MB, free: 2.23 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2634, allocations: 0 / 407.1 MB, free: 2.23 MB / 318.1 MB Notification: Performance of Templates: time 0.003556/0.267, allocations: 1.301 MB / 408.4 MB, free: 0.9609 MB / 318.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/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_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