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.001336/0.001336, allocations: 118.1 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001495/0.001495, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001108/0.001108, allocations: 63.88 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2584, allocations: 50.54 MB / 409.2 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001422/0.2599, allocations: 0.5189 MB / 409.7 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002092/0.262, allocations: 1.849 MB / 411.6 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.354e-05/0.262, allocations: 0 / 411.6 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002195/0.2642, allocations: 159.6 kB / 411.7 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.064e-05/0.2643, allocations: 23.97 kB / 411.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001809/0.2645, allocations: 55.5 kB / 411.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001027/0.2646, allocations: 63.81 kB / 411.9 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.323e-05/0.2646, allocations: 0 / 411.9 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.741e-05/0.2647, allocations: 31.86 kB / 411.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.837e-05/0.2648, allocations: 31.89 kB / 411.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.721e-05/0.2648, allocations: 0 / 411.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.865e-05/0.2649, allocations: 16 kB / 412 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.843e-05/0.2649, allocations: 15.92 kB / 412 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.335e-05/0.265, allocations: 27.84 kB / 412 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001583/0.2652, allocations: 55.81 kB / 412.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.2652, allocations: 0 / 412.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2652, allocations: 0 / 412.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.2652, allocations: 3.984 kB / 412.1 MB, free: 14.66 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.0004278/0.2656, allocations: 396.7 kB / 412.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.2657, allocations: 8.031 kB / 412.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.353e-05/0.2657, allocations: 8.844 kB / 412.5 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000252/0.266, allocations: 214.4 kB / 412.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.247e-06/0.266, allocations: 4.375 kB / 412.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.903e-05/0.266, allocations: 4.375 kB / 412.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001203/0.2661, allocations: 70.3 kB / 412.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.2662, allocations: 0 / 412.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.2662, allocations: 0 / 412.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.407e-06/0.2662, allocations: 0 / 412.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.252e-05/0.2662, allocations: 15.92 kB / 412.8 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002952/0.2665, allocations: 185.6 kB / 412.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.14e-05/0.2666, allocations: 18.58 kB / 413 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.719e-05/0.2666, allocations: 8.922 kB / 413 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.582e-06/0.2666, allocations: 0 / 413 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.508e-05/0.2666, allocations: 64.2 kB / 413 MB, free: 13.49 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 2.284e-06/0.2666, allocations: 4 kB / 413 MB, free: 13.49 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001307/0.2668, allocations: 49.53 kB / 413.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.167e-05/0.2669, allocations: 154.2 kB / 413.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.267, allocations: 154.1 kB / 413.4 MB, free: 13.08 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.267, allocations: 29.7 kB / 413.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.175e-05/0.2671, allocations: 96.12 kB / 413.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.766e-05/0.2671, allocations: 3.906 kB / 413.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.703e-05/0.2672, allocations: 17.72 kB / 413.5 MB, free: 12.92 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.867e-05/0.2673, allocations: 327 kB / 413.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.356e-05/0.2673, allocations: 0 / 413.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.645e-05/0.2674, allocations: 44.28 kB / 413.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.131e-05/0.2674, allocations: 20.73 kB / 413.9 MB, free: 12.51 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2674, allocations: 0 / 413.9 MB, free: 12.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.38e-05/0.2675, allocations: 49.59 kB / 414 MB, free: 12.46 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.2675, allocations: 16.03 kB / 414 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.2675, allocations: 0 / 414 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.2675, allocations: 4 kB / 414 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.886e-05/0.2676, allocations: 4 kB / 414 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.2676, allocations: 0 / 414 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.024e-05/0.2676, allocations: 1.266 kB / 414 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-06/0.2677, allocations: 4 kB / 414 MB, free: 12.43 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.731e-05/0.2678, allocations: 117.8 kB / 414.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.934e-05/0.2678, allocations: 15.84 kB / 414.1 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.363e-05/0.2678, allocations: 15.83 kB / 414.1 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.2678, allocations: 0 / 414.1 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.2678, allocations: 0 / 414.1 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.2678, allocations: 0 / 414.1 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000165/0.268, allocations: 177.6 kB / 414.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.268, allocations: 0 / 414.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.862e-05/0.268, allocations: 7.938 kB / 414.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.2681, allocations: 3.938 kB / 414.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.2681, allocations: 3.938 kB / 414.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.2681, allocations: 0 / 414.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2681, allocations: 4 kB / 414.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001222/0.2682, allocations: 69.12 kB / 414.4 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.355e-05/0.2683, allocations: 92.97 kB / 414.5 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.826e-05/0.2683, allocations: 0 / 414.5 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.712e-05/0.2684, allocations: 4 kB / 414.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.079e-05/0.2684, allocations: 0 / 414.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.974e-06/0.2684, allocations: 0 / 414.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.099e-05/0.2685, allocations: 130.1 kB / 414.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2685, allocations: 0 / 414.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000205/0.2687, allocations: 12 kB / 414.6 MB, free: 11.69 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.0002914/0.269, allocations: 155 kB / 414.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 8.971e-05/0.2691, allocations: 15.94 kB / 414.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.2691, allocations: 4 kB / 414.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 1.074e-05/0.2691, allocations: 3.984 kB / 414.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001515/0.2693, allocations: 8 kB / 414.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002494/0.2695, allocations: 137.8 kB / 415 MB, free: 11.35 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002052/0.2698, allocations: 0.6847 MB / 415.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.833e-05/0.2698, allocations: 19.92 kB / 415.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.219e-05/0.2698, allocations: 11.44 kB / 415.7 MB, free: 10.61 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2698, allocations: 0 / 415.7 MB, free: 10.61 MB / 334.1 MB Notification: Performance of Templates: time 0.003679/0.2735, allocations: 1.203 MB / 416.9 MB, free: 9.434 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