Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_3.2.3_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: 108.4 kB / 18.34 MB, free: 4.676 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.001649/0.001649, allocations: 186.9 kB / 19.28 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.306/1.306, allocations: 205.1 MB / 225.1 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 51.92 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07572/0.07697, allocations: 46.63 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001523/0.07852, allocations: 0.5222 MB / 329.2 MB, free: 3.234 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001882/0.08041, allocations: 1.84 MB / 331.1 MB, free: 1.371 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.522e-05/0.08047, allocations: 8 kB / 331.1 MB, free: 1.363 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001786/0.08226, allocations: 145.1 kB / 331.2 MB, free: 1.23 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.198e-05/0.08233, allocations: 23.92 kB / 331.2 MB, free: 1.207 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00017/0.0825, allocations: 47.88 kB / 331.3 MB, free: 1.16 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 9.871e-05/0.08261, allocations: 71.86 kB / 331.4 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.188e-05/0.08265, allocations: 7.984 kB / 331.4 MB, free: 1.082 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.692e-05/0.0827, allocations: 19.92 kB / 331.4 MB, free: 1.062 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/0.08281, allocations: 39.78 kB / 331.4 MB, free: 1.023 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.61e-05/0.08283, allocations: 0 / 331.4 MB, free: 1.023 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.94e-05/0.08289, allocations: 19.98 kB / 331.4 MB, free: 1.004 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.42e-05/0.08295, allocations: 8 kB / 331.5 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.8e-05/0.083, allocations: 31.78 kB / 331.5 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001572/0.08317, allocations: 59.86 kB / 331.5 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.08318, allocations: 0 / 331.5 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.08319, allocations: 4 kB / 331.5 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.0832, allocations: 4 kB / 331.5 MB, free: 0.8984 MB / 270.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.0003707/0.08358, allocations: 396.8 kB / 331.9 MB, free: 468 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.008e-05/0.08361, allocations: 8.031 kB / 331.9 MB, free: 460 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.154e-05/0.08366, allocations: 8.844 kB / 332 MB, free: 452 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004109/0.08408, allocations: 320.1 kB / 332.3 MB, free: 92 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.737e-06/0.0841, allocations: 4.312 kB / 332.3 MB, free: 88 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.37e-05/0.08412, allocations: 4.312 kB / 332.3 MB, free: 84 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001246/0.08425, allocations: 86.23 kB / 332.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.741e-06/0.08426, allocations: 0 / 332.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.08428, allocations: 0 / 332.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.507e-06/0.08429, allocations: 0 / 332.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.732e-05/0.08431, allocations: 4 kB / 332.4 MB, free: 15.97 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002742/0.08459, allocations: 173.7 kB / 332.5 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.468e-05/0.08464, allocations: 30.5 kB / 332.6 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.599e-05/0.08466, allocations: 4.859 kB / 332.6 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.412e-06/0.08468, allocations: 0 / 332.6 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.486e-05/0.08473, allocations: 68.27 kB / 332.6 MB, free: 15.62 MB / 286.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.08473, allocations: 0 / 332.6 MB, free: 15.62 MB / 286.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001424/0.08488, allocations: 45.59 kB / 332.7 MB, free: 15.57 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.1e-05/0.08496, allocations: 158.2 kB / 332.8 MB, free: 15.38 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001479/0.08512, allocations: 161.1 kB / 333 MB, free: 15.22 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.08514, allocations: 25.7 kB / 333 MB, free: 15.19 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.646e-05/0.08519, allocations: 92.14 kB / 333.1 MB, free: 15.09 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.024e-05/0.08522, allocations: 7.844 kB / 333.1 MB, free: 15.09 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.202e-05/0.08526, allocations: 21.7 kB / 333.1 MB, free: 15.06 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.08537, allocations: 318.8 kB / 333.4 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.712e-05/0.08539, allocations: 7.984 kB / 333.5 MB, free: 14.73 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.992e-05/0.08545, allocations: 44.28 kB / 333.5 MB, free: 14.67 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.247e-05/0.08549, allocations: 12.86 kB / 333.5 MB, free: 14.66 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.08549, allocations: 0 / 333.5 MB, free: 14.66 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.912e-05/0.08558, allocations: 53.48 kB / 333.6 MB, free: 14.6 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.0856, allocations: 4 kB / 333.6 MB, free: 14.59 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.08561, allocations: 0 / 333.6 MB, free: 14.59 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.08563, allocations: 0 / 333.6 MB, free: 14.59 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.314e-05/0.08567, allocations: 20.08 kB / 333.6 MB, free: 14.57 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.08568, allocations: 0 / 333.6 MB, free: 14.57 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.572e-05/0.08576, allocations: 4 kB / 333.6 MB, free: 14.57 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.59e-06/0.08577, allocations: 0 / 333.6 MB, free: 14.57 MB / 286.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.215e-05/0.08586, allocations: 113.8 kB / 333.7 MB, free: 14.45 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.093e-05/0.08589, allocations: 11.84 kB / 333.7 MB, free: 14.44 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.358e-05/0.08592, allocations: 15.81 kB / 333.7 MB, free: 14.42 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.08592, allocations: 0 / 333.7 MB, free: 14.42 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.08593, allocations: 3.938 kB / 333.7 MB, free: 14.42 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.08594, allocations: 8 kB / 333.7 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.08611, allocations: 165.7 kB / 333.9 MB, free: 14.2 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.08612, allocations: 0 / 333.9 MB, free: 14.2 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.948e-05/0.08615, allocations: 7.938 kB / 333.9 MB, free: 14.19 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.08616, allocations: 3.938 kB / 333.9 MB, free: 14.19 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.224e-06/0.08617, allocations: 3.984 kB / 333.9 MB, free: 14.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.08618, allocations: 0 / 333.9 MB, free: 14.18 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.08618, allocations: 0 / 333.9 MB, free: 14.18 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001081/0.0863, allocations: 77.06 kB / 334 MB, free: 14.09 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.478e-05/0.08636, allocations: 88.98 kB / 334.1 MB, free: 13.98 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.08639, allocations: 0 / 334.1 MB, free: 13.98 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.211e-05/0.08645, allocations: 7.984 kB / 334.1 MB, free: 13.98 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.086e-05/0.08647, allocations: 4.047 kB / 334.1 MB, free: 13.97 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.396e-06/0.08648, allocations: 3.984 kB / 334.1 MB, free: 13.97 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.162e-05/0.08657, allocations: 119.2 kB / 334.2 MB, free: 13.85 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.08657, allocations: 4 kB / 334.2 MB, free: 13.85 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002112/0.08679, allocations: 16 kB / 334.2 MB, free: 13.83 MB / 286.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.0002984/0.08709, allocations: 164.8 kB / 334.4 MB, free: 13.67 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 7.723e-05/0.08718, allocations: 16 kB / 334.4 MB, free: 13.65 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.0872, allocations: 0 / 334.4 MB, free: 13.65 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 1.038e-05/0.08721, allocations: 7.938 kB / 334.4 MB, free: 13.64 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001433/0.08736, allocations: 8 kB / 334.4 MB, free: 13.64 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002207/0.08759, allocations: 141.5 kB / 334.6 MB, free: 13.47 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001977/0.0878, allocations: 0.6885 MB / 335.2 MB, free: 12.75 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.656e-05/0.08784, allocations: 12.12 kB / 335.3 MB, free: 12.74 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.406e-05/0.08787, allocations: 15.42 kB / 335.3 MB, free: 12.73 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.08788, allocations: 0 / 335.3 MB, free: 12.73 MB / 286.1 MB Notification: Performance of Templates: time 0.003472/0.09135, allocations: 1.299 MB / 336.6 MB, free: 11.43 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile.makefile make -j1 -f Modelica_3.2.3_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"/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_3_2_3_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_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o Modelica_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile.c Modelica_3.2.3_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_3.2.3_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_3.2.3_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_3.2.3_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_3.2.3_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_3.2.3_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_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile.o] Error 1