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.001235/0.001235, allocations: 109 kB / 17.06 MB, free: 6.125 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.001462/0.001462, allocations: 191 kB / 18 MB, free: 5.207 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.346/1.346, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009017/0.0009017, allocations: 44.03 kB / 351.3 MB, free: 3.297 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2482, allocations: 49.44 MB / 400.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001552/0.2498, allocations: 0.526 MB / 401.2 MB, free: 8.371 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002024/0.2519, allocations: 1.805 MB / 403 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.961e-05/0.2519, allocations: 0 / 403 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009749/0.2617, allocations: 135.1 kB / 403.2 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.084e-05/0.2618, allocations: 23.92 kB / 403.2 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002175/0.262, allocations: 51.92 kB / 403.2 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001063/0.2621, allocations: 75.73 kB / 403.3 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.352e-05/0.2621, allocations: 4 kB / 403.3 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.448e-05/0.2622, allocations: 23.92 kB / 403.3 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001221/0.2623, allocations: 35.89 kB / 403.4 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.823e-05/0.2624, allocations: 0 / 403.4 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.59e-05/0.2624, allocations: 19.94 kB / 403.4 MB, free: 6.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.462e-05/0.2625, allocations: 19.91 kB / 403.4 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.495e-05/0.2626, allocations: 23.86 kB / 403.4 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00019/0.2627, allocations: 63.8 kB / 403.5 MB, free: 6.109 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2628, allocations: 4 kB / 403.5 MB, free: 6.105 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.2628, allocations: 0 / 403.5 MB, free: 6.105 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.2628, allocations: 0 / 403.5 MB, free: 6.105 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.0004185/0.2632, allocations: 392.8 kB / 403.9 MB, free: 5.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.2633, allocations: 12.03 kB / 403.9 MB, free: 5.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.899e-05/0.2633, allocations: 12.86 kB / 403.9 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002284/0.2635, allocations: 215.4 kB / 404.1 MB, free: 5.402 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.687e-06/0.2636, allocations: 4.375 kB / 404.1 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.548e-05/0.2636, allocations: 384 / 404.1 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001178/0.2637, allocations: 82.22 kB / 404.2 MB, free: 5.297 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-06/0.2637, allocations: 0 / 404.2 MB, free: 5.297 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.2637, allocations: 4 kB / 404.2 MB, free: 5.293 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.477e-06/0.2637, allocations: 0 / 404.2 MB, free: 5.293 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.648e-05/0.2638, allocations: 0 / 404.2 MB, free: 5.293 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002859/0.2641, allocations: 181.7 kB / 404.4 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.086e-05/0.2641, allocations: 18.52 kB / 404.4 MB, free: 5.039 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.957e-05/0.2641, allocations: 12.91 kB / 404.4 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.678e-06/0.2642, allocations: 0 / 404.4 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.706e-05/0.2642, allocations: 64.2 kB / 404.5 MB, free: 4.945 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.2642, allocations: 0 / 404.5 MB, free: 4.945 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001307/0.2643, allocations: 49.61 kB / 404.5 MB, free: 4.891 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.387e-05/0.2644, allocations: 162.2 kB / 404.7 MB, free: 4.695 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.2646, allocations: 153.8 kB / 404.8 MB, free: 4.535 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.2646, allocations: 29.7 kB / 404.9 MB, free: 4.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.259e-05/0.2646, allocations: 88.14 kB / 405 MB, free: 4.41 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.742e-05/0.2647, allocations: 4 kB / 405 MB, free: 4.406 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.524e-05/0.2647, allocations: 21.61 kB / 405 MB, free: 4.379 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.893e-05/0.2648, allocations: 319 kB / 405.3 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.244e-05/0.2648, allocations: 4 kB / 405.3 MB, free: 4.055 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.03e-05/0.2649, allocations: 44.28 kB / 405.3 MB, free: 3.996 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.042e-05/0.2649, allocations: 16.84 kB / 405.4 MB, free: 3.977 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2649, allocations: 0 / 405.4 MB, free: 3.977 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.486e-05/0.265, allocations: 49.58 kB / 405.4 MB, free: 3.922 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.265, allocations: 12.09 kB / 405.4 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.265, allocations: 0 / 405.4 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.2651, allocations: 3.938 kB / 405.4 MB, free: 3.906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.075e-05/0.2651, allocations: 4 kB / 405.4 MB, free: 3.902 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.2651, allocations: 0 / 405.4 MB, free: 3.902 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.535e-05/0.2652, allocations: 5.25 kB / 405.4 MB, free: 3.898 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.949e-06/0.2652, allocations: 0 / 405.4 MB, free: 3.898 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.883e-05/0.2653, allocations: 117.8 kB / 405.5 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.222e-05/0.2653, allocations: 11.84 kB / 405.6 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.473e-05/0.2653, allocations: 15.86 kB / 405.6 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.2653, allocations: 0 / 405.6 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.2654, allocations: 0 / 405.6 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.2654, allocations: 0 / 405.6 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001705/0.2655, allocations: 173.7 kB / 405.7 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2656, allocations: 3.938 kB / 405.7 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.872e-05/0.2656, allocations: 3.938 kB / 405.7 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.2656, allocations: 4 kB / 405.8 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-06/0.2656, allocations: 0 / 405.8 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.2656, allocations: 0 / 405.8 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.2656, allocations: 0 / 405.8 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000115/0.2657, allocations: 80.97 kB / 405.8 MB, free: 3.414 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.011e-05/0.2658, allocations: 93.02 kB / 405.9 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.085e-05/0.2658, allocations: 3.984 kB / 405.9 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.034e-05/0.2659, allocations: 4 kB / 405.9 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.241e-05/0.2659, allocations: 0 / 405.9 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-06/0.2659, allocations: 0 / 405.9 MB, free: 3.297 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.969e-05/0.266, allocations: 125.9 kB / 406.1 MB, free: 3.176 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.266, allocations: 4.094 kB / 406.1 MB, free: 3.172 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002408/0.2663, allocations: 20 kB / 406.1 MB, free: 3.152 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.0003571/0.2667, allocations: 178.5 kB / 406.2 MB, free: 3.004 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 8.627e-05/0.2667, allocations: 11.98 kB / 406.3 MB, free: 2.992 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.2668, allocations: 4 kB / 406.3 MB, free: 2.988 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.184e-05/0.2668, allocations: 3.938 kB / 406.3 MB, free: 2.984 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000156/0.2669, allocations: 15.12 kB / 406.3 MB, free: 2.973 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002526/0.2672, allocations: 149.6 kB / 406.4 MB, free: 2.801 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002127/0.2674, allocations: 0.6922 MB / 407.1 MB, free: 2.082 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.443e-05/0.2675, allocations: 8 kB / 407.1 MB, free: 2.074 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.5e-05/0.2675, allocations: 11.44 kB / 407.1 MB, free: 2.062 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2675, allocations: 0 / 407.1 MB, free: 2.062 MB / 318.1 MB Notification: Performance of Templates: time 0.003807/0.2713, allocations: 1.286 MB / 408.4 MB, free: 0.8008 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