Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001362/0.001363, allocations: 121.7 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001587/0.001587, allocations: 203.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001087/0.001088, allocations: 63.89 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2579, allocations: 50.54 MB / 409.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.00163/0.2596, allocations: 0.5198 MB / 409.7 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002194/0.2618, allocations: 1.849 MB / 411.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.3e-05/0.2619, allocations: 4 kB / 411.6 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002429/0.2643, allocations: 165.7 kB / 411.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.445e-05/0.2644, allocations: 19.98 kB / 411.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002248/0.2646, allocations: 51.25 kB / 411.8 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001137/0.2648, allocations: 67.8 kB / 411.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.716e-05/0.2648, allocations: 4 kB / 411.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.642e-05/0.2649, allocations: 27.86 kB / 411.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.403e-05/0.265, allocations: 27.89 kB / 411.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.743e-05/0.265, allocations: 4 kB / 411.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.096e-05/0.2651, allocations: 16 kB / 412 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.204e-05/0.2651, allocations: 15.92 kB / 412 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.004e-05/0.2652, allocations: 15.88 kB / 412 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002452/0.2655, allocations: 63.78 kB / 412.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.2655, allocations: 4 kB / 412.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.2655, allocations: 0 / 412.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.076e-06/0.2655, allocations: 0 / 412.1 MB, free: 14.79 MB / 334.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.0004973/0.266, allocations: 404.6 kB / 412.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.266, allocations: 12.03 kB / 412.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.493e-05/0.2661, allocations: 12.83 kB / 412.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000286/0.2664, allocations: 206.5 kB / 412.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.077e-06/0.2664, allocations: 384 / 412.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.71e-05/0.2664, allocations: 384 / 412.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001424/0.2666, allocations: 82.3 kB / 412.8 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.2666, allocations: 3.938 kB / 412.8 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.2666, allocations: 3.938 kB / 412.8 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.2666, allocations: 0 / 412.8 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.902e-05/0.2667, allocations: 4 kB / 412.8 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003406/0.267, allocations: 177.7 kB / 412.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.906e-05/0.267, allocations: 22.58 kB / 413 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.886e-05/0.2671, allocations: 4.859 kB / 413 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.819e-06/0.2671, allocations: 0 / 413 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.017e-05/0.2671, allocations: 64.27 kB / 413 MB, free: 13.62 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 1.232e-06/0.2671, allocations: 0 / 413 MB, free: 13.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001622/0.2673, allocations: 53.53 kB / 413.1 MB, free: 13.56 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.2674, allocations: 158.3 kB / 413.2 MB, free: 13.37 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001519/0.2676, allocations: 154.1 kB / 413.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.2676, allocations: 29.64 kB / 413.4 MB, free: 13.17 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.209e-05/0.2677, allocations: 96.12 kB / 413.5 MB, free: 13.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.64e-05/0.2677, allocations: 3.906 kB / 413.5 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.911e-05/0.2678, allocations: 21.72 kB / 413.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.2679, allocations: 314.8 kB / 413.9 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.696e-05/0.2679, allocations: 8 kB / 413.9 MB, free: 12.72 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.224e-05/0.268, allocations: 44.28 kB / 413.9 MB, free: 12.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.199e-05/0.268, allocations: 20.8 kB / 413.9 MB, free: 12.64 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.268, allocations: 0 / 413.9 MB, free: 12.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.941e-05/0.2681, allocations: 45.59 kB / 414 MB, free: 12.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.2681, allocations: 7.938 kB / 414 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.2681, allocations: 0 / 414 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.2681, allocations: 4.094 kB / 414 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.879e-05/0.2682, allocations: 4 kB / 414 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.2682, allocations: 0 / 414 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.709e-05/0.2683, allocations: 9.266 kB / 414 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.59e-06/0.2683, allocations: 0 / 414 MB, free: 12.56 MB / 334.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.474e-05/0.2684, allocations: 125.8 kB / 414.1 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.864e-05/0.2684, allocations: 11.84 kB / 414.1 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.894e-05/0.2684, allocations: 15.83 kB / 414.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.2684, allocations: 0 / 414.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.2684, allocations: 7.938 kB / 414.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.2685, allocations: 0 / 414.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001751/0.2686, allocations: 177.6 kB / 414.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.2686, allocations: 0 / 414.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.428e-05/0.2687, allocations: 0 / 414.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.2687, allocations: 3.938 kB / 414.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.2687, allocations: 8 kB / 414.3 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.2687, allocations: 0 / 414.3 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.2687, allocations: 0 / 414.3 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001395/0.2689, allocations: 73.12 kB / 414.4 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.241e-05/0.2689, allocations: 92.97 kB / 414.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.819e-05/0.269, allocations: 0 / 414.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.992e-05/0.269, allocations: 8 kB / 414.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.401e-05/0.269, allocations: 0 / 414.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-06/0.2691, allocations: 0 / 414.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.968e-05/0.2691, allocations: 118 kB / 414.6 MB, free: 11.83 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.164e-06/0.2692, allocations: 0 / 414.6 MB, free: 11.83 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002181/0.2694, allocations: 23.94 kB / 414.6 MB, free: 11.81 MB / 334.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.0003146/0.2697, allocations: 147.1 kB / 414.8 MB, free: 11.67 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 8.362e-05/0.2698, allocations: 8 kB / 414.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2698, allocations: 4.062 kB / 414.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.728e-06/0.2698, allocations: 4 kB / 414.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001532/0.27, allocations: 11.98 kB / 414.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002833/0.2703, allocations: 133.8 kB / 414.9 MB, free: 11.49 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002248/0.2705, allocations: 0.6846 MB / 415.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.066e-05/0.2706, allocations: 19.86 kB / 415.6 MB, free: 10.76 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.363e-05/0.2706, allocations: 15.5 kB / 415.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2706, allocations: 0 / 415.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of Templates: time 0.003999/0.2746, allocations: 1.227 MB / 416.9 MB, free: 9.543 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.makefile make -j1 -f Modelica_trunk_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 trunk/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_trunk_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_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.c Modelica_trunk_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_trunk_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),2.220446049250313e-15); ^ Modelica_trunk_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),2.220446049250313e-15); ^ Modelica_trunk_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),2.220446049250313e-15); ^ Modelica_trunk_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[1] /* dim[2] PARAM */)); ^ Modelica_trunk_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_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o] Error 1