Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001126/0.001126, allocations: 199.9 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.223/1.223, allocations: 226.6 MB / 244.7 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006981/0.000698, allocations: 96.53 kB / 296.8 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002279/0.0002279, allocations: 4 kB / 356.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.1907, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.00053/0.1913, allocations: 245.7 kB / 408.3 MB, free: 27.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001525/0.1928, allocations: 1.788 MB / 410.1 MB, free: 25.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.999e-05/0.1928, allocations: 0.5 kB / 410.1 MB, free: 25.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001404/0.1942, allocations: 112 kB / 410.2 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.913e-05/0.1943, allocations: 31.91 kB / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001618/0.1945, allocations: 53.03 kB / 410.2 MB, free: 25.49 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.868e-05/0.1945, allocations: 31.91 kB / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.128e-05/0.1946, allocations: 4 kB / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.916e-05/0.1946, allocations: 33.38 kB / 410.3 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.685e-05/0.1947, allocations: 27.86 kB / 410.3 MB, free: 25.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.86e-05/0.1948, allocations: 0 / 410.3 MB, free: 25.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.542e-05/0.1948, allocations: 11.94 kB / 410.4 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.31e-05/0.1949, allocations: 52.56 kB / 410.4 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.714e-05/0.195, allocations: 49.56 kB / 410.5 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.195e-05/0.195, allocations: 32.8 kB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1951, allocations: 0 / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1951, allocations: 1.562 kB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.1951, allocations: 0 / 410.5 MB, free: 25.25 MB / 298.7 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.0003258/0.1954, allocations: 386 kB / 410.9 MB, free: 24.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.1954, allocations: 9.281 kB / 410.9 MB, free: 24.81 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.526e-05/0.1955, allocations: 8.844 kB / 410.9 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001847/0.1957, allocations: 214.6 kB / 411.1 MB, free: 24.56 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.1957, allocations: 7.75 kB / 411.1 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.1957, allocations: 4.281 kB / 411.1 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.317e-05/0.1958, allocations: 70.3 kB / 411.2 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-06/0.1958, allocations: 0 / 411.2 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.1958, allocations: 0 / 411.2 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.1959, allocations: 0.9062 kB / 411.2 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.555e-05/0.1959, allocations: 11.92 kB / 411.2 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000249/0.1961, allocations: 177.7 kB / 411.4 MB, free: 24.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.127e-05/0.1962, allocations: 18.58 kB / 411.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.982e-05/0.1962, allocations: 12.86 kB / 411.4 MB, free: 24.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.744e-06/0.1962, allocations: 4.062 kB / 411.4 MB, free: 24.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.1963, allocations: 64.19 kB / 411.5 MB, free: 24.1 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.193e-06/0.1963, allocations: 0 / 411.5 MB, free: 24.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.000119/0.1964, allocations: 45.64 kB / 411.5 MB, free: 24.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/0.1964, allocations: 158.2 kB / 411.7 MB, free: 23.86 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.1966, allocations: 174 kB / 411.8 MB, free: 23.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.017e-06/0.1966, allocations: 25.7 kB / 411.9 MB, free: 23.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.149e-05/0.1966, allocations: 92.14 kB / 411.9 MB, free: 23.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.734e-05/0.1966, allocations: 7.906 kB / 411.9 MB, free: 23.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.274e-06/0.1966, allocations: 0 / 411.9 MB, free: 23.54 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.433e-05/0.1967, allocations: 318.8 kB / 412.3 MB, free: 23.22 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.141e-05/0.1967, allocations: 8.125 kB / 412.3 MB, free: 23.21 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.271e-05/0.1967, allocations: 44.28 kB / 412.3 MB, free: 23.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.529e-05/0.1968, allocations: 12.86 kB / 412.3 MB, free: 23.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1968, allocations: 0 / 412.3 MB, free: 23.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.81e-05/0.1969, allocations: 53.53 kB / 412.4 MB, free: 23.08 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.1969, allocations: 11.94 kB / 412.4 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.1969, allocations: 4.094 kB / 412.4 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.1969, allocations: 0 / 412.4 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.673e-05/0.1969, allocations: 8 kB / 412.4 MB, free: 23.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.1969, allocations: 0 / 412.4 MB, free: 23.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.378e-05/0.197, allocations: 0 / 412.4 MB, free: 23.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.184e-06/0.197, allocations: 4 kB / 412.4 MB, free: 23.05 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.122e-05/0.1971, allocations: 121.8 kB / 412.5 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.538e-05/0.1971, allocations: 11.84 kB / 412.5 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.331e-05/0.1971, allocations: 11.88 kB / 412.5 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.1972, allocations: 7.984 kB / 412.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.1972, allocations: 0 / 412.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.1972, allocations: 0 / 412.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001292/0.1973, allocations: 173.7 kB / 412.7 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1973, allocations: 0 / 412.7 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.417e-05/0.1973, allocations: 4 kB / 412.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1974, allocations: 3.938 kB / 412.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-06/0.1974, allocations: 0 / 412.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.1974, allocations: 3.938 kB / 412.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1974, allocations: 0 / 412.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.89e-05/0.1975, allocations: 77.03 kB / 412.8 MB, free: 22.56 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.793e-05/0.1975, allocations: 92.97 kB / 412.9 MB, free: 22.45 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.1975, allocations: 4 kB / 412.9 MB, free: 22.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.32e-05/0.1976, allocations: 4.031 kB / 412.9 MB, free: 22.45 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.15e-05/0.1976, allocations: 3.984 kB / 412.9 MB, free: 22.44 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-06/0.1976, allocations: 7.938 kB / 412.9 MB, free: 22.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.778e-05/0.1977, allocations: 130.2 kB / 413 MB, free: 22.31 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1977, allocations: 96 / 413 MB, free: 22.31 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000181/0.1979, allocations: 24 kB / 413.1 MB, free: 22.29 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000252/0.1981, allocations: 142.6 kB / 413.2 MB, free: 22.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 6.738e-05/0.1982, allocations: 15.94 kB / 413.2 MB, free: 22.14 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.1982, allocations: 0 / 413.2 MB, free: 22.14 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.666e-06/0.1982, allocations: 4 kB / 413.2 MB, free: 22.14 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001373/0.1984, allocations: 8 kB / 413.2 MB, free: 22.13 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002259/0.1986, allocations: 190.3 kB / 413.4 MB, free: 21.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001014/0.1987, allocations: 0.6966 MB / 414.1 MB, free: 21.19 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.239e-05/0.1988, allocations: 15.44 kB / 414.1 MB, free: 21.17 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.1988, allocations: 0 / 414.1 MB, free: 21.17 MB / 298.7 MB Notification: Performance of Templates: time 0.002278/0.201, allocations: 1.405 MB / 415.5 MB, free: 19.79 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile.makefile (rm -f Modelica_trunk_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile.pipe >> ../files/Modelica_trunk_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile.sim & ./Modelica_trunk_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/ReadRealMatrixFromFile/ReadRealMatrixFromFile.csv","../files/Modelica_trunk_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches